dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::DenseMatrix< T > Class Template Reference

DenseMatrix based on std::vector< std::vector< T > > More...

#include <dune/fem/operator/matrix/blockmatrix.hh>

Inheritance diagram for Dune::Fem::DenseMatrix< T >:
Inheritance graph

Public Types

typedef T Ttype
 
typedef std::vector< T > RowType
 remember the value type
 

Public Member Functions

 DenseMatrix ()
 
 DenseMatrix (const DenseMatrix< T > &org)
 Copy Constructor.
 
 DenseMatrix (int rows, int cols)
 
void resize (int rows, int cols)
 
int rows () const
 
int cols () const
 
T & operator() (int row, int col)
 
const T & operator() (int row, int col) const
 
RowTypeoperator[] (int row)
 
const RowTypeoperator[] (int row) const
 
void mult (const T *vec, RowType &result) const
 
void multOEM (const T *vec, T *result) const
 
void mult (const RowType &vec, RowType &result) const
 
void multTransposed (const RowType &vec, RowType &result) const
 
void multiply (const DenseMatrix &A, const DenseMatrix &B)
 
void multiplyTransposed (const DenseMatrix &A, const DenseMatrix &B)
 
void multiply_AT_A (const DenseMatrix &A)
 this = A^T * A
 
void scale (const T &val)
 scale matrix with scalar
 
DenseMatrix< T > & operator= (const T &val)
 set all values of the matrix to given value
 
DenseMatrix< T > & operator= (const DenseMatrix &org)
 set all values of the matrix to values of given matrix
 
DenseMatrix< T > & operator+= (const DenseMatrix &org)
 add matrix
 
DenseMatrix< T > & operator-= (const DenseMatrix &org)
 substract matrix
 
void print (std::ostream &s=std::cout) const
 print matrix
 
void clear ()
 

Detailed Description

template<class T>
class Dune::Fem::DenseMatrix< T >

DenseMatrix based on std::vector< std::vector< T > >

Member Typedef Documentation

◆ RowType

template<class T >
typedef std::vector< T > Dune::Fem::DenseMatrix< T >::RowType

remember the value type

◆ Ttype

template<class T >
typedef T Dune::Fem::DenseMatrix< T >::Ttype

Constructor & Destructor Documentation

◆ DenseMatrix() [1/3]

template<class T >
Dune::Fem::DenseMatrix< T >::DenseMatrix ( )
inline

◆ DenseMatrix() [2/3]

template<class T >
Dune::Fem::DenseMatrix< T >::DenseMatrix ( const DenseMatrix< T > &  org)
inline

Copy Constructor.

◆ DenseMatrix() [3/3]

template<class T >
Dune::Fem::DenseMatrix< T >::DenseMatrix ( int  rows,
int  cols 
)
inline

make matrix with 'rows' rows and 'cols' columns, maximum 'nz' non zero values in each row and intialize all values with 'val'

Member Function Documentation

◆ clear()

template<class T >
void Dune::Fem::DenseMatrix< T >::clear ( )
inline

◆ cols()

template<class T >
int Dune::Fem::DenseMatrix< T >::cols ( ) const
inline

◆ mult() [1/2]

template<class T >
void Dune::Fem::DenseMatrix< T >::mult ( const RowType vec,
RowType result 
) const
inline

◆ mult() [2/2]

template<class T >
void Dune::Fem::DenseMatrix< T >::mult ( const T *  vec,
RowType result 
) const
inline

◆ multiply()

template<class T >
void Dune::Fem::DenseMatrix< T >::multiply ( const DenseMatrix< T > &  A,
const DenseMatrix< T > &  B 
)
inline

◆ multiply_AT_A()

template<class T >
void Dune::Fem::DenseMatrix< T >::multiply_AT_A ( const DenseMatrix< T > &  A)
inline

this = A^T * A

◆ multiplyTransposed()

template<class T >
void Dune::Fem::DenseMatrix< T >::multiplyTransposed ( const DenseMatrix< T > &  A,
const DenseMatrix< T > &  B 
)
inline

◆ multOEM()

template<class T >
void Dune::Fem::DenseMatrix< T >::multOEM ( const T *  vec,
T *  result 
) const
inline

◆ multTransposed()

template<class T >
void Dune::Fem::DenseMatrix< T >::multTransposed ( const RowType vec,
RowType result 
) const
inline

◆ operator()() [1/2]

template<class T >
T & Dune::Fem::DenseMatrix< T >::operator() ( int  row,
int  col 
)
inline

◆ operator()() [2/2]

template<class T >
const T & Dune::Fem::DenseMatrix< T >::operator() ( int  row,
int  col 
) const
inline

◆ operator+=()

template<class T >
DenseMatrix< T > & Dune::Fem::DenseMatrix< T >::operator+= ( const DenseMatrix< T > &  org)
inline

add matrix

◆ operator-=()

template<class T >
DenseMatrix< T > & Dune::Fem::DenseMatrix< T >::operator-= ( const DenseMatrix< T > &  org)
inline

substract matrix

◆ operator=() [1/2]

template<class T >
DenseMatrix< T > & Dune::Fem::DenseMatrix< T >::operator= ( const DenseMatrix< T > &  org)
inline

set all values of the matrix to values of given matrix

◆ operator=() [2/2]

template<class T >
DenseMatrix< T > & Dune::Fem::DenseMatrix< T >::operator= ( const T &  val)
inline

set all values of the matrix to given value

◆ operator[]() [1/2]

template<class T >
RowType & Dune::Fem::DenseMatrix< T >::operator[] ( int  row)
inline

◆ operator[]() [2/2]

template<class T >
const RowType & Dune::Fem::DenseMatrix< T >::operator[] ( int  row) const
inline

◆ print()

template<class T >
void Dune::Fem::DenseMatrix< T >::print ( std::ostream &  s = std::cout) const
inline

print matrix

◆ resize()

template<class T >
void Dune::Fem::DenseMatrix< T >::resize ( int  rows,
int  cols 
)
inline

◆ rows()

template<class T >
int Dune::Fem::DenseMatrix< T >::rows ( ) const
inline

◆ scale()

template<class T >
void Dune::Fem::DenseMatrix< T >::scale ( const T &  val)
inline

scale matrix with scalar


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