Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
hp1D::StiffElementMatrix Class Reference

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

\[0,1\]

. More...

#include <matrices.hh>

Inheritance diagram for hp1D::StiffElementMatrix:
Inheritance graph
[legend]
Collaboration diagram for hp1D::StiffElementMatrix:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

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

\[0,1\]

.

Author:
Kersten Schmidt, 2009

Definition at line 27 of file matrices.hh.


Member Typedef Documentation

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

Reimplemented in concepts::ElementMatrix< Real >.

Definition at line 135 of file element.hh.


Constructor & Destructor Documentation

hp1D::StiffElementMatrix::StiffElementMatrix ( const uint  m = 0) [inline]

Constructor.

Definition at line 31 of file matrices.hh.

Here is the call graph for this function:


Member Function Documentation

Real& hp1D::StiffElementMatrix::A_ ( const uint  i,
const uint  j 
) [inline, private]

Definition at line 46 of file matrices.hh.

template<typename F >
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.

Here is the call graph for this function:

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.

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

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.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)