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) {}
Col col
Definition: matrixmatrix.hh:349
B block_type
export the type representing the components
Definition: bdmatrix.hh:36
BDMatrix(int size)
Definition: bdmatrix.hh:53
void endindices()
indicate that all indices are defined, check consistency
Definition: bcrsmatrix.hh:1217
Definition: bdmatrix.hh:48
A allocator_type
export the allocator type
Definition: bdmatrix.hh:39
A sparse block matrix with compressed row storage.
Definition: bcrsmatrix.hh:422
Definition: basearray.hh:19
void endrowsizes()
indicate that size of all rows is defined
Definition: bcrsmatrix.hh:1118
BDMatrix()
Default constructor.
Definition: bdmatrix.hh:51
void invert()
Inverts the matrix.
Definition: bdmatrix.hh:81
Implementation of the BCRSMatrix class.
Build entries randomly.
Definition: bcrsmatrix.hh:489
size_type N() const
number of rows (counted in blocks)
Definition: bcrsmatrix.hh:1903
B::field_type field_type
export the type representing the field
Definition: bdmatrix.hh:33
BCRSMatrix & operator=(const BCRSMatrix &Mat)
assignment
Definition: bcrsmatrix.hh:878
A::size_type size_type
implement row_type with compressed vector
Definition: bdmatrix.hh:45
A block-diagonal matrix.
Definition: bdmatrix.hh:26
BDMatrix & operator=(const BDMatrix &other)
assignment
Definition: bdmatrix.hh:69