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

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...

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.

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 47 of file SquareMatrix.H.


Constructor & Destructor Documentation

SquareMatrix (  )  [inline]

Null constructor.

Definition at line 21 of file SquareMatrixI.H.

SquareMatrix ( const label  n  )  [inline]

Construct given number of rows/columns.

Definition at line 27 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 33 of file SquareMatrixI.H.

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 48 of file SquareMatrixI.H.

SquareMatrix ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 67 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 74 of file SquareMatrixI.H.


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