BlockMatrix¶
-
class
dolfin.cpp.la.
BlockMatrix
¶ Bases:
object
Block
Matrix
.Constructor.
Parameters: - m (std::size_t) –
- n (std::size_t) –
-
apply
()¶ Finalize assembly of tensor.
Parameters: mode (std::string) – Return type: void
-
get_block
()¶ Get block (const version)
Parameters: - i (std::size_t) –
- j (std::size_t) –
Return type: std::shared_ptr< const GenericMatrix >
-
mult
()¶ Matrix-vector product, y = Ax.
Parameters: - BlockVector & x (const) –
- & y (BlockVector) –
- transposed (bool) –
Return type: void
-
schur_approximation
()¶ Create a crude explicit Schur approximation of S = D - C A^-1 B of (A B; C D) If symmetry != 0, then the caller promises that B = symmetry * transpose(C).
Parameters: symmetry (bool) – Return type: std::shared_ptr< GenericMatrix >
-
set_block
()¶ Set
block.Parameters: - i (std::size_t) –
- j (std::size_t) –
- GenericMatrix > m (std::shared_ptr<) –
Return type: void
-
size
()¶ Return size of given dimension.
Parameters: dim (std::size_t) – Return type: std::size_t
-
str
()¶ Return informal string representation (pretty-print)
Parameters: verbose (bool) – Return type: std::string
-
thisown
¶ The membership flag
-
zero
()¶ Set
all entries to zero and keep any sparse structure.Return type: void