#include <matrices.hh>
Public Types | |
typedef Real | value_type |
Public Member Functions | |
MassElementMatrix (const uint m=0) | |
Constructor. | |
void | resize (uint m) |
Sets a new size and recomputes the missing entries. | |
template<typename F > | |
concepts::ElementMatrix< F > | extract (uint m, uint n, const F factor) const |
uint | m () const |
Returns the number of rows. | |
uint | n () const |
Returns the number of columns. | |
const Real & | operator() (const uint i, const uint j) const |
Returns element (i, j) | |
uint | size () const |
Returns the number of entries in the matrix. | |
operator const Real * () const | |
Returns a pointer to the data array. | |
const Array< Real > & | getData () const |
Returns the data array | |
bool | isTranspose () const |
bool | storeMatlab (const std::string filename, std::string name="", bool append=false) const |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
Array< Real > | data_ |
Data. | |
uint | m_ |
Number of rows. | |
uint | n_ |
Number of columns. | |
bool | t_ |
Transpose. | |
Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall
.
Definition at line 79 of file matrices.hh.
|
inherited |
Definition at line 141 of file element.hh.
|
inline |
Constructor.
Definition at line 83 of file matrices.hh.
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.
|
inlineinherited |
Returns the data array
Definition at line 172 of file element.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
|
inlineinherited |
Returns true if the matrix is internally stored as transposed (column-major).
Definition at line 177 of file element.hh.
|
inlineinherited |
Returns the number of rows.
Definition at line 151 of file element.hh.
|
inlineinherited |
Returns the number of columns.
Definition at line 153 of file element.hh.
|
inlineinherited |
Returns a pointer to the data array.
Definition at line 169 of file element.hh.
|
inlineinherited |
Returns element (i, j)
Definition at line 156 of file element.hh.
|
inlineinherited |
Returns the number of entries in the matrix.
Definition at line 166 of file element.hh.
|
inherited |
Stores the matrix in a Matlab matrix
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 |
|
protectedinherited |
Data.
Definition at line 189 of file element.hh.
|
protectedinherited |
Number of rows.
Definition at line 191 of file element.hh.
|
protectedinherited |
Number of columns.
Definition at line 193 of file element.hh.
|
protectedinherited |
Transpose.
Definition at line 195 of file element.hh.