3#ifndef DUNE_ISTL_BCCSMATRIX_HH
4#define DUNE_ISTL_BCCSMATRIX_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_;
Traits for type conversions and type information.
Implements a matrix constructed from a given type representing a field and compile-time given number ...
Implements a vector constructed from a given type representing a field and a compile-time given size.