TinyMatrix< 1, 1, T > Class Template Reference

#include <TinyMatrix.hpp>

Collaboration diagram for TinyMatrix< 1, 1, T >:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { NumberOfLines = 1, NumberOfRow = 1 }
typedef T AssociatedVector
typedef T AssociatedTransposedVector
typedef T ValueType

Public Member Functions

 operator T & ()
 operator const T & () const
T & operator() (const size_t &i, const size_t &j)
const T & operator() (const size_t &i, const size_t &j) const
 TinyMatrix ()
 TinyMatrix (const T &t)
 TinyMatrix (const TinyMatrix< 1, 1, T > &B)
 ~TinyMatrix ()

Private Attributes

__x

Friends

const T & det (const TinyMatrix< 1, 1, T > &A)
 Computes the determinent of a scalar: itself.


Detailed Description

template<typename T>
class TinyMatrix< 1, 1, T >

Definition at line 938 of file TinyMatrix.hpp.


Member Typedef Documentation

template<typename T>
typedef T TinyMatrix< 1, 1, T >::AssociatedVector

Type of compatibke vector

Definition at line 942 of file TinyMatrix.hpp.

template<typename T>
typedef T TinyMatrix< 1, 1, T >::AssociatedTransposedVector

Type of compatible transposed vector

Definition at line 945 of file TinyMatrix.hpp.

template<typename T>
typedef T TinyMatrix< 1, 1, T >::ValueType

The type of the elements of the TinyMatrix

Definition at line 948 of file TinyMatrix.hpp.


Member Enumeration Documentation

template<typename T>
anonymous enum

Enumerator:
NumberOfLines  number of lines
NumberOfRow  number of rows

Definition at line 951 of file TinyMatrix.hpp.

00951        {
00952     NumberOfLines = 1,          
00953     NumberOfRow   = 1           
00954   };


Constructor & Destructor Documentation

template<typename T>
TinyMatrix< 1, 1, T >::TinyMatrix (  )  [inline]

Default constructor

Definition at line 1018 of file TinyMatrix.hpp.

01019     : __x(0)
01020   {
01021     ;
01022   }

template<typename T>
TinyMatrix< 1, 1, T >::TinyMatrix ( const T &  t  )  [inline]

Constructs the matrix using a T

Parameters:
t the given value

Definition at line 1029 of file TinyMatrix.hpp.

01030     : __x(t)
01031   {
01032     ;
01033   }

template<typename T>
TinyMatrix< 1, 1, T >::TinyMatrix ( const TinyMatrix< 1, 1, T > &  B  )  [inline]

Copy constructor

Parameters:
B the given matrix

Definition at line 1040 of file TinyMatrix.hpp.

01041     : __x(B.__x)
01042   {
01043     ;
01044   }

template<typename T>
TinyMatrix< 1, 1, T >::~TinyMatrix (  )  [inline]

Destructor

Definition at line 1050 of file TinyMatrix.hpp.

01051   {
01052     ;
01053   }  


Member Function Documentation

template<typename T>
TinyMatrix< 1, 1, T >::operator T & (  )  [inline]

Cast operator

Returns:
the value

Definition at line 965 of file TinyMatrix.hpp.

References TinyMatrix< M, N, T >::__x.

00966   {
00967     return __x;
00968   }

template<typename T>
TinyMatrix< 1, 1, T >::operator const T & (  )  const [inline]

Cast operator

Returns:
the value

Definition at line 975 of file TinyMatrix.hpp.

References TinyMatrix< M, N, T >::__x.

00976   {
00977     return __x;
00978   }

template<typename T>
T& TinyMatrix< 1, 1, T >::operator() ( const size_t &  i,
const size_t &  j 
) [inline]

Access to the (i,j) coefficient of the matrix

Parameters:
i the line number
j the row number
Returns:
$ A_{ij} $

Definition at line 988 of file TinyMatrix.hpp.

References TinyMatrix< M, N, T >::__x, and ASSERT.

00989   {
00990     ASSERT ((i==0)&&(j==0));
00991     return __x;
00992   }

template<typename T>
const T& TinyMatrix< 1, 1, T >::operator() ( const size_t &  i,
const size_t &  j 
) const [inline]

read-only access to the (i,j) coefficient of the matrix

Parameters:
i the line number
j the row number
Returns:
$ A_{ij} $

Definition at line 1002 of file TinyMatrix.hpp.

References TinyMatrix< M, N, T >::__x, and ASSERT.

01003   {
01004     ASSERT ((i==0)&&(j==0));
01005     return __x;
01006   }


Friends And Related Function Documentation

template<typename T>
const T& det ( const TinyMatrix< 1, 1, T > &  A  )  [friend]

Computes the determinent of a scalar: itself.

Definition at line 1009 of file TinyMatrix.hpp.

01010   {
01011     return A.__x;
01012   }


Member Data Documentation

template<typename T>
T TinyMatrix< 1, 1, T >::__x [private]

The value

Definition at line 957 of file TinyMatrix.hpp.


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

Generated on Wed Nov 19 00:16:27 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6