12namespace Dune::ISTL::Impl
27 template<class B, class I = typename std::allocator<B>::size_type>
32 using size_type = std::size_t;
37 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)
48 void setSize(size_type rows, size_type columns)
64 size_type nonzeroes()
const
95 Index* getRowIndex()
const
106 Index* getColStart()
const
112 BCCSMatrix& operator=(
const BCCSMatrix&
mat)
120 colstart=
new size_type[M_+1];
121 for(size_type i=0; i<=M_; ++i)
122 colstart[i]=
mat.colstart[i];
126 values =
new B[Nnz_];
127 rowindex =
new size_type[Nnz_];
129 for(size_type i=0; i<Nnz_; ++i)
130 values[i]=
mat.values[i];
132 for(size_type i=0; i<Nnz_; ++i)
133 rowindex[i]=
mat.rowindex[i];
150 size_type N_, M_, Nnz_;