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

SquareMatrix< Type > Class Template Reference

A templated 2D square matrix of objects of <T>, where the n x n matrix dimension is known and used for subscript bounds checking, etc. More...

#include <OpenFOAM/SquareMatrix.H>


Detailed Description

template<class Type>
class Foam::SquareMatrix< Type >

A templated 2D square matrix of objects of <T>, where the n x n matrix dimension is known and used for subscript bounds checking, etc.

Source files

Definition at line 52 of file SquareMatrix.H.

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

List of all members.

Public Member Functions

 SquareMatrix ()
 Null constructor.
 SquareMatrix (const label n)
 Construct given number of rows/columns.
 SquareMatrix (const label m, const label n)
 Construct given number of rows and columns,.
 SquareMatrix (const label m, const label n, const Type &)
 Construct with given number of rows and rows.
 SquareMatrix (Istream &)
 Construct from Istream.
autoPtr< SquareMatrix< Type > >  clone () const
 Clone.

Constructor & Destructor Documentation

SquareMatrix (  ) [inline]

Null constructor.

Definition at line 29 of file SquareMatrixI.H.

SquareMatrix ( const label   n  ) [inline]

Construct given number of rows/columns.

Definition at line 35 of file SquareMatrixI.H.

SquareMatrix ( const label   m,
const label   n  
) [inline]

Construct given number of rows and columns,.

It checks that m == n.

Definition at line 41 of file SquareMatrixI.H.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

SquareMatrix ( const label   m,
const label   n,
const Type &   t  
) [inline]

Construct with given number of rows and rows.

and value for all elements. It checks that m == n.

Definition at line 56 of file SquareMatrixI.H.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

SquareMatrix ( Istream &   is  ) [inline]

Construct from Istream.

Definition at line 75 of file SquareMatrixI.H.


Member Function Documentation

Foam::autoPtr< Foam::SquareMatrix< Type > > clone (  ) const [inline]

Clone.

Reimplemented from Matrix< SquareMatrix< Type >, Type >.

Definition at line 82 of file SquareMatrixI.H.


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