element.hh
bool storeMatlab(const std::string filename, std::string name="", bool append=false) const
Stores the matrix in a Matlab matrix.
Handles graphics output (to a file) of a specific element.
Definition: element.hh:16
ElementMatrix(const uint m=0, const uint n=0)
const F & operator()(const uint i, const uint j) const
Returns element (i, j)
Definition: element.hh:222
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
Real3d elemMap(const Real3d &coord_local) const
Definition: element.hh:94
Real3d elemMap(const Real coord_local) const
Definition: element.hh:86
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
const F & operator()(const uint i, const uint j) const
Returns element (i, j)
Definition: element.hh:156
virtual const TMatrixBase< F > & T() const =0
Returns the T matrix of the element.
virtual const ElementGraphics< F > * graphics() const
Definition: element.hh:63
#define DEBUGL(doit, msg)
void writeColumn(uint col, const Array< F > &val)
Writes an array to a column.
void add(const ElementMatrix< F > &A, uint offm=0, uint offn=0)
Addition of another element matrix with possible offset.
std::ostream & info(std::ostream &os) const
bool isTranspose() const
Returns true if the matrix is internally stored as transposed (column-major).
Definition: element.hh:177
F & operator()(const uint i, const uint j)
Definition: element.hh:225
ElementMatrix(const uint m, const uint n, const F *data)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: element.hh:122
std::ostream & operator<<(std::ostream &os, const Level< dim > &c)
void compress(const Real threshold=EPS)
Compresses the matrix by dropping small entries.
Real3d elemMap(const Real2d &coord_local) const
Definition: element.hh:90
virtual Real3d elemMap(const Real coord_local) const
Element map from point local coordinates in 1D.
ElementMatrix< F > & operator=(const ElementMatrix< G > &other)
can be used to upcast ElementMatrix<Real> to ElementMatrix<Cmplx>
Definition: element.hh:236
virtual const TMatrixBase< F > & T() const =0
Returns the T matrix of the element.
void writeColumn(uint col, const Point< F, dim > &val)
Writes a vector to a column in case of m() >= dim.
Definition: element.hh:326
virtual const Cell & cell() const =0
Returns the cell on which the element is built.
ElementAndFacette(const F *elm, const uint k)
Definition: element.hh:115
ElementMatrix< F > & operator=(const ElementMatrixBase< F > &A)
Assignement operator.
virtual ElementMatrix< F > & operator=(const F &v)
Definition: element.hh:246
Container for an element and one facette (edge or face).
Definition: element.hh:113
void writeColumn(uint col, const F val)
Writes a value to a column in case of m() >= 1.