Class documentation of Concepts

Loading...
Searching...
No Matches

#include <matrices.hh>

Inheritance diagram for hp1D::MassElementMatrix:
concepts::ElementMatrixBase< Real > concepts::OutputOperator

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.
 

Detailed Description

Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall

\[0,1\]

.

Author
Kersten Schmidt, 2009

Definition at line 79 of file matrices.hh.

Member Typedef Documentation

◆ value_type

typedef Real concepts::ElementMatrixBase< Real >::value_type
inherited

Definition at line 141 of file element.hh.

Constructor & Destructor Documentation

◆ MassElementMatrix()

hp1D::MassElementMatrix::MassElementMatrix ( const uint  m = 0)
inline

Constructor.

Definition at line 83 of file matrices.hh.

Member Function Documentation

◆ extract()

template<typename F >
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()

const Array< Real > & concepts::ElementMatrixBase< Real >::getData ( ) const
inlineinherited

Returns the data array

Definition at line 172 of file element.hh.

◆ info()

virtual std::ostream & hp1D::MassElementMatrix::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ isTranspose()

bool concepts::ElementMatrixBase< Real >::isTranspose ( ) const
inlineinherited

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

Definition at line 177 of file element.hh.

◆ m()

uint concepts::ElementMatrixBase< Real >::m ( ) const
inlineinherited

Returns the number of rows.

Definition at line 151 of file element.hh.

◆ n()

uint concepts::ElementMatrixBase< Real >::n ( ) const
inlineinherited

Returns the number of columns.

Definition at line 153 of file element.hh.

◆ operator const Real *()

concepts::ElementMatrixBase< Real >::operator const Real * ( ) const
inlineinherited

Returns a pointer to the data array.

Definition at line 169 of file element.hh.

◆ operator()()

const Real & concepts::ElementMatrixBase< Real >::operator() ( const uint  i,
const uint  j 
) const
inlineinherited

Returns element (i, j)

Definition at line 156 of file element.hh.

◆ size()

uint concepts::ElementMatrixBase< Real >::size ( ) const
inlineinherited

Returns the number of entries in the matrix.

Definition at line 166 of file element.hh.

◆ storeMatlab()

bool concepts::ElementMatrixBase< Real >::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

Member Data Documentation

◆ data_

Array<Real > concepts::ElementMatrixBase< Real >::data_
protectedinherited

Data.

Definition at line 189 of file element.hh.

◆ m_

uint concepts::ElementMatrixBase< Real >::m_
protectedinherited

Number of rows.

Definition at line 191 of file element.hh.

◆ n_

uint concepts::ElementMatrixBase< Real >::n_
protectedinherited

Number of columns.

Definition at line 193 of file element.hh.

◆ t_

bool concepts::ElementMatrixBase< Real >::t_
protectedinherited

Transpose.

Definition at line 195 of file element.hh.


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