Public Member Functions | Private Attributes
ScaledMatrix< VECTOR > Class Template Reference
Inheritance diagram for ScaledMatrix< VECTOR >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ScaledMatrix ()
template<class MATRIX >
 ScaledMatrix (const MATRIX &M, const double factor)
 ~ScaledMatrix ()
template<class MATRIX >
void initialize (const MATRIX &M, const double factor)
void clear ()
void vmult (VECTOR &w, const VECTOR &v) const
void Tvmult (VECTOR &w, const VECTOR &v) const

Private Attributes

PointerMatrixBase< VECTOR > * m
double factor

Detailed Description

template<class VECTOR>
class ScaledMatrix< VECTOR >

A matrix that is the scaled version of another matrix.

Matrix-vector products of this matrix are composed of those of the original matrix and scaling by a constant factor.

Author:
Guido Kanschat, 2007

Constructor & Destructor Documentation

template<class VECTOR >
ScaledMatrix< VECTOR >::ScaledMatrix ( ) [inline]

Constructor leaving an uninitialized object.

template<class VECTOR >
template<class MATRIX >
ScaledMatrix< VECTOR >::ScaledMatrix ( const MATRIX &  M,
const double  factor 
) [inline]

Constructor with initialization.

template<class VECTOR >
ScaledMatrix< VECTOR >::~ScaledMatrix ( ) [inline]

Destructor


Member Function Documentation

template<class VECTOR >
template<class MATRIX >
void ScaledMatrix< VECTOR >::initialize ( const MATRIX &  M,
const double  factor 
) [inline]

Initialize for use with a new matrix and factor.

References PointerMatrixAux< MATRIX, VECTOR >::new_pointer_matrix_base().

template<class VECTOR >
void ScaledMatrix< VECTOR >::clear ( ) [inline]

Delete internal matrix pointer.

template<class VECTOR >
void ScaledMatrix< VECTOR >::vmult ( VECTOR &  w,
const VECTOR &  v 
) const [inline]

Matrix-vector product.

template<class VECTOR >
void ScaledMatrix< VECTOR >::Tvmult ( VECTOR &  w,
const VECTOR &  v 
) const [inline]

Tranposed matrix-vector product.


Member Data Documentation

template<class VECTOR >
PointerMatrixBase<VECTOR>* ScaledMatrix< VECTOR >::m [private]

The matrix.

template<class VECTOR >
double ScaledMatrix< VECTOR >::factor [private]

The scaling factor;


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

deal.II documentation generated on Fri Aug 12 2011 15:01:06 by doxygen 1.7.4