matrix.hh
Go to the documentation of this file.
71 const_iterator begin(uint r = 0) const { return const_iterator(const_cast<Matrix<F>&>(*this), r); }
static void assembly(Matrix< F > &dest, Scan< Element< G > > *sc, const BilinearForm< F, G > &bf, const Real threshold=0.0)
Assembly operator for dest using the bilinear form bf.
iterator begin(uint r=0)
Iterator over the elements, standing at position (r,0).
Definition: matrix.hh:64
const_iterator begin(uint r=0) const
Constant iterator over the elements, standing at position (r,0)
Definition: matrix.hh:71
static void assembly(Matrix< F > &dest, const Space< G > &spcX, const Space< G > &spcY, const BilinearForm< F, G > &bf, const Real threshold=0.0, const bool single=false)
Assembly operator for dest using the bilinear form bf.
static void assembly(Matrix< F > &dest, const Space< G > &spcX, const Space< G > &spcY, const Sequence< bool > &seq, const BilinearForm< F, G > &bf, const Real threshold=0.0, const bool single=false)
Assembly operator for dest using the bilinear form bf.
static void assembly(Matrix< F > &dest, const Sequence< ElementWithCell< G > * > seqX, const Space< G > &spcY, const BilinearForm< F, G > &bf, const Real threshold=0.0)
Assembly operator for dest using the bilinear form bf.
virtual void add(const uint i, const uint j, const F value, const bool use_threshold=false, const Real threshold_value=1e-8)
Addition operator Add the value to the entry (i,j) if not zero (for use_threshold = false),...
static void assembly(Matrix< F > &dest, const Sequence< ElementWithCell< G > * > seq, const BilinearForm< F, G > &bf, const Real threshold=0.0)
Assembly operator for dest using the bilinear form bf.
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: matrix.hh:48
virtual void operator()(const Function< c_type > &fncY, Function< c_type > &fncX)=0
virtual const uint dimX() const
Returns the size of the image space of the operator (number of rows of the corresponding matrix)
Definition: compositions.hh:93
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
#define DEBUGL(doit, msg)
Abstract function class to evaluate a bilinear form.
Definition: bilinearForm.hh:33
static void assembly(Matrix< F > &dest, const Space< G > &spc, const Sequence< bool > &seq, const BilinearForm< F, G > &bf, const Real threshold=0.0)
Assembly operator for dest using the bilinear form bf on space spc.
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
Definition: scannerConnectors.hh:29
virtual void set(const uint i, const uint j, const F value, const bool use_threshold=false, const Real threshold_value=1e-8)
Affectation operator Affet the value to the entry (i,j) if not zero (for use_threshold = false),...
Sequence with operations, output operator, and method of the particular element types.
Definition: sequence.hh:39
virtual F & operator()(const uint i, const uint j)=0
Returns and allows access to entry with indices i and j.
virtual F operator()(const uint i, const uint j) const =0
Returns entry with indices i and j.
Holds a list of ElementPair and allows to scan over this list.
Definition: elementPairs.hh:41
virtual void transpMult(const Vector< r_type > &fncY, Vector< F > &fncX)=0
Computes fncX = AT fncY where A is this matrix.
static void assembly(Matrix< F > &dest, const BilinearForm< F, G > &bf, const ElementPairList< G > &pairs)
Assembly operator for dest using the bilinear form bf.
static void setTimings(InOutParameters *timings)
Sets the class to store the timing values in.
virtual bool operator==(const Matrix< F > &otherMat) const
Definition: matrix.hh:179
Definition: sequence.hh:348
void apply(Operator< F > &op, const Matrix< H > &mX, Matrix< I > &mY)
Multiplication with a matrix.
Definition: matrix.hh:256
uint getNumberofRows(HashedSparseMatrix< F > &m)
Definition: hashedSMatrix.hh:275
virtual void operator()(const Function< r_type > &fncY, Function< F > &fncX)=0
Computes fncX = A(fncY) where A is this matrix.
static void assembly(Matrix< F > &dest, const Space< G > &spc, const BilinearForm< F, G > &bf, const Real threshold=0.0)
Assembly operator for dest using the bilinear form bf.
virtual void transpMult(const Vector< c_type > &fncY, Vector< c_type > &fncX)=0
_Matrix_iterator< F, const F &, const F * > const_iterator
Definition: matrix.hh:51