hp1D::MassElementMatrix Class Reference
Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall. More...
#include <matrices.hh>
Public Types | |
typedef Real | value_type |
Public Member Functions | |
template<typename F > | |
concepts::ElementMatrix< F > | extract (uint m, uint n, const F factor) const |
Returns the part of the first m rows and n columns multiplied by factor . More... | |
const Array< Real > & | getData () const |
Returns the data array More... | |
bool | isTranspose () const |
Returns true if the matrix is internally stored as transposed (column-major). More... | |
uint | m () const |
Returns the number of rows. More... | |
MassElementMatrix (const uint m=0) | |
Constructor. More... | |
uint | n () const |
Returns the number of columns. More... | |
operator const Real * () const | |
Returns a pointer to the data array. More... | |
const Real & | operator() (const uint i, const uint j) const |
Returns element (i, j) More... | |
void | resize (uint m) |
Sets a new size and recomputes the missing entries. More... | |
uint | size () const |
Returns the number of entries in the matrix. More... | |
bool | storeMatlab (const std::string filename, std::string name="", bool append=false) const |
Stores the matrix in a Matlab matrix. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
Array< Real > | data_ |
Data. More... | |
uint | m_ |
Number of rows. More... | |
uint | n_ |
Number of columns. More... | |
bool | t_ |
Transpose. More... | |
Private Member Functions | |
Real & | M (const uint i, const uint j) |
Detailed Description
Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall.
.
Definition at line 79 of file matrices.hh.
Member Typedef Documentation
◆ value_type
|
inherited |
Definition at line 141 of file element.hh.
Constructor & Destructor Documentation
◆ MassElementMatrix()
|
inline |
Constructor.
Definition at line 83 of file matrices.hh.
Member Function Documentation
◆ extract()
concepts::ElementMatrix< F > hp1D::MassElementMatrix::extract | ( | uint | m, |
uint | n, | ||
const F | factor | ||
) | const |
Returns the part of the first m
rows and n
columns multiplied by factor
.
For simplicity we assume m
and n
to be at least 2.
Definition at line 108 of file matrices.hh.
◆ getData()
|
inlineinherited |
Returns the data array
Definition at line 172 of file element.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
◆ isTranspose()
|
inlineinherited |
Returns true if the matrix is internally stored as transposed (column-major).
Definition at line 177 of file element.hh.
◆ m()
|
inlineinherited |
Returns the number of rows.
Definition at line 151 of file element.hh.
◆ M()
|
inlineprivate |
Definition at line 98 of file matrices.hh.
◆ n()
|
inlineinherited |
Returns the number of columns.
Definition at line 153 of file element.hh.
◆ operator const Real *()
|
inlineinherited |
Returns a pointer to the data array.
Definition at line 169 of file element.hh.
◆ operator()()
|
inlineinherited |
Returns element (i, j)
Definition at line 156 of file element.hh.
◆ resize()
void hp1D::MassElementMatrix::resize | ( | uint | m | ) |
Sets a new size and recomputes the missing entries.
◆ size()
|
inlineinherited |
Returns the number of entries in the matrix.
Definition at line 166 of file element.hh.
◆ storeMatlab()
|
inherited |
Stores the matrix in a Matlab matrix.
- Parameters
-
filename name of the matlab file, with ending '.m' name name of the variable, e.g. "A" append if false, create new file, otherwise append to it
- Returns
- true if the writes was successfull
Member Data Documentation
◆ data_
|
protectedinherited |
Data.
Definition at line 189 of file element.hh.
◆ m_
|
protectedinherited |
Number of rows.
Definition at line 191 of file element.hh.
◆ n_
|
protectedinherited |
Number of columns.
Definition at line 193 of file element.hh.
◆ t_
|
protectedinherited |
Transpose.
Definition at line 195 of file element.hh.
The documentation for this class was generated from the following file:
- hp1D/matrices.hh