dune-fem  2.4.1-rc
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 </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/matrix/blockmatrix.hh>

Public Types

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

Public Member Functions

 DenseMatrix ()
 
 DenseMatrix (const DenseMatrix< T > &org)
 Copy Constructor. More...
 
 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 More...
 
void scale (const T &val)
 scale matrix with scalar More...
 
DenseMatrix< T > & operator= (const T &val)
 set all values of the matrix to given value More...
 
DenseMatrix< T > & operator= (const DenseMatrix &org)
 set all values of the matrix to values of given matrix More...
 
DenseMatrix< T > & operator+= (const DenseMatrix &org)
 add matrix More...
 
DenseMatrix< T > & operator-= (const DenseMatrix &org)
 substract matrix More...
 
void print (std::ostream &s) const
 print matrix More...
 
void clear ()
 

Detailed Description

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

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

Member Typedef Documentation

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

remember the value type

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

Constructor & Destructor Documentation

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

Copy Constructor.

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'

References Dune::Fem::DenseMatrix< T >::resize().

Member Function Documentation

template<class T>
void Dune::Fem::DenseMatrix< T >::clear ( )
inline
template<class T>
int Dune::Fem::DenseMatrix< T >::cols ( ) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::mult ( const T *  vec,
RowType result 
) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::mult ( const RowType vec,
RowType result 
) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::multiply ( const DenseMatrix< T > &  A,
const DenseMatrix< T > &  B 
)
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::multiply_AT_A ( const DenseMatrix< T > &  A)
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::multiplyTransposed ( const DenseMatrix< T > &  A,
const DenseMatrix< T > &  B 
)
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::multOEM ( const T *  vec,
T *  result 
) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::multTransposed ( const RowType vec,
RowType result 
) const
inline
template<class T>
T& Dune::Fem::DenseMatrix< T >::operator() ( int  row,
int  col 
)
inline
template<class T>
const T& Dune::Fem::DenseMatrix< T >::operator() ( int  row,
int  col 
) const
inline
template<class T>
DenseMatrix<T>& Dune::Fem::DenseMatrix< T >::operator+= ( const DenseMatrix< T > &  org)
inline
template<class T>
DenseMatrix<T>& Dune::Fem::DenseMatrix< T >::operator-= ( const DenseMatrix< T > &  org)
inline
template<class T>
DenseMatrix<T>& Dune::Fem::DenseMatrix< T >::operator= ( const T &  val)
inline

set all values of the matrix to given value

References Dune::Fem::DenseMatrix< T >::cols(), and Dune::Fem::DenseMatrix< T >::rows().

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

template<class T>
RowType& Dune::Fem::DenseMatrix< T >::operator[] ( int  row)
inline
template<class T>
const RowType& Dune::Fem::DenseMatrix< T >::operator[] ( int  row) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::print ( std::ostream &  s) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::resize ( int  rows,
int  cols 
)
inline
template<class T>
int Dune::Fem::DenseMatrix< T >::rows ( ) const
inline
template<class T>
void Dune::Fem::DenseMatrix< T >::scale ( const T &  val)
inline

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