Essentia  2.1-beta5-dev
Matrix< T > Class Template Reference

#include <tnt_cmat.h>

Public Types

typedef Subscript size_type
 
typedef T value_type
 
typedef T element_type
 
typedef T * pointer
 
typedef T * iterator
 
typedef T & reference
 
typedef const T * const_iterator
 
typedef const T & const_reference
 

Public Member Functions

Subscript lbound () const
 
 operator T** ()
 
 operator T** () const
 
Subscript size () const
 
 Matrix ()
 
 Matrix (const Matrix< T > &A)
 
 Matrix (Subscript M, Subscript N, const T &value=T())
 
 Matrix (Subscript M, Subscript N, const T *v)
 
 Matrix (Subscript M, Subscript N, const char *s)
 
 ~Matrix ()
 
Matrix< T > & newsize (Subscript M, Subscript N)
 
Matrix< T > & operator= (const Matrix< T > &A)
 
Matrix< T > & operator= (const T &scalar)
 
Subscript dim (Subscript d) const
 
Subscript num_rows () const
 
Subscript num_cols () const
 
T * operator[] (Subscript i)
 
const T * operator[] (Subscript i) const
 
reference operator() (Subscript i)
 
const_reference operator() (Subscript i) const
 
reference operator() (Subscript i, Subscript j)
 
const_reference operator() (Subscript i, Subscript j) const
 

Protected Member Functions

void initialize (Subscript M, Subscript N)
 
void copy (const T *v)
 
void set (const T &val)
 
void destroy ()
 

Protected Attributes

Subscript m_
 
Subscript n_
 
Subscript mn_
 
T * v_
 
T ** row_
 
T * vm1_
 
T ** rowm1_
 

Member Typedef Documentation

◆ const_iterator

typedef const T* const_iterator

◆ const_reference

typedef const T& const_reference

◆ element_type

typedef T element_type

◆ iterator

typedef T* iterator

◆ pointer

typedef T* pointer

◆ reference

typedef T& reference

◆ size_type

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ Matrix() [1/5]

Matrix ( )
inline

◆ Matrix() [2/5]

◆ Matrix() [3/5]

Matrix ( Subscript  M,
Subscript  N,
const T &  value = T() 
)
inline

◆ Matrix() [4/5]

Matrix ( Subscript  M,
Subscript  N,
const T *  v 
)
inline

◆ Matrix() [5/5]

Matrix ( Subscript  M,
Subscript  N,
const char *  s 
)
inline

◆ ~Matrix()

~Matrix ( )
inline

Member Function Documentation

◆ copy()

void copy ( const T *  v)
inlineprotected

◆ destroy()

◆ dim()

Subscript dim ( Subscript  d) const
inline

References Matrix< T >::m_.

◆ initialize()

void initialize ( Subscript  M,
Subscript  N 
)
inlineprotected

◆ lbound()

Subscript lbound ( ) const
inline

◆ newsize()

◆ num_cols()

◆ num_rows()

◆ operator T**() [1/2]

operator T** ( )
inline

References Matrix< T >::row_.

◆ operator T**() [2/2]

operator T** ( ) const
inline

References Matrix< T >::row_.

◆ operator()() [1/4]

reference operator() ( Subscript  i)
inline

◆ operator()() [2/4]

const_reference operator() ( Subscript  i) const
inline

◆ operator()() [3/4]

reference operator() ( Subscript  i,
Subscript  j 
)
inline

◆ operator()() [4/4]

const_reference operator() ( Subscript  i,
Subscript  j 
) const
inline

◆ operator=() [1/2]

◆ operator=() [2/2]

Matrix<T>& operator= ( const T &  scalar)
inline

◆ operator[]() [1/2]

T* operator[] ( Subscript  i)
inline

◆ operator[]() [2/2]

const T* operator[] ( Subscript  i) const
inline

◆ set()

void set ( const T &  val)
inlineprotected

References Matrix< T >::n_.

◆ size()

Subscript size ( ) const
inline

References Matrix< T >::mn_.

Member Data Documentation

◆ m_

◆ mn_

Subscript mn_
protected

◆ n_

◆ row_

T** row_
protected

◆ rowm1_

T** rowm1_
protected

Referenced by Matrix< T >::destroy().

◆ v_

◆ vm1_

T* vm1_
protected

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