PLaSK library
Loading...
Searching...
No Matches
TNT::Matrix< T > Class Template Reference

#include <solvers/gain/wasiak/wzmocnienie/tnt/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_
 

Detailed Description

template<class T>
class TNT::Matrix< T >

Definition at line 39 of file tnt_cmat.h.

Member Typedef Documentation

◆ const_iterator

template<class T >
typedef const T* TNT::Matrix< T >::const_iterator

Definition at line 51 of file tnt_cmat.h.

◆ const_reference

template<class T >
typedef const T& TNT::Matrix< T >::const_reference

Definition at line 52 of file tnt_cmat.h.

◆ element_type

template<class T >
typedef T TNT::Matrix< T >::element_type

Definition at line 47 of file tnt_cmat.h.

◆ iterator

template<class T >
typedef T* TNT::Matrix< T >::iterator

Definition at line 49 of file tnt_cmat.h.

◆ pointer

template<class T >
typedef T* TNT::Matrix< T >::pointer

Definition at line 48 of file tnt_cmat.h.

◆ reference

template<class T >
typedef T& TNT::Matrix< T >::reference

Definition at line 50 of file tnt_cmat.h.

◆ size_type

template<class T >
typedef Subscript TNT::Matrix< T >::size_type

Definition at line 45 of file tnt_cmat.h.

◆ value_type

template<class T >
typedef T TNT::Matrix< T >::value_type

Definition at line 46 of file tnt_cmat.h.

Constructor & Destructor Documentation

◆ Matrix() [1/5]

template<class T >
TNT::Matrix< T >::Matrix ( )
inline

Definition at line 175 of file tnt_cmat.h.

◆ Matrix() [2/5]

template<class T >
TNT::Matrix< T >::Matrix ( const Matrix< T > &  A)
inline

Definition at line 177 of file tnt_cmat.h.

◆ Matrix() [3/5]

template<class T >
TNT::Matrix< T >::Matrix ( Subscript  M,
Subscript  N,
const T &  value = T() 
)
inline

Definition at line 183 of file tnt_cmat.h.

◆ Matrix() [4/5]

template<class T >
TNT::Matrix< T >::Matrix ( Subscript  M,
Subscript  N,
const T *  v 
)
inline

Definition at line 189 of file tnt_cmat.h.

◆ Matrix() [5/5]

template<class T >
TNT::Matrix< T >::Matrix ( Subscript  M,
Subscript  N,
const char *  s 
)
inline

Definition at line 195 of file tnt_cmat.h.

◆ ~Matrix()

template<class T >
TNT::Matrix< T >::~Matrix ( )
inline

Definition at line 210 of file tnt_cmat.h.

Member Function Documentation

◆ copy()

template<class T >
void TNT::Matrix< T >::copy ( const T *  v)
inlineprotected

Definition at line 95 of file tnt_cmat.h.

◆ destroy()

template<class T >
void TNT::Matrix< T >::destroy ( )
inlineprotected

Definition at line 150 of file tnt_cmat.h.

◆ dim()

template<class T >
Subscript TNT::Matrix< T >::dim ( Subscript  d) const
inline

Definition at line 259 of file tnt_cmat.h.

◆ initialize()

template<class T >
void TNT::Matrix< T >::initialize ( Subscript  M,
Subscript  N 
)
inlineprotected

Definition at line 68 of file tnt_cmat.h.

◆ lbound()

template<class T >
Subscript TNT::Matrix< T >::lbound ( ) const
inline

Definition at line 54 of file tnt_cmat.h.

◆ newsize()

template<class T >
Matrix< T > & TNT::Matrix< T >::newsize ( Subscript  M,
Subscript  N 
)
inline

Definition at line 218 of file tnt_cmat.h.

◆ num_cols()

template<class T >
Subscript TNT::Matrix< T >::num_cols ( ) const
inline

Definition at line 269 of file tnt_cmat.h.

◆ num_rows()

template<class T >
Subscript TNT::Matrix< T >::num_rows ( ) const
inline

Definition at line 268 of file tnt_cmat.h.

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

template<class T >
TNT::Matrix< T >::operator T** ( )
inline

Definition at line 167 of file tnt_cmat.h.

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

template<class T >
TNT::Matrix< T >::operator T** ( ) const
inline

Definition at line 168 of file tnt_cmat.h.

◆ operator()() [1/4]

template<class T >
reference TNT::Matrix< T >::operator() ( Subscript  i)
inline

Definition at line 292 of file tnt_cmat.h.

◆ operator()() [2/4]

template<class T >
const_reference TNT::Matrix< T >::operator() ( Subscript  i) const
inline

Definition at line 301 of file tnt_cmat.h.

◆ operator()() [3/4]

template<class T >
reference TNT::Matrix< T >::operator() ( Subscript  i,
Subscript  j 
)
inline

Definition at line 312 of file tnt_cmat.h.

◆ operator()() [4/4]

template<class T >
const_reference TNT::Matrix< T >::operator() ( Subscript  i,
Subscript  j 
) const
inline

Definition at line 325 of file tnt_cmat.h.

◆ operator=() [1/2]

template<class T >
Matrix< T > & TNT::Matrix< T >::operator= ( const Matrix< T > &  A)
inline

Definition at line 234 of file tnt_cmat.h.

◆ operator=() [2/2]

template<class T >
Matrix< T > & TNT::Matrix< T >::operator= ( const T &  scalar)
inline

Definition at line 252 of file tnt_cmat.h.

◆ operator[]() [1/2]

template<class T >
T * TNT::Matrix< T >::operator[] ( Subscript  i)
inline

Definition at line 274 of file tnt_cmat.h.

◆ operator[]() [2/2]

template<class T >
const T * TNT::Matrix< T >::operator[] ( Subscript  i) const
inline

Definition at line 283 of file tnt_cmat.h.

◆ set()

template<class T >
void TNT::Matrix< T >::set ( const T &  val)
inlineprotected

Definition at line 121 of file tnt_cmat.h.

◆ size()

template<class T >
Subscript TNT::Matrix< T >::size ( ) const
inline

Definition at line 171 of file tnt_cmat.h.

Member Data Documentation

◆ m_

template<class T >
Subscript TNT::Matrix< T >::m_
protected

Definition at line 57 of file tnt_cmat.h.

◆ mn_

template<class T >
Subscript TNT::Matrix< T >::mn_
protected

Definition at line 59 of file tnt_cmat.h.

◆ n_

template<class T >
Subscript TNT::Matrix< T >::n_
protected

Definition at line 58 of file tnt_cmat.h.

◆ row_

template<class T >
T** TNT::Matrix< T >::row_
protected

Definition at line 61 of file tnt_cmat.h.

◆ rowm1_

template<class T >
T** TNT::Matrix< T >::rowm1_
protected

Definition at line 63 of file tnt_cmat.h.

◆ v_

template<class T >
T* TNT::Matrix< T >::v_
protected

Definition at line 60 of file tnt_cmat.h.

◆ vm1_

template<class T >
T* TNT::Matrix< T >::vm1_
protected

Definition at line 62 of file tnt_cmat.h.


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