I am trying out pysparse for the first time. I have a few patches to
the documentation for your consideration. Here is a patch against SVN
head for the first one. If you are interested I have a few more.
The example "Solving a 2D Poisson System with SuperLU" in section 6.1.1
works if you import poisson.
Index: Doc/pysparse/source/fact.rst
===================================================================
--- Doc/pysparse/source/fact.rst (revision 136)
+++ Doc/pysparse/source/fact.rst (working copy)
@@ -97,10 +97,10 @@
The Python solution for this task looks as follows::
- from pysparse import spmatrix, superlu
+ from pysparse import spmatrix, superlu, poisson
import numpy
n = 100
- A = poisson2d_sym_blk(n)
+ A = poisson.poisson2d_sym_blk(n)
b = numpy.ones(n*n)
x = numpy.empty(n*n)
LU = superlu.factorize(A.to_csr(), diag_pivot_thresh=0.0)
|