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

#include <matrices.hh>

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

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...
 
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...
 
 StiffElementMatrix (const uint m=0)
 Constructor. 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 & 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 29 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

◆ StiffElementMatrix()

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

Constructor.

Definition at line 33 of file matrices.hh.

Member Function Documentation

◆ A_()

Real& hp1D::StiffElementMatrix::A_ ( const uint  i,
const uint  j 
)
inlineprivate

Definition at line 48 of file matrices.hh.

◆ extract()

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 57 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::StiffElementMatrix::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.

◆ resize()

void hp1D::StiffElementMatrix::resize ( uint  m)

Sets a new size and recomputes the missing entries.

◆ 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:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich