at 23.05-pre 2.1 kB view raw
1diff --git a/pysparse/__init__.py b/pysparse/__init__.py 2index 6d09b00..ff39084 100644 3--- a/pysparse/__init__.py 4+++ b/pysparse/__init__.py 5@@ -1,9 +1,42 @@ 6-"PySparse: A Fast Sparse Matrix Library for Python" 7+""" 8+PySparse: A Fast Sparse Matrix Library for Python 9+================================================= 10+ 11+Documentation is available in the docstrings and 12+online at http://pysparse.sourceforge.net/. 13+ 14+Contents 15+-------- 16+Pysparse imports 17+:: 18+ spmatrix --- sparse matrix types 19+ 20+and, in addition, provides: 21+ 22+Subpackages 23+----------- 24+Using any of these subpackages requires an explicit import. For example, 25+``import pysparse.itsolvers``. 26+ 27+:: 28+ 29+ itsolvers --- Iterative linear algebra solvers 30+ precon --- Preconditioners 31+ direct --- Direct solvers 32+ direct.superlu --- Wrappers to SuperLU library 33+ direct.umfpack --- Wrappers to UMFPACK library 34+ eigen.jdsym --- Jacobi davidson eigenvalue solver for symmetric matrices 35+ 36+Utility tools 37+------------- 38+:: 39+ 40+ __version__ --- pysparse version string 41+""" 42+ 43 44 __docformat__ = 'restructuredtext' 45 46-# Imports 47-from numpy._import_tools import PackageLoader 48 try: 49 from version import version as __version__ 50 except ImportError: 51@@ -11,31 +44,6 @@ except ImportError: 52 __version__ = 'undefined' 53 54 from sparse import spmatrix 55-#from sparse import * 56-from misc import get_include 57- 58-pkgload = PackageLoader() 59-pkgload(verbose=False,postpone=True) 60- 61-if __doc__: 62- __doc__ += """ 63- 64-Available subpackages 65---------------------- 66-""" 67-if __doc__: 68- __doc__ += pkgload.get_pkgdocs() 69- 70-__all__ = filter(lambda s: not s.startswith('_'), dir()) 71-__all__ += '__version__' 72- 73-__doc__ += """ 74- 75-Miscellaneous 76-------------- 77- 78- __version__ : pysparse version string 79-""" 80 81 from pysparse.misc import Deprecated 82 83@@ -47,3 +55,5 @@ class _superlu: 84 return self.factorizeFnc(*args, **kwargs) 85 86 superlu = _superlu() 87+ 88+__all__ = ['spmatrix', 'superlu', '__version__']