DUNE-FEM (unstable)

Dune::Fem::DenseMatrix< T > Class Template Reference

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

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

Public Types

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

Public Member Functions

 DenseMatrix (const DenseMatrix< T > &org)
 Copy Constructor.
 
 DenseMatrix (int rows, int cols)
 
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
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ DenseMatrix()

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'


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 27, 22:29, 2024)