3#ifndef DUNE_ISTL_BCCSMATRIX_HH
4#define DUNE_ISTL_BCCSMATRIX_HH
6#include <dune/common/fmatrix.hh>
7#include <dune/common/fvector.hh>
8#include <dune/common/typetraits.hh>
10namespace Dune::ISTL::Impl
25 template<class B, class I = typename std::allocator<B>::size_type>
30 using size_type = std::size_t;
35 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)
46 void setSize(size_type rows, size_type columns)
62 size_type nonzeroes()
const
93 Index* getRowIndex()
const
104 Index* getColStart()
const
110 BCCSMatrix& operator=(
const BCCSMatrix&
mat)
118 colstart=
new size_type[M_+1];
119 for(size_type i=0; i<=M_; ++i)
120 colstart[i]=
mat.colstart[i];
124 values =
new B[Nnz_];
125 rowindex =
new size_type[Nnz_];
127 for(size_type i=0; i<Nnz_; ++i)
128 values[i]=
mat.values[i];
130 for(size_type i=0; i<Nnz_; ++i)
131 rowindex[i]=
mat.rowindex[i];
148 size_type N_, M_, Nnz_;
Matrix & mat
Definition: matrixmatrix.hh:345