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

Public Member Functions

 up_tri_mat (const mat< T > &m)
 
 up_tri_mat (unsigned dim)
 
 up_tri_mat (const up_tri_mat &m)
 
 up_tri_mat (unsigned dim, const T &c)
 
void resize (unsigned n)
 
 operator mat< T > ()
 
 operator const mat< T > () const
 
up_tri_mat< T > & operator= (const up_tri_mat< T > &m)
 assignment of a matrix with the same element type
 
unsigned size () const
 
unsigned dim () const
 
unsigned ncols () const
 
unsigned nrows () const
 
void fill (const T &c)
 
T & operator() (unsigned i, unsigned j)
 
const T & operator() (unsigned i, unsigned j) const
 
up_tri_mat< T > & operator/= (const T &s)
 in place division by a scalar
 
up_tri_mat< T > operator/ (const T &s)
 division by a scalar
 
const mat< T > operator* (const up_tri_mat< T > &m2)
 
const mat< T > operator* (const mat< T > &m2)
 

Protected Attributes

vec< T > _data
 
unsigned _dim
 

Detailed Description

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

Definition at line 11 of file up_tri_mat.h.

Constructor & Destructor Documentation

◆ up_tri_mat() [1/5]

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

Definition at line 23 of file up_tri_mat.h.

◆ up_tri_mat() [2/5]

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

Definition at line 29 of file up_tri_mat.h.

◆ up_tri_mat() [3/5]

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

Definition at line 44 of file up_tri_mat.h.

◆ up_tri_mat() [4/5]

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

Definition at line 50 of file up_tri_mat.h.

◆ up_tri_mat() [5/5]

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

Definition at line 57 of file up_tri_mat.h.

◆ ~up_tri_mat()

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

Definition at line 63 of file up_tri_mat.h.

Member Function Documentation

◆ dim()

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

Definition at line 124 of file up_tri_mat.h.

◆ fill()

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

Definition at line 142 of file up_tri_mat.h.

◆ ncols()

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

Definition at line 130 of file up_tri_mat.h.

◆ nrows()

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

Definition at line 136 of file up_tri_mat.h.

◆ operator const mat< T >()

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

Definition at line 92 of file up_tri_mat.h.

◆ operator mat< T >()

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

Definition at line 75 of file up_tri_mat.h.

◆ operator()() [1/2]

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

Definition at line 151 of file up_tri_mat.h.

◆ operator()() [2/2]

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

Definition at line 158 of file up_tri_mat.h.

◆ operator*() [1/2]

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

Definition at line 197 of file up_tri_mat.h.

◆ operator*() [2/2]

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

Definition at line 183 of file up_tri_mat.h.

◆ operator/()

template<typename T >
up_tri_mat< T > cgv::math::up_tri_mat< T >::operator/ ( const T &  s)
inline

division by a scalar

Definition at line 175 of file up_tri_mat.h.

◆ operator/=()

template<typename T >
up_tri_mat< T > & cgv::math::up_tri_mat< T >::operator/= ( const T &  s)
inline

in place division by a scalar

Definition at line 165 of file up_tri_mat.h.

◆ operator=()

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

assignment of a matrix with the same element type

Definition at line 110 of file up_tri_mat.h.

◆ resize()

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

Definition at line 68 of file up_tri_mat.h.

◆ size()

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

Definition at line 118 of file up_tri_mat.h.

Member Data Documentation

◆ _data

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

Definition at line 15 of file up_tri_mat.h.

◆ _dim

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

Definition at line 17 of file up_tri_mat.h.


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