Public Member Functions | Private Attributes

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

Definition at line 157 of file matrix_lib.h.


Constructor & Destructor Documentation

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

Constructor leaving an uninitialized object.

Definition at line 506 of file matrix_lib.h.

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

Constructor with initialization.

Definition at line 516 of file matrix_lib.h.

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

Destructor

Definition at line 550 of file matrix_lib.h.


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.

Definition at line 528 of file matrix_lib.h.

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

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

Delete internal matrix pointer.

Definition at line 540 of file matrix_lib.h.

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

Matrix-vector product.

Definition at line 559 of file matrix_lib.h.

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

Tranposed matrix-vector product.

Definition at line 569 of file matrix_lib.h.


Member Data Documentation

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

The matrix.

Definition at line 202 of file matrix_lib.h.

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

The scaling factor;

Definition at line 206 of file matrix_lib.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:11 by doxygen 1.7.2