Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Attributes | List of all members
ScaledMatrix< VECTOR > Class Template Reference

#include <matrix_lib.h>

Inheritance diagram for ScaledMatrix< VECTOR >:
[legend]

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
 
- Public Member Functions inherited from Subscriptor
 Subscriptor ()
 
 Subscriptor (const Subscriptor &)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
void subscribe (const char *identifier=0) const
 
void unsubscribe (const char *identifier=0) const
 
unsigned int n_subscriptions () const
 
void list_subscribers () const
 
 DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects.\n"<< "(Additional information: "<< arg3<< ")\n"<< "Note the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "more information on what this error means.")
 
 DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier \""<< arg2<< "\" did subscribe to this object of class "<< arg1)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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 162 of file matrix_lib.h.

Constructor & Destructor Documentation

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

Constructor leaving an uninitialized object.

Definition at line 516 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 526 of file matrix_lib.h.

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

Destructor

Definition at line 560 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 538 of file matrix_lib.h.

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

Delete internal matrix pointer.

Definition at line 550 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 569 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 579 of file matrix_lib.h.

Member Data Documentation

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

The matrix.

Definition at line 207 of file matrix_lib.h.

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

The scaling factor;

Definition at line 211 of file matrix_lib.h.


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