3 #ifndef DUNE_ISTL_BDMATRIX_HH
4 #define DUNE_ISTL_BDMATRIX_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();
95 void setrowsize (size_type i, size_type s) {}
96 void incrementrowsize (size_type i) {}
97 void endrowsizes () {}
98 void addindex (size_type
row, size_type
col) {}
BDMatrix & operator=(const BDMatrix &other)
assignment
Definition: bdmatrix.hh:69
Implementation of the BCRSMatrix class.
Row row
Definition: matrixmatrix.hh:345
Definition: basearray.hh:19
BCRSMatrix & operator=(const BCRSMatrix &Mat)
assignment
Definition: bcrsmatrix.hh:868
Col col
Definition: matrixmatrix.hh:347
A sparse block matrix with compressed row storage.
Definition: bcrsmatrix.hh:412
Matrix & A
Definition: matrixmatrix.hh:216
size_type N() const
number of rows (counted in blocks)
Definition: bcrsmatrix.hh:1849
void invert()
Inverts the matrix.
Definition: bdmatrix.hh:81
Build entries randomly.
Definition: bcrsmatrix.hh:479
Definition: bdmatrix.hh:48
void endindices()
indicate that all indices are defined, check consistency
Definition: bcrsmatrix.hh:1208
B block_type
export the type representing the components
Definition: bdmatrix.hh:36
A::size_type size_type
implement row_type with compressed vector
Definition: bdmatrix.hh:45
BDMatrix(int size)
Definition: bdmatrix.hh:53
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:1109
BDMatrix()
Default constructor.
Definition: bdmatrix.hh:51