submatrix.hh
virtual type operator()(const uint i, const uint j) const
Index operator.
virtual void convertIJK(type *, int *, int *) const
Converts sub matrix to IJK format.
const_iterator begin(uint r=0) const
Constant iterator over the elements, standing at position (0,0)
virtual void convertCRS(type *a, int *asub, int *xa) const
Converts sub matrix to CRS format.
virtual void convertCCS(type *a, int *asub, int *xa) const
Converts sub matrix to CCS format.
void multiply(const H &fact, I &dest) const
Definition: submatrix.hh:75
Definition: spaceSet.hh:17
virtual void operator()(const Function< r_type > &fncY, Function< type > &fncX)
_SubMatrix_iterator< F, const type &, const type * > const_iterator
Definition: submatrix.hh:53
virtual void transpMult(const Vector< c_type > &fncY, Vector< c_type > &fncX)
Definition: submatrix.hh:23
const Set< IndexRange > & indicesX() const
Returns index range for the rows.
Definition: submatrix.hh:116
virtual void operator()(const Function< c_type > &fncY, Function< c_type > &fncX)
virtual type & operator()(const uint i, const uint j)
std::conditional< std::is_same< typename Realtype< F >::type, F >::value, typename Realtype< F >::type, typename Cmplxtype< F >::type >::type d_type
Data type, depending if F is real or complex.
Definition: submatrix.hh:50
Abstract class for an operator, which is a sub matrix of another matrix.
Definition: submatrix.hh:26
const Set< IndexRange > & indicesY() const
Returns index range for the columns.
Definition: submatrix.hh:118
Base class for operators which can be converted to Sparse Row Storage (CRS) or Sparse Column Storage ...
Definition: CRS.hh:30
virtual std::ostream & info(std::ostream &os) const
SubMatrixN(F &m, const Set< IndexRange > &indicesX, const Set< IndexRange > &indicesY)
Constructor.
void addInto(Matrix< H > &dest, const I fact, const uint rowoffset=0, const uint coloffset=0) const
This matrix is added as block into to the given matrix.
Definition: submatrix.hh:134
virtual void transpMult(const Vector< r_type > &fncY, Vector< type > &fncX)
_SubMatrix_iterator< F, type &, type * > iterator
Definition: submatrix.hh:52
void matrixMultiplyRowSorting(const F &factL, const G &factR, Matrix< H > &dest)
Multiplies two matrices, which deliver at least a row sorted iterator, and adds (!...
Definition: matrixMult.hh:28
iterator begin(uint r=0)
Iterator over the elements, standing at position (0,0)