3 #ifndef DUNE_BLOCK_DIAGONAL_MATRIX_HH
4 #define DUNE_BLOCK_DIAGONAL_MATRIX_HH
25 template <
class B,
class A=std::allocator<B> >
56 for (
int i=0; i<size; i++)
61 for (
int i=0; i<size; i++)
82 for (
int i=0; i<this->
N(); i++)
83 (*
this)[i][i].invert();
97 void endrowsizes () {}
B::field_type field_type
export the type representing the field
Definition: bcrsmatrix.hh:436
BDMatrix & operator=(const BDMatrix &other)
assignment
Definition: bdmatrix.hh:69
BCRSMatrix & operator=(const BCRSMatrix &Mat)
assignment
Definition: bcrsmatrix.hh:870
Build entries randomly.
Definition: bcrsmatrix.hh:480
A sparse block matrix with compressed row storage.
Definition: bcrsmatrix.hh:413
size_type N() const
number of rows (counted in blocks)
Definition: bcrsmatrix.hh:1850
Col col
Definition: matrixmatrix.hh:347
void invert()
Inverts the matrix.
Definition: bdmatrix.hh:81
void endindices()
indicate that all indices are defined, check consistency
Definition: bcrsmatrix.hh:1209
B block_type
export the type representing the components
Definition: bdmatrix.hh:36
Matrix & A
Definition: matrixmatrix.hh:216
A::size_type size_type
implement row_type with compressed vector
Definition: bdmatrix.hh:45
Implementation of the BCRSMatrix class.
BDMatrix(int size)
Definition: bdmatrix.hh:53
Definition: bdmatrix.hh:48
Row row
Definition: matrixmatrix.hh:345
A allocator_type
export the allocator type
Definition: bdmatrix.hh:39
A block-diagonal matrix.
Definition: bdmatrix.hh:26
B::field_type field_type
export the type representing the field
Definition: bdmatrix.hh:33
void endrowsizes()
indicate that size of all rows is defined
Definition: bcrsmatrix.hh:1110
BDMatrix()
Default constructor.
Definition: bdmatrix.hh:51