dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::RangeMatrix< K, n, m > Class Template Reference

RangeType class for matrix valued functions - derived from FieldMatrix but has representation as vector. More...

#include <dune/fem/space/common/functionspace.hh>

Inheritance diagram for Dune::Fem::RangeMatrix< K, n, m >:
Inheritance graph

Public Types

enum  { rows = BaseType::rows , cols = BaseType::cols , dimension = BaseType::rows*BaseType::cols }
 
typedef FieldMatrix< K, n, m > BaseType
 
typedef BaseType::row_type RowType
 

Public Member Functions

 RangeMatrix ()
 Default constructor.
 
 RangeMatrix (const K &k)
 Constructor initializing the whole matrix with a scalar.
 
K & operator() (int r, int c)
 access element in row r and column c
 
const K operator() (int r, int c) const
 access element in row r and column c
 
const RowTyperow (int r) const
 access to row r
 
RowTyperow (int r)
 access to row r
 
K & operator[] (int i)
 access i element where row = i/col and column = icol
 
const K operator[] (int i) const
 access i element where row = i/col and column = icol
 
operator* (const BaseType &y)
 scalar product
 
RangeMatrixaxpy (const K &a, const BaseType &y)
 vector space axpy operation
 

Detailed Description

template<typename K, int n, int m>
class Dune::Fem::RangeMatrix< K, n, m >

RangeType class for matrix valued functions - derived from FieldMatrix but has representation as vector.

Member Typedef Documentation

◆ BaseType

template<typename K , int n, int m>
typedef FieldMatrix<K,n,m> Dune::Fem::RangeMatrix< K, n, m >::BaseType

◆ RowType

template<typename K , int n, int m>
typedef BaseType::row_type Dune::Fem::RangeMatrix< K, n, m >::RowType

Member Enumeration Documentation

◆ anonymous enum

template<typename K , int n, int m>
anonymous enum
Enumerator
rows 

The number of rows.

cols 

The number of columns.

dimension 

The total dimension of the matrix space.

Constructor & Destructor Documentation

◆ RangeMatrix() [1/2]

template<typename K , int n, int m>
Dune::Fem::RangeMatrix< K, n, m >::RangeMatrix ( )
inline

Default constructor.

◆ RangeMatrix() [2/2]

template<typename K , int n, int m>
Dune::Fem::RangeMatrix< K, n, m >::RangeMatrix ( const K &  k)
inline

Constructor initializing the whole matrix with a scalar.

Member Function Documentation

◆ axpy()

template<typename K , int n, int m>
RangeMatrix & Dune::Fem::RangeMatrix< K, n, m >::axpy ( const K &  a,
const BaseType y 
)
inline

vector space axpy operation

Parameters
ascalar factor
yRangeMatrix to multiply with
Returns
reference to this is returned (i.e. *this)

◆ operator()() [1/2]

template<typename K , int n, int m>
K & Dune::Fem::RangeMatrix< K, n, m >::operator() ( int  r,
int  c 
)
inline

access element in row r and column c

Parameters
[in]rrow
[in]ccolumn
Returns
reference to element in row r and column c

◆ operator()() [2/2]

template<typename K , int n, int m>
const K Dune::Fem::RangeMatrix< K, n, m >::operator() ( int  r,
int  c 
) const
inline

access element in row r and column c

Parameters
[in]rrow
[in]ccolumn
Returns
reference to element in row r and column c

◆ operator*()

template<typename K , int n, int m>
K Dune::Fem::RangeMatrix< K, n, m >::operator* ( const BaseType y)
inline

scalar product

Parameters
yRangeMatrix to scalar multiply with
Returns
K scalar product

◆ operator[]() [1/2]

template<typename K , int n, int m>
K & Dune::Fem::RangeMatrix< K, n, m >::operator[] ( int  i)
inline

access i element where row = i/col and column = icol

Parameters
[in]ielement number ot access
Returns
reference to element in row i/col and column icol

◆ operator[]() [2/2]

template<typename K , int n, int m>
const K Dune::Fem::RangeMatrix< K, n, m >::operator[] ( int  i) const
inline

access i element where row = i/col and column = icol

Parameters
[in]ielement number ot access
Returns
reference to element in row i/col and column icol

◆ row() [1/2]

template<typename K , int n, int m>
RowType & Dune::Fem::RangeMatrix< K, n, m >::row ( int  r)
inline

access to row r

Parameters
[in]rrow
Returns
reference to row r

◆ row() [2/2]

template<typename K , int n, int m>
const RowType & Dune::Fem::RangeMatrix< K, n, m >::row ( int  r) const
inline

access to row r

Parameters
[in]rrow
Returns
reference to row r

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