ScaledMatrix< VECTOR > Class Template Reference
[Derived matrices]

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

References ScaledMatrix< VECTOR >::clear().


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 ScaledMatrix< VECTOR >::factor, and ScaledMatrix< VECTOR >::m.

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

Delete internal matrix pointer.

References ScaledMatrix< VECTOR >::m.

Referenced by ScaledMatrix< VECTOR >::~ScaledMatrix().

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

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


Member Data Documentation

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

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


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

deal.II documentation generated on Sat Aug 15 16:52:17 2009 by doxygen 1.5.9