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();
97 void endrowsizes () {}
Implementation of the BCRSMatrix class.
Col col
Definition matrixmatrix.hh:347
Definition basearray.hh:19
Statistics about compression achieved in implicit mode.
Definition bcrsmatrix.hh:81
A sparse block matrix with compressed row storage.
Definition bcrsmatrix.hh:412
void endrowsizes()
indicate that size of all rows is defined
Definition bcrsmatrix.hh:1107
@ random
Build entries randomly.
Definition bcrsmatrix.hh:478
void endindices()
indicate that all indices are defined, check consistency
Definition bcrsmatrix.hh:1206
size_type N() const
number of rows (counted in blocks)
Definition bcrsmatrix.hh:1892
BCRSMatrix & operator=(const BCRSMatrix &Mat)
assignment
Definition bcrsmatrix.hh:867
A block-diagonal matrix.
Definition bdmatrix.hh:27
A::size_type size_type
implement row_type with compressed vector
Definition bdmatrix.hh:45
BDMatrix()
Default constructor.
Definition bdmatrix.hh:51
B block_type
export the type representing the components
Definition bdmatrix.hh:36
@ blocklevel
Definition bdmatrix.hh:48
A allocator_type
export the allocator type
Definition bdmatrix.hh:39
BDMatrix(int size)
Definition bdmatrix.hh:53
BDMatrix & operator=(const BDMatrix &other)
assignment
Definition bdmatrix.hh:69
B::field_type field_type
export the type representing the field
Definition bdmatrix.hh:33
void invert()
Inverts the matrix.
Definition bdmatrix.hh:81