hashedSMatrix.hh
T operator()(const uint r, const uint c) const
HashedSparseMatrix< T > & operator*=(const T factor)
Multiplies all entrices with a certain constant.
std::ostream & info(std::ostream &os) const
void write(std::ostream &ofs) const
void transpMult(const F f[], G g[]) const
Multiplies the transpose of the matrix with f and adds the results to g.
Definition: hashedSMatrix.hh:205
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
void operator=(const HashedSparseMatrix< T > &)
const_iterator begin(uint row=0) const
Returns constant iterator over the entrances.
void multiply(const HashedSparseMatrix< T > *const fact, concepts::Matrix< T > &dest) const
Multiplies this matrix and fact and adds the result to dest.
Definition: hashedSMatrix.hh:214
_HashedSMatrix_iterator< T, const T &, const T * > const_iterator
Definition: hashedSMatrix.hh:52
void outputMatlab(std::ostream &ofs) const
_HashedSMatrix_iterator< T, T &, T * > iterator
Definition: hashedSMatrix.hh:51
HashedSparseMatrix(uint r, uint c, uint h)
Constructor.
void outputSparseQR(std::ostream &ofs) const
std::ostream & operator<<(std::ostream &os, const Level< dim > &c)
void dropEntry_(Value *&v, Value *&vPrev, const uint r, const uint c)
Removes entry (r,c) from the matrix.
HashedSparseMatrix(const HashedSparseMatrix< T > &)
~HashedSparseMatrix()
void multiply(const concepts::Matrix< T > *const fact, concepts::Matrix< T > &dest) const
Multiplies this matrix and fact and adds the result to dest.
Definition: hashedSMatrix.hh:238
Values of a matrix in sparse notation.
Definition: hashedSMatrix.hh:57
void compress(Real threshold=EPS)
Compresses the matrix by dropping small entries.
Value & operator*=(const T factor)
Mulitply value with a certain constant.
Definition: hashedSMatrix.hh:77
uint getNumberofRows(HashedSparseMatrix< F > &m)
Definition: hashedSMatrix.hh:275
STL like iterator for hashed sparse matrices.
Definition: hashedSMatrixIterator.hh:29
T & operator()(const uint r, const uint c)
Returns the entry with index (r,c).
std::conditional< std::is_same< typename Realtype< T >::type, T >::value, typename Realtype< T >::type, typename Cmplxtype< T >::type >::type d_type
Data type, depending if F is real or complex.
Definition: hashedSMatrix.hh:49
void operator()(const F f[], G g[]) const
Multiplies the matrix with f. The result is g.
Definition: hashedSMatrix.hh:258