10#include <kernel/lafem/sparse_matrix_csr.hpp>
11#include <kernel/lafem/sparse_matrix_bcsr.hpp>
38 template<
typename DT_,
typename IT_,
int block_size_>
63 using BaseClass::BaseClass;
66 template <
typename DT2_ = DT_,
typename IT2_ = IT_>
70 template <
typename DataType2_,
typename IndexType2_>
114 template <
typename DT2_,
typename IT2_>
CSR based blocked sparse matrix.
Intern::BCSRVectorHelper< DT_, IT_, block_width_ >::VectorType VectorTypeR
Compatible R-vector type.
Intern::BCSRVectorHelper< DT_, IT_, block_height_ >::VectorType VectorTypeL
Compatible L-vector type.
Wraps a SparseMatrixCSR to SparseMatrixBCSR.
PretendType::VectorTypeR VectorTypeR
Vector type accepted for multiplication form the right.
const LAFEM::SparseMatrixCSR< DT_, IT_ > & unwrap() const
LAFEM::SparseMatrixCSR< DT_, IT_ > BaseClass
The real type of the underlying matrix.
IT_ IndexType
The index type.
SparseMatrixBWrappedCSR()
Empty standard constructor.
LAFEM::SparseMatrixCSR< DT_, IT_ > & unwrap()
SparseMatrixBWrappedCSR(BaseClass &&other)
From-baseclass move constructor.
static constexpr int block_height
The block height the SparseMatrixBWrappedCSR pretends to have.
SparseMatrixBWrappedCSR clone(CloneMode mode=CloneMode::Weak) const
Clone operation.
static constexpr int block_width
The block width the SparseMatrixBWrappedCSR pretends to have.
VectorTypeR create_vector_r() const
Returns a new compatible vector for right-multiplication.
LAFEM::SparseMatrixBCSR< DT_, IT_, block_size_, block_size_ > PretendType
What this matrix pretends to be.
PretendType::VectorTypeL VectorTypeL
Vector type accepted for multiplication form the left.
VectorTypeL create_vector_l() const
Returns a new compatible vector for left-multiplication.
DT_ DataType
The floating point datatype.
void convert(const SparseMatrixCSR< DT2_, IT2_ > &other)
Conversion method.
Index num_cols() const
Retrieve matrix column count.
Index num_rows() const
Retrieve matrix row count.
SparseMatrixCSR clone(CloneMode clone_mode=CloneMode::Weak) const
Clone operation.