SmallMatrix< T > Class Template Reference

High-level class for small matrices and small vectors. More...

#include <small_matrix.hpp>

Inheritance diagram for SmallMatrix< T >:

Inheritance graph
[legend]
Collaboration diagram for SmallMatrix< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmallMatrix ()
 Creates a dummy object.
 SmallMatrix (int the_m, int the_n)
 Creates a matrix.
 SmallMatrix (int the_m)
 Creates a column vector with the_m entries.
 SmallMatrix (const small_matrix< T > &M)
 Duplication.
 ~SmallMatrix ()
void init (int the_m, int the_n=1)
 Reinitializes the object.
void same_size (small_matrix< T > &A)
 Sets the sizes from a given matrix and reallocates the memory.
SmallMatrix< T > & operator= (small_matrix< T > &src)
 Assignment operator.
SmallMatrix< T > & operator= (T *seg)
 Assignment operator.
SmallMatrix< T > inv () const
 Returns the inverse matrix.

Detailed Description

template<class T>
class SmallMatrix< T >

High-level class for small matrices and small vectors.

class SmallMatrix


Constructor & Destructor Documentation

template<class T>
SmallMatrix< T >::SmallMatrix (  )  [inline]

Creates a dummy object.

template<class T>
SmallMatrix< T >::SmallMatrix ( int  the_m,
int  the_n 
) [inline]

Creates a matrix.

Parameters:
[in] the_m Size m.
[in] the_n Size n.

template<class T>
SmallMatrix< T >::SmallMatrix ( int  the_m  )  [inline]

Creates a column vector with the_m entries.

Parameters:
[in] the_m Number of rows.

template<class T>
SmallMatrix< T >::SmallMatrix ( const small_matrix< T > &  M  )  [inline]

Duplication.

template<class T>
SmallMatrix< T >::~SmallMatrix (  )  [inline]


Member Function Documentation

template<class T>
void SmallMatrix< T >::init ( int  the_m,
int  the_n = 1 
) [inline]

Reinitializes the object.

Sets the new sizes and releases the previously allocated memory (if any)

Parameters:
[in] the_m The new size m
[in] the_n The new size n

template<class T>
void SmallMatrix< T >::same_size ( small_matrix< T > &  A  )  [inline]

Sets the sizes from a given matrix and reallocates the memory.

Parameters:
[in] A The given matrix to take the sizes from.

template<class T>
SmallMatrix<T>& SmallMatrix< T >::operator= ( small_matrix< T > &  src  )  [inline]

Assignment operator.

Merely copies the entries of the source matrix to the entries of the destination matrix. The matrices should have the same size.

template<class T>
SmallMatrix<T>& SmallMatrix< T >::operator= ( T *  seg  )  [inline]

Assignment operator.

Copying the entries from a memory segment: merely copies n * m values starting from a given pointer to the 'entry' array.

template<class T>
SmallMatrix< T > SmallMatrix< T >::inv (  )  const [inline]

Returns the inverse matrix.


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 12:34:38 2007 for SG2 by  doxygen 1.5.2