FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

DiagonalMatrix< Type > Class Template Reference

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

#include <OpenFOAM/DiagonalMatrix.H>


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 55 of file DiagonalMatrix.H.

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.

Constructor & Destructor Documentation

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

Construct from diagonal component of a Matrix.

Definition at line 32 of file DiagonalMatrix.C.

References forAll, and UList< Type >::operator[]().

DiagonalMatrix ( const label   size  )

Construct empty from size.

Definition at line 44 of file DiagonalMatrix.C.

DiagonalMatrix ( const label   size,
const Type &   val  
)

Construct from size and a value.

Definition at line 51 of file DiagonalMatrix.C.


Member Function Documentation

Foam::DiagonalMatrix< Type > & invert (  )

Invert the diaganol matrix and return itself.

Definition at line 58 of file DiagonalMatrix.C.

References forAll, and Foam::mag().


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