cgv
Loading...
Searching...
No Matches
cgv::math::low_tri_mat< T > Class Template Reference

Public Member Functions

 low_tri_mat (unsigned dim)
 
 low_tri_mat (const low_tri_mat &m)
 
 low_tri_mat (unsigned dim, const T &c)
 
void resize (unsigned n)
 
 operator mat< T > ()
 
low_tri_mat< T > & operator= (const low_tri_mat< T > &m)
 assignment of a matrix with the same element type
 
 operator const mat< T > () const
 
unsigned size () const
 
unsigned dim () const
 
unsigned nrows () const
 
unsigned ncols () const
 
void fill (const T &c)
 
T & operator() (const unsigned i, const unsigned j)
 
const T & operator() (unsigned i, unsigned j) const
 
bool valid_ind (int i, int j) const
 
template<typename S >
const mat< T > operator* (const mat< S > &m2)
 

Protected Attributes

vec< T > _data
 
unsigned _dim
 

Detailed Description

template<typename T>
class cgv::math::low_tri_mat< T >

Definition at line 12 of file low_tri_mat.h.

Constructor & Destructor Documentation

◆ low_tri_mat() [1/4]

template<typename T >
cgv::math::low_tri_mat< T >::low_tri_mat ( )
inline

Definition at line 25 of file low_tri_mat.h.

◆ low_tri_mat() [2/4]

template<typename T >
cgv::math::low_tri_mat< T >::low_tri_mat ( unsigned  dim)
inline

Definition at line 31 of file low_tri_mat.h.

◆ low_tri_mat() [3/4]

template<typename T >
cgv::math::low_tri_mat< T >::low_tri_mat ( const low_tri_mat< T > &  m)
inline

Definition at line 38 of file low_tri_mat.h.

◆ low_tri_mat() [4/4]

template<typename T >
cgv::math::low_tri_mat< T >::low_tri_mat ( unsigned  dim,
const T &  c 
)
inline

Definition at line 45 of file low_tri_mat.h.

◆ ~low_tri_mat()

template<typename T >
virtual cgv::math::low_tri_mat< T >::~low_tri_mat ( )
inlinevirtual

Definition at line 52 of file low_tri_mat.h.

Member Function Documentation

◆ dim()

template<typename T >
unsigned cgv::math::low_tri_mat< T >::dim ( ) const
inline

Definition at line 116 of file low_tri_mat.h.

◆ fill()

template<typename T >
void cgv::math::low_tri_mat< T >::fill ( const T &  c)
inline

Definition at line 133 of file low_tri_mat.h.

◆ ncols()

template<typename T >
unsigned cgv::math::low_tri_mat< T >::ncols ( ) const
inline

Definition at line 127 of file low_tri_mat.h.

◆ nrows()

template<typename T >
unsigned cgv::math::low_tri_mat< T >::nrows ( ) const
inline

Definition at line 122 of file low_tri_mat.h.

◆ operator const mat< T >()

template<typename T >
cgv::math::low_tri_mat< T >::operator const mat< T > ( ) const
inline

Definition at line 91 of file low_tri_mat.h.

◆ operator mat< T >()

template<typename T >
cgv::math::low_tri_mat< T >::operator mat< T > ( )
inline

Definition at line 64 of file low_tri_mat.h.

◆ operator()() [1/2]

template<typename T >
T & cgv::math::low_tri_mat< T >::operator() ( const unsigned  i,
const unsigned  j 
)
inline

Definition at line 142 of file low_tri_mat.h.

◆ operator()() [2/2]

template<typename T >
const T & cgv::math::low_tri_mat< T >::operator() ( unsigned  i,
unsigned  j 
) const
inline

Definition at line 149 of file low_tri_mat.h.

◆ operator*()

template<typename T >
template<typename S >
const mat< T > cgv::math::low_tri_mat< T >::operator* ( const mat< S > &  m2)
inline

Definition at line 162 of file low_tri_mat.h.

◆ operator=()

template<typename T >
low_tri_mat< T > & cgv::math::low_tri_mat< T >::operator= ( const low_tri_mat< T > &  m)
inline

assignment of a matrix with the same element type

Definition at line 82 of file low_tri_mat.h.

◆ resize()

template<typename T >
void cgv::math::low_tri_mat< T >::resize ( unsigned  n)
inline

Definition at line 57 of file low_tri_mat.h.

◆ size()

template<typename T >
unsigned cgv::math::low_tri_mat< T >::size ( ) const
inline

Definition at line 110 of file low_tri_mat.h.

◆ valid_ind()

template<typename T >
bool cgv::math::low_tri_mat< T >::valid_ind ( int  i,
int  j 
) const
inline

Definition at line 156 of file low_tri_mat.h.

Member Data Documentation

◆ _data

template<typename T >
vec<T> cgv::math::low_tri_mat< T >::_data
protected

Definition at line 17 of file low_tri_mat.h.

◆ _dim

template<typename T >
unsigned cgv::math::low_tri_mat< T >::_dim
protected

Definition at line 19 of file low_tri_mat.h.


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