Class documentation of Concepts

Loading...
Searching...
No Matches

#include <denseMatrix.hh>

Inheritance diagram for concepts::DenseMatrix< F >:
concepts::Matrix< F > concepts::ElementMatrix< F > concepts::Operator< F > concepts::ElementMatrixBase< F > concepts::OutputOperator

Public Types

typedef Realtype< F >::type r_type
 Real type of data type.
 
typedef Cmplxtype< F >::type c_type
 Complex type of data type.
 
typedef std::conditional< std::is_same< typenameRealtype< F >::type, F >::value, typenameRealtype< F >::type, typenameCmplxtype< F >::type >::type d_type
 Data type, depending if F is real or complex.
 
typedefvalue_type
 
typedef _Matrix_iterator< F, F &, F * > iterator
 
typedef _Matrix_iterator< F, const F &, const F * > const_iterator
 
typedeftype
 Type of data, e.g. matrix entries.
 
typedefvalue_type
 

Public Member Functions

template<class G >
 DenseMatrix (const Space< G > &spcX, const Space< G > &spcY, const BilinearForm< F, G > &bf, const bool single=true)
 
template<class G >
 DenseMatrix (const Space< G > &spc, const BilinearForm< F, G > &bf)
 
template<class G >
 DenseMatrix (const Space< G > &spc, const BilinearForm< F, G > &bf, const Sequence< ElementWithCell< G > * > &seq)
 
template<class G >
 DenseMatrix (const Space< G > &spcX, const Space< G > &spcY)
 
 DenseMatrix (int m=0, int n=0, bool transpose=false)
 
 DenseMatrix (const LiCo< F > &L)
 
 DenseMatrix (const Compose< F > &L)
 
 DenseMatrix (const DenseMatrix< F > &m)
 Copy constructor.
 
 DenseMatrix (const Matrix< F > &m, bool t=false)
 
 DenseMatrix (const Vector< F > &v, bool t=false)
 
virtual void operator() (const Function< r_type > &fncY, Function< F > &fncX)
 Computes fncX = A(fncY) where A is this matrix.
 
virtual void operator() (const Function< c_type > &fncY, Function< c_type > &fncX)
 
template<class H , class I >
void operator() (const Vector< H > &fncY, Vector< I > &fncX)
 
virtual void transpMult (const Vector< r_type > &fncY, Vector< F > &fncX)
 Computes fncX = AT fncY where A is this matrix.
 
virtual void transpMult (const Vector< c_type > &fncY, Vector< c_type > &fncX)
 
virtualoperator() (const uint i, const uint j) const
 Returns entry with indices i and j.
 
virtual F & operator() (const uint i, const uint j)
 Returns and allows access to entry with indices i and j.
 
virtual DenseMatrix< F > & operator= (const F &v)
 
virtual void resize (uint m, uint n)
 
virtual void setTranspose (bool t)
 
void addInto (Matrix< F > &dest, const F fact, const uint rowoffset=0, const uint coloffset=0) const
 
template<class T >
void addInto (Matrix< T > &dest, const T fact, const uint rowoffset=0, const uint coloffset=0) const
 
template<class T >
void addIntoT (Matrix< T > &dest, const T fact, const uint rowoffset=0, const uint coloffset=0) const
 
const uint nofRows () const
 Number of rows.
 
const uint nofCols () const
 Number of columns.
 
iterator begin (uint r=0)
 
const_iterator begin (uint r=0) const
 
iterator end ()
 Iterator, standing behind last element.
 
const_iterator end () const
 Constant iterator, standing behind last element.
 
virtual void set (const uint i, const uint j, const F value, const bool use_threshold=false, const Real threshold_value=1e-8)
 
virtual void add (const uint i, const uint j, const F value, const bool use_threshold=false, const Real threshold_value=1e-8)
 
virtual void operator() ()
 
virtual bool operator== (const Matrix< F > &otherMat) const
 
virtual const uint dimX () const
 
virtual const uint dimY () const
 
virtual void show_messages ()
 
void add (const ElementMatrix< F > &A, uint offm=0, uint offn=0)
 Addition of another element matrix with possible offset.
 
template<uint dim>
void writeColumn (uint col, const Point< F, dim > &val)
 Writes a vector to a column in case of m() >= dim.
 
void writeColumn (uint col, const Array< F > &val)
 Writes an array to a column.
 
void writeColumn (uint col, const F val)
 Writes a value to a column in case of m() >= 1.
 
bool transpose ()
 
int getIndex () const
 
void setIndex (int i)
 
void zeros ()
 Fills the matrix with zeros.
 
 operator F* ()
 Returns a pointer to the data array.
 
ElementMatrix< F > & operator*= (const F n)
 Scaling operator.
 
uint row () const
 Returns current row.
 
uint col () const
 Returns current column.
 
void compress (const Real threshold=EPS)
 
uint m () const
 Returns the number of rows.
 
uint n () const
 Returns the number of columns.
 
uint size () const
 Returns the number of entries in the matrix.
 
 operator const F * () const
 Returns a pointer to the data array.
 
const Array< F > & getData () const
 Returns the data array

 
bool isTranspose () const
 
bool storeMatlab (const std::string filename, std::string name="", bool append=false) const
 

Static Public Member Functions

template<class G >
static void assembly (Matrix< F > &dest, const Space< G > &spc, const BilinearForm< F, G > &bf, const Real threshold=0.0)
 
template<class G >
static void assembly (Matrix< F > &dest, Scan< Element< G > > *sc, const BilinearForm< F, G > &bf, const Real threshold=0.0)
 
template<class G >
static void assembly (Matrix< F > &dest, const Sequence< ElementWithCell< G > * > seq, const BilinearForm< F, G > &bf, const Real threshold=0.0)
 
template<class G >
static void assembly (Matrix< F > &dest, const Space< G > &spc, const Sequence< bool > &seq, const BilinearForm< F, G > &bf, const Real threshold=0.0)
 
template<class G >
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)
 
template<class G >
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)
 
template<class G >
static void assembly (Matrix< F > &dest, const BilinearForm< F, G > &bf, const ElementPairList< G > &pairs)
 
template<class G >
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)
 
Timing Interface

These functions are used to get timings from class internal computations. The values are stored in a user defined concepts::InOutParameters structure in different arrays (see setTimings). These arrays can be grouped into a table for easier postprocessing with

table.addMap(concepts::ResultsTable::DOUBLE, "jacobian", output);
table.addMap(concepts::ResultsTable::DOUBLE, "whole_sumfact", output);
std::ofstream ofs("table.gnuplot");
ofs << std::setprecision(20);
table.print<concepts::ResultsTable::GNUPLOT>(ofs);
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320
static void setTimings (InOutParameters *timings)
 
static bool timings ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Protected Attributes

uint dimX_
 Dimension of image space and the source space.
 
uint dimY_
 
Array< F > data_
 Data.
 
uint m_
 Number of rows.
 
uint n_
 Number of columns.
 
bool t_
 Transpose.
 

Detailed Description

template<class F>
class concepts::DenseMatrix< F >

Dense matrix. The matrix has the size $m \times n$ where m is the dimension of the image space (spaceX) and n is the dimension of the source space (spaceY).

The matrix is setup and assembled in the constructor. It calls the bilinear form on every element of the space and uses the T matrices of the elements to assemble the element matrices into the global matrix.

There are quite a few solver which can be used to solve the system.

See also
TMatrixBase
CG
GMRes
Examples
matfileTutorial.cc.

Definition at line 44 of file denseMatrix.hh.

Member Typedef Documentation

◆ c_type

template<class F >
typedef Cmplxtype<F>::type concepts::DenseMatrix< F >::c_type

Complex type of data type.

Definition at line 49 of file denseMatrix.hh.

◆ const_iterator

template<class F >
typedef _Matrix_iterator<F, const F&, const F*> concepts::Matrix< F >::const_iterator
inherited

Definition at line 51 of file matrix.hh.

◆ d_type

template<class F >
typedef std::conditional<std::is_same<typenameRealtype<F>::type,F>::value,typenameRealtype<F>::type,typenameCmplxtype<F>::type>::type concepts::DenseMatrix< F >::d_type

Data type, depending if F is real or complex.

Definition at line 52 of file denseMatrix.hh.

◆ iterator

template<class F >
typedef _Matrix_iterator<F, F&, F*> concepts::Matrix< F >::iterator
inherited

Definition at line 50 of file matrix.hh.

◆ r_type

template<class F >
typedef Realtype<F>::type concepts::DenseMatrix< F >::r_type

Real type of data type.

Definition at line 47 of file denseMatrix.hh.

◆ type

template<class F >
typedef F concepts::Operator< F >::type
inherited

Type of data, e.g. matrix entries.

Definition at line 45 of file compositions.hh.

◆ value_type [1/2]

template<class F >
typedef F concepts::Matrix< F >::value_type
inherited

Definition at line 41 of file matrix.hh.

◆ value_type [2/2]

template<class F >
typedef F concepts::ElementMatrix< F >::value_type
inherited

Definition at line 208 of file element.hh.

Constructor & Destructor Documentation

◆ DenseMatrix() [1/9]

template<class F >
template<class G >
concepts::DenseMatrix< F >::DenseMatrix ( const Space< G > &  spcX,
const Space< G > &  spcY,
const BilinearForm< F, G > &  bf,
const bool  single = true 
)

Constructor. Computes the global matrix by assembling the element matrices.

This constructor features a double loop over the elements of the image and the source space. On each combination, the bilinear form is called.

Using this constructor, if spcX != spcY or if you have local matrices which express the interaction of the two elements. You can force this constructor to execute the double loop in such a way that only for diagonal combinations of the elements in both space the integration and assembling is executed. Use single and set it to true.

In non-symmetric FEM (eg. DGFEM), one has to solve AT u = f. This constructor computes A and not AT.

Parameters
spcXImage space
spcYSource space
bfBilinear form

◆ DenseMatrix() [2/9]

template<class F >
template<class G >
concepts::DenseMatrix< F >::DenseMatrix ( const Space< G > &  spc,
const BilinearForm< F, G > &  bf 
)

Constructor. Computes the global matrix by assembling the element matrices.

This constructor features a single loop over the elements of the space. On each element, the bilinear form is called.

Use the constructor, if spcX == spcY and there is no special element interaction. This is the case for standard FEM.

Parameters
spcImage and source space
bfBilinear form

◆ DenseMatrix() [3/9]

template<class F >
template<class G >
concepts::DenseMatrix< F >::DenseMatrix ( const Space< G > &  spc,
const BilinearForm< F, G > &  bf,
const Sequence< ElementWithCell< G > * > &  seq 
)

Constructor. Computes the partial matrix by assembling the element matrices on a given subdomain

This constructor features a single loop over the elements of the sequence. On each element, the bilinear form is called.

Parameters
spcImage and source space
bfBilinear form
seqSequence of elements to take into account

◆ DenseMatrix() [4/9]

template<class F >
template<class G >
concepts::DenseMatrix< F >::DenseMatrix ( const Space< G > &  spcX,
const Space< G > &  spcY 
)

Constructor for an empty matrix.

Parameters
spcXImage space
spcYSource space

◆ DenseMatrix() [5/9]

template<class F >
concepts::DenseMatrix< F >::DenseMatrix ( int  m = 0,
int  n = 0,
bool  transpose = false 
)
inline

Constructor for an empty matrix.

Parameters
mNumber of rows
nNumber of columns
transposeThe matrix will be stored in transposed format

Definition at line 121 of file denseMatrix.hh.

◆ DenseMatrix() [6/9]

template<class F >
concepts::DenseMatrix< F >::DenseMatrix ( const LiCo< F > &  L)

Constructor. Evaluates a linear combination and stores the result in the matrix.

◆ DenseMatrix() [7/9]

template<class F >
concepts::DenseMatrix< F >::DenseMatrix ( const Compose< F > &  L)

Constructor. Evaluates a composition and stores the result in the matrix.

◆ DenseMatrix() [8/9]

template<class F >
concepts::DenseMatrix< F >::DenseMatrix ( const Matrix< F > &  m,
bool  t = false 
)

Copy constructor. If t is set to true, the matrix is transposed during the copy process

◆ DenseMatrix() [9/9]

template<class F >
concepts::DenseMatrix< F >::DenseMatrix ( const Vector< F > &  v,
bool  t = false 
)

Transformation constructor from a vector of length n.

If t is set to true, the matrix is a 1xn, otherwise nx1.

Member Function Documentation

◆ add()

template<class F >
virtual void concepts::Matrix< F >::add ( const uint  i,
const uint  j,
const F  value,
const bool  use_threshold = false,
const Real  threshold_value = 1e-8 
)
virtualinherited

Addition operator Add the value to the entry (i,j) if not zero (for use_threshold = false), or if the absolute avlue is bigger than the threshold_value (for use_threshold = true)

◆ addInto() [1/2]

template<class F >
void concepts::DenseMatrix< F >::addInto ( Matrix< F > &  dest,
const F  fact,
const uint  rowoffset = 0,
const uint  coloffset = 0 
) const

This matrix is added into to the given matrix.

Parameters
destMatrix into which this matrix should be added.
factFactor by which this matrix should be multiplied.

◆ addInto() [2/2]

template<class F >
template<class T >
void concepts::DenseMatrix< F >::addInto ( Matrix< T > &  dest,
const T  fact,
const uint  rowoffset = 0,
const uint  coloffset = 0 
) const
inline

allows to add a Real Matrix to a complex one.

Definition at line 196 of file denseMatrix.hh.

◆ addIntoT()

template<class F >
template<class T >
void concepts::DenseMatrix< F >::addIntoT ( Matrix< T > &  dest,
const T  fact,
const uint  rowoffset = 0,
const uint  coloffset = 0 
) const
inline

allows to add a Real Matrix to a complex one.

Definition at line 212 of file denseMatrix.hh.

◆ assembly() [1/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
const BilinearForm< F, G > &  bf,
const ElementPairList< G > &  pairs 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator uses the element pairs taken from pairs. For every two elements found in a ElementPair in pairs, the bilinear form is evaluated and the result assembled into dest.

◆ assembly() [2/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
const Sequence< ElementWithCell< G > * >  seq,
const BilinearForm< F, G > &  bf,
const Real  threshold = 0.0 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator does not compute element matrices for two different elements. The elements are taken from the element sequence seq.

◆ assembly() [3/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
const Sequence< ElementWithCell< G > * >  seqX,
const Space< G > &  spcY,
const BilinearForm< F, G > &  bf,
const Real  threshold = 0.0 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator computes also the element matrices for two different elements. The elements are taken from the element sequence seqX for the test space, and the trial space spcY is fully taken into account.

◆ assembly() [4/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
const Space< G > &  spc,
const BilinearForm< F, G > &  bf,
const Real  threshold = 0.0 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator does not compute element matrices for two different elements. The elements are taken from the space spc.

Examples
linearDG1d.cc.

◆ assembly() [5/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
const Space< G > &  spc,
const Sequence< bool > &  seq,
const BilinearForm< F, G > &  bf,
const Real  threshold = 0.0 
)
staticinherited

Assembly operator for dest using the bilinear form bf on space spc. This assembly operator does not compute element matrices for two different elements. The elements are computing on the cells that are flagged by seq.

◆ assembly() [6/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::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 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator computes also the element matrices for two different elements (coming from test space spcX and trial space spcY).

◆ assembly() [7/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::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 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator computes also the element matrices for two different elements (coming from test space spcX and trial space spcY). The elements are computing on the cells that are flagged by seq.

◆ assembly() [8/8]

template<class F >
template<class G >
static void concepts::Matrix< F >::assembly ( Matrix< F > &  dest,
Scan< Element< G > > *  sc,
const BilinearForm< F, G > &  bf,
const Real  threshold = 0.0 
)
staticinherited

Assembly operator for dest using the bilinear form bf. This assembly operator does not compute element matrices for two different elements. The elements are taken from the space scanner sc.

◆ begin() [1/2]

template<class F >
iterator concepts::Matrix< F >::begin ( uint  r = 0)
inlineinherited

Iterator over the elements, standing at position (r,0).

Might be implemented differently for derived classes.

Definition at line 64 of file matrix.hh.

◆ begin() [2/2]

template<class F >
const_iterator concepts::Matrix< F >::begin ( uint  r = 0) const
inlineinherited

Constant iterator over the elements, standing at position (r,0)

Might be implemented differently for derived classes.

Definition at line 71 of file matrix.hh.

◆ col()

template<class F >
uint concepts::ElementMatrix< F >::col ( ) const
inlineinherited

Returns current column.

Definition at line 309 of file element.hh.

◆ compress()

template<class F >
void concepts::ElementMatrix< F >::compress ( const Real  threshold = EPS)
inherited

Compresses the matrix by dropping small entries. All matrix entries which are smaller than a certain threshold times the largest entry of the matrix are deleted from the matrix.

◆ dimX()

template<class F >
virtual const uint concepts::Operator< F >::dimX ( ) const
inlinevirtualinherited

Returns the size of the image space of the operator (number of rows of the corresponding matrix)

Examples
hpFEM2d-simple.cc, hpFEM2d.cc, and matfileTutorial.cc.

Definition at line 93 of file compositions.hh.

◆ dimY()

template<class F >
virtual const uint concepts::Operator< F >::dimY ( ) const
inlinevirtualinherited

Returns the size of the source space of the operator (number of columns of the corresponding matrix)

Examples
matfileTutorial.cc.

Definition at line 98 of file compositions.hh.

◆ end() [1/2]

template<class F >
iterator concepts::Matrix< F >::end ( )
inlineinherited

Iterator, standing behind last element.

Definition at line 66 of file matrix.hh.

◆ end() [2/2]

template<class F >
const_iterator concepts::Matrix< F >::end ( ) const
inlineinherited

Constant iterator, standing behind last element.

Definition at line 73 of file matrix.hh.

◆ getData()

template<class F >
const Array< F > & concepts::ElementMatrixBase< F >::getData ( ) const
inlineinherited

Returns the data array

Definition at line 172 of file element.hh.

◆ getIndex()

template<class F >
int concepts::ElementMatrix< F >::getIndex ( ) const
inlineinherited
Deprecated:
: FIXME: what the heck is this even for?

Definition at line 289 of file element.hh.

◆ info()

template<class F >
virtual std::ostream & concepts::DenseMatrix< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Operator< F >.

◆ isTranspose()

template<class F >
bool concepts::ElementMatrixBase< F >::isTranspose ( ) const
inlineinherited

Returns true if the matrix is internally stored as transposed (column-major).

Definition at line 177 of file element.hh.

◆ m()

template<class F >
uint concepts::ElementMatrixBase< F >::m ( ) const
inlineinherited

Returns the number of rows.

Definition at line 151 of file element.hh.

◆ n()

template<class F >
uint concepts::ElementMatrixBase< F >::n ( ) const
inlineinherited

Returns the number of columns.

Definition at line 153 of file element.hh.

◆ nofCols()

template<class F >
const uint concepts::Matrix< F >::nofCols ( ) const
inlineinherited

Number of columns.

Definition at line 58 of file matrix.hh.

◆ nofRows()

template<class F >
const uint concepts::Matrix< F >::nofRows ( ) const
inlineinherited

Number of rows.

Definition at line 56 of file matrix.hh.

◆ operator const F *()

template<class F >
concepts::ElementMatrixBase< F >::operator const F * ( ) const
inlineinherited

Returns a pointer to the data array.

Definition at line 169 of file element.hh.

◆ operator F*()

template<class F >
concepts::ElementMatrix< F >::operator F* ( )
inlineinherited

Returns a pointer to the data array.

Definition at line 298 of file element.hh.

◆ operator()() [1/6]

◆ operator()() [2/6]

template<class F >
virtual void concepts::DenseMatrix< F >::operator() ( const Function< c_type > &  fncY,
Function< c_type > &  fncX 
)
virtual

Application operator for complex function fncY.

Computes fncX = A(fncY) where A is this operator. fncX becomes complex.

In derived classes its enough to implement the operator() for complex Operator's. If a real counterpart is not implemented, the function fncY is splitted into real and imaginary part and the application operator for real functions is called for each. Then the result is combined.

If in a derived class the operator() for complex Operator's is not implemented, a exception is thrown from here.

Implements concepts::Matrix< F >.

◆ operator()() [3/6]

template<class F >
virtual void concepts::DenseMatrix< F >::operator() ( const Function< r_type > &  fncY,
Function< F > &  fncX 
)
virtual

Computes fncX = A(fncY) where A is this matrix.

Implements concepts::Matrix< F >.

◆ operator()() [4/6]

template<class F >
virtual F & concepts::DenseMatrix< F >::operator() ( const uint  i,
const uint  j 
)
inlinevirtual

Returns and allows access to entry with indices i and j.

Implements concepts::Matrix< F >.

Definition at line 165 of file denseMatrix.hh.

◆ operator()() [5/6]

template<class F >
virtual F concepts::DenseMatrix< F >::operator() ( const uint  i,
const uint  j 
) const
inlinevirtual

Returns entry with indices i and j.

Implements concepts::Matrix< F >.

Definition at line 161 of file denseMatrix.hh.

◆ operator()() [6/6]

template<class F >
template<class H , class I >
void concepts::DenseMatrix< F >::operator() ( const Vector< H > &  fncY,
Vector< I > &  fncX 
)

Definition at line 231 of file denseMatrix.hh.

◆ operator*=()

template<class F >
ElementMatrix< F > & concepts::ElementMatrix< F >::operator*= ( const F  n)
inlineinherited

Scaling operator.

Definition at line 301 of file element.hh.

◆ operator=()

template<class F >
virtual DenseMatrix< F > & concepts::DenseMatrix< F >::operator= ( const F &  v)
inlinevirtual

Reimplemented from concepts::ElementMatrix< F >.

Definition at line 169 of file denseMatrix.hh.

◆ operator==()

template<class F >
virtual bool concepts::Matrix< F >::operator== ( const Matrix< F > &  otherMat) const
inlinevirtualinherited

Definition at line 179 of file matrix.hh.

◆ resize()

template<class F >
virtual void concepts::DenseMatrix< F >::resize ( uint  m,
uint  n 
)
inlinevirtual

Resize to m rows and n columns. Be aware that data might be lost.

Reimplemented from concepts::ElementMatrix< F >.

Definition at line 178 of file denseMatrix.hh.

◆ row()

template<class F >
uint concepts::ElementMatrix< F >::row ( ) const
inlineinherited

Returns current row.

Definition at line 307 of file element.hh.

◆ set()

template<class F >
virtual void concepts::Matrix< F >::set ( const uint  i,
const uint  j,
const F  value,
const bool  use_threshold = false,
const Real  threshold_value = 1e-8 
)
virtualinherited

Affectation operator Affet the value to the entry (i,j) if not zero (for use_threshold = false), or if the absolute value is bigger than the threshold_value (for use_threshold = true)

◆ setIndex()

template<class F >
void concepts::ElementMatrix< F >::setIndex ( int  i)
inlineinherited
Deprecated:
: FIXME: what the heck is this even for?

Definition at line 292 of file element.hh.

◆ setTimings()

template<class F >
static void concepts::Matrix< F >::setTimings ( InOutParameters timings)
staticinherited

Sets the class to store the timing values in. Additionally, the timeCntr_ is reset to 0. This counter is used to fill in the values into the arrays listed below in subsequent calls. The following timings are taken and stored in timings:

  • evaluation of bilinear form in bilinear_form
  • application of T matrix in tmatrix_apply
  • assembling into global matrix in global_assembly

◆ setTranspose()

template<class F >
virtual void concepts::DenseMatrix< F >::setTranspose ( bool  t)
inlinevirtual

Definition at line 182 of file denseMatrix.hh.

◆ show_messages()

template<class F >
virtual void concepts::Operator< F >::show_messages ( )
inlinevirtualinherited

Reimplemented in concepts::MumpsOverlap< F >.

Definition at line 100 of file compositions.hh.

◆ size()

template<class F >
uint concepts::ElementMatrixBase< F >::size ( ) const
inlineinherited

Returns the number of entries in the matrix.

Definition at line 166 of file element.hh.

◆ storeMatlab()

template<class F >
bool concepts::ElementMatrixBase< F >::storeMatlab ( const std::string  filename,
std::string  name = "",
bool  append = false 
) const
inherited

Stores the matrix in a Matlab matrix

Parameters
filenamename of the matlab file, with ending '.m'
namename of the variable, e.g. "A"
appendif false, create new file, otherwise append to it
Returns
true if the writes was successfull

◆ timings()

template<class F >
static bool concepts::Matrix< F >::timings ( )
staticinherited

Returns true if the class is able to do timings. The ability to do timings depends on a compiler switch in matrix.cc file.

◆ transpMult() [1/2]

template<class F >
virtual void concepts::DenseMatrix< F >::transpMult ( const Vector< c_type > &  fncY,
Vector< c_type > &  fncX 
)
virtual

Implements concepts::Matrix< F >.

◆ transpMult() [2/2]

template<class F >
virtual void concepts::DenseMatrix< F >::transpMult ( const Vector< r_type > &  fncY,
Vector< F > &  fncX 
)
virtual

Computes fncX = AT fncY where A is this matrix.

Implements concepts::Matrix< F >.

◆ transpose()

template<class F >
bool concepts::ElementMatrix< F >::transpose ( )
inlineinherited

Transposes the matrix.

Only the dimensions are interchanged, the data is not touched, but the internal storage changes from row-major two column-major order or vice-versa.

Deprecated:
use isTranspose() and setTranspose()

Definition at line 277 of file element.hh.

◆ writeColumn()

template<class F >
template<uint dim>
void concepts::ElementMatrix< F >::writeColumn ( uint  col,
const Point< F, dim > &  val 
)
inherited

Writes a vector to a column in case of m() >= dim.

Definition at line 326 of file element.hh.

◆ zeros()

template<class F >
void concepts::ElementMatrix< F >::zeros ( )
inlineinherited

Fills the matrix with zeros.

Examples
linearFEM1d-simple.cc, and linearFEM1d.cc.

Definition at line 295 of file element.hh.

Member Data Documentation

◆ data_

template<class F >
Array<F> concepts::ElementMatrixBase< F >::data_
protectedinherited

Data.

Definition at line 189 of file element.hh.

◆ dimX_

template<class F >
uint concepts::Operator< F >::dimX_
protectedinherited

Dimension of image space and the source space.

Definition at line 104 of file compositions.hh.

◆ dimY_

template<class F >
uint concepts::Operator< F >::dimY_
protectedinherited

Definition at line 104 of file compositions.hh.

◆ m_

template<class F >
uint concepts::ElementMatrixBase< F >::m_
protectedinherited

Number of rows.

Definition at line 191 of file element.hh.

◆ n_

template<class F >
uint concepts::ElementMatrixBase< F >::n_
protectedinherited

Number of columns.

Definition at line 193 of file element.hh.

◆ t_

template<class F >
bool concepts::ElementMatrixBase< F >::t_
protectedinherited

Transpose.

Definition at line 195 of file element.hh.


The documentation for this class was generated from the following files: