Element stiffness 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. | |
| const Array< Real > & | getData () const |
| Returns the data array. | |
| bool | isTranspose () const |
| Returns true if the matrix is transposed. | |
| uint | m () const |
| Returns the number of rows. | |
| uint | n () const |
| Returns the number of columns. | |
| operator const Real * () const | |
| Returns a pointer to the data array. | |
| Real | operator() (const uint i, const uint j) const |
| Returns element (i, j) | |
| void | resize (uint m) |
| Sets a new size and recomputes the missing entries. | |
| uint | size () const |
| Returns the number of entries in the matrix. | |
| StiffElementMatrix (const uint m=0) | |
| Constructor. | |
| bool | storeMatlab (const std::string filename, std::string name="", bool append=false) const |
| Stores the matrix in a Matlab matrix. | |
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. | |
Private Member Functions | |
| Real & | A_ (const uint i, const uint j) |
Element stiffness matrix for hp 1D FEM with Karniadakis basis on the reference intervall
.
Definition at line 27 of file matrices.hh.
typedef Real concepts::ElementMatrixBase< Real >::value_type [inherited] |
Reimplemented in concepts::ElementMatrix< Real >.
Definition at line 135 of file element.hh.
| hp1D::StiffElementMatrix::StiffElementMatrix | ( | const uint | m = 0 | ) | [inline] |
| Real& hp1D::StiffElementMatrix::A_ | ( | const uint | i, |
| const uint | j | ||
| ) | [inline, private] |
Definition at line 46 of file matrices.hh.
| concepts::ElementMatrix< F > hp1D::StiffElementMatrix::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 55 of file matrices.hh.

| const Array<Real >& concepts::ElementMatrixBase< Real >::getData | ( | ) | const [inline, inherited] |
Returns the data array.
Definition at line 161 of file element.hh.
| virtual std::ostream& hp1D::StiffElementMatrix::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| bool concepts::ElementMatrixBase< Real >::isTranspose | ( | ) | const [inline, inherited] |
Returns true if the matrix is transposed.
Definition at line 164 of file element.hh.
| uint concepts::ElementMatrixBase< Real >::m | ( | ) | const [inline, inherited] |
Returns the number of rows.
Definition at line 140 of file element.hh.
| uint concepts::ElementMatrixBase< Real >::n | ( | ) | const [inline, inherited] |
Returns the number of columns.
Definition at line 142 of file element.hh.
| concepts::ElementMatrixBase< Real >::operator const Real * | ( | ) | const [inline, inherited] |
Returns a pointer to the data array.
Definition at line 158 of file element.hh.
| Real concepts::ElementMatrixBase< Real >::operator() | ( | const uint | i, |
| const uint | j | ||
| ) | const [inline, inherited] |
Returns element (i, j)
Reimplemented in concepts::DenseMatrix< Real >, and concepts::ElementMatrix< Real >.
Definition at line 145 of file element.hh.
| void hp1D::StiffElementMatrix::resize | ( | uint | m | ) |
Sets a new size and recomputes the missing entries.
| uint concepts::ElementMatrixBase< Real >::size | ( | ) | const [inline, inherited] |
Returns the number of entries in the matrix.
Definition at line 155 of file element.hh.
| bool concepts::ElementMatrixBase< Real >::storeMatlab | ( | const std::string | filename, |
| std::string | name = "", |
||
| bool | append = false |
||
| ) | const [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 |
Array<Real > concepts::ElementMatrixBase< Real >::data_ [protected, inherited] |
Data.
Definition at line 176 of file element.hh.
uint concepts::ElementMatrixBase< Real >::m_ [protected, inherited] |
Number of rows.
Definition at line 178 of file element.hh.
uint concepts::ElementMatrixBase< Real >::n_ [protected, inherited] |
Number of columns.
Definition at line 180 of file element.hh.
bool concepts::ElementMatrixBase< Real >::t_ [protected, inherited] |
Transpose.
Definition at line 182 of file element.hh.