OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

DiagonalMatrix< Type > Class Template Reference

DiagonalMatrix<Type> is a 2D diagonal matrix of objects of type Type, size nxn. More...

Inheritance diagram for DiagonalMatrix< Type >:
Collaboration diagram for DiagonalMatrix< Type >:

List of all members.


Public Member Functions

template<class Form >
 DiagonalMatrix (const Matrix< Form, Type > &)
 Construct from diagonal component of a Matrix.
 DiagonalMatrix (const label size)
 Construct empty from size.
 DiagonalMatrix (const label, const Type &)
 Construct from size and a value.
DiagonalMatrix< Type > & invert ()
 Invert the diaganol matrix and return itself.

Detailed Description

template<class Type>
class Foam::DiagonalMatrix< Type >

DiagonalMatrix<Type> is a 2D diagonal matrix of objects of type Type, size nxn.

Source files

Definition at line 50 of file DiagonalMatrix.H.


Constructor & Destructor Documentation

DiagonalMatrix ( const Matrix< Form, Type > &  a  )  [inline]

Construct from diagonal component of a Matrix.

Definition at line 24 of file DiagonalMatrix.C.

DiagonalMatrix ( const label  size  )  [inline]

Construct empty from size.

Definition at line 36 of file DiagonalMatrix.C.

References forAll.

DiagonalMatrix ( const label  size,
const Type &  val 
) [inline]

Construct from size and a value.

Definition at line 43 of file DiagonalMatrix.C.


Member Function Documentation

Foam::DiagonalMatrix< Type > & invert (  )  [inline]

Invert the diaganol matrix and return itself.

Definition at line 50 of file DiagonalMatrix.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd