715
715
Set operator (matrix) and preconditioner matrix
718
%feature("docstring") dolfin::GenericLinearSolver::set_nullspace "
719
Set null space of the operator (matrix). This is used to solve
718
723
%feature("docstring") dolfin::GenericLinearSolver::solve "
719
724
**Overloaded versions**
748
753
Solve linear system Ax = b
756
// Documentation extracted from: (module=la, header=GenericPreconditioner.h)
757
%feature("docstring") dolfin::GenericPreconditioner "
758
This class provides a common base preconditioners.
761
%feature("docstring") dolfin::GenericPreconditioner::set_nullspace "
762
Set the (approximate) null space of the preconditioner operator
763
(matrix). This is required for certain preconditioner types,
764
e.g. smoothed aggregation multigrid
751
767
// Documentation extracted from: (module=la, header=PETScObject.h)
752
768
%feature("docstring") dolfin::PETScObject "
753
769
This class calls SubSystemsManager to initialise PETSc.
1193
1209
Return linear algebra backend factory
1196
%feature("docstring") dolfin::PETScMatrix::set_near_nullspace "
1197
Set (approximate) null space of the matrix. This is used by
1198
some preconditioners.
1201
1212
%feature("docstring") dolfin::PETScMatrix::norm "
1202
1213
Return norm of matrix
1250
1261
Set the precondtioner type and parameters
1264
%feature("docstring") dolfin::PETScPreconditioner::set_nullspace "
1265
Set the (approximate) null space of the preconditioner operator
1266
(matrix). This is required for certain preconditioner types,
1267
e.g. smoothed aggregation multigrid
1270
%feature("docstring") dolfin::PETScPreconditioner::nullspace "
1271
Return the PETSc null space
1253
1274
%feature("docstring") dolfin::PETScPreconditioner::str "
1254
1275
Return informal string representation (pretty-print)
1278
%feature("docstring") dolfin::PETScPreconditioner::preconditioners "
1279
Rerturn a list of available preconditioners
1257
1282
%feature("docstring") dolfin::PETScPreconditioner::default_parameters "
1258
1283
Default parameter values
1821
1846
Set operator (matrix) and preconditioner matrix
1849
%feature("docstring") dolfin::PETScKrylovSolver::set_nullspace "
1850
Set null space of the operator (matrix). This is used to solve
1824
1854
%feature("docstring") dolfin::PETScKrylovSolver::get_operator "
1825
1855
Get operator (matrix)
1865
1895
Default parameter values
1868
%feature("docstring") dolfin::PETScKrylovSolver::init "
1869
Initialize KSP solver
1872
%feature("docstring") dolfin::PETScKrylovSolver::write_report "
1873
Report the number of iterations
1876
1898
// Documentation extracted from: (module=la, header=PETScLUSolver.h)
1877
1899
%feature("docstring") dolfin::PETScLUSolver "
1878
1900
This class implements the direct solution (LU factorization) for
3400
3422
Set the Trilonos preconditioner parameters list (for use from Python)
3403
%feature("docstring") dolfin::TrilinosPreconditioner::set_null_space "
3425
%feature("docstring") dolfin::TrilinosPreconditioner::set_nullspace "
3404
3426
Set basis for the null space of the operator. Setting this
3405
3427
is critical to the performance of some preconditioners, e.g. ML.
3406
3428
The vectors spanning the null space are copied.
4070
4092
Set operator (matrix) and preconditioner matrix
4095
%feature("docstring") dolfin::KrylovSolver::set_nullspace "
4096
Set null space of the operator (matrix). This is used to solve
4073
4100
%feature("docstring") dolfin::KrylovSolver::solve "
4074
4101
**Overloaded versions**
4123
4150
Default parameter values
4126
// Documentation extracted from: (module=la, header=SingularSolver.h)
4127
%feature("docstring") dolfin::SingularSolver "
4128
This class provides a linear solver for singular linear systems
4129
Ax = b where A has a one-dimensional null-space (kernel). This
4130
may happen for example when solving Poisson's equation with
4131
pure Neumann boundary conditions.
4133
The solver attempts to create an extended non-singular system
4134
by adding the constraint [1, 1, 1, ...]^T x = 0.
4136
If an optional mass matrix M is supplied, the solver attempts
4137
to create an extended non-singular system by adding the
4138
constraint m^T x = 0 where m is the lumped mass matrix. This
4139
corresponds to setting the average (integral) of the finite
4140
element function with coefficients x to zero.
4142
The solver makes not attempt to check that the null-space is
4143
indeed one-dimensional. It is also assumed that the system
4144
Ax = b retains its sparsity pattern between calls to solve().
4147
%feature("docstring") dolfin::SingularSolver::SingularSolver "
4148
Create linear solver
4151
%feature("docstring") dolfin::SingularSolver::solve "
4152
**Overloaded versions**
4156
Solve linear system Ax = b
4158
* solve\ (A, x, b, M)
4160
Solve linear system Ax = b using mass matrix M for setting constraint
4163
%feature("docstring") dolfin::SingularSolver::default_parameters "
4164
Default parameter values
4167
4153
// Documentation extracted from: (module=la, header=solve.h)
4168
4154
%feature("docstring") dolfin::solve "
4169
4155
Solve linear system Ax = b