cgv
cgv::math::tri_diag_mat< T > Class Template Reference

#include <tri_diag_mat.h>

Public Member Functions

 tri_diag_mat ()
 standard constructor
 
 tri_diag_mat (const tri_diag_mat< T > &m)
 copy constructor
 
tri_diag_mat< T > & operator= (const tri_diag_mat< T > &m)
 assignment of a matrix with the same element type
 
 operator const mat< T > () const
 cast into const full storage matrix
 
void identity ()
 set identity matrix
 
 operator T* ()
 cast into array of element type
 
 operator const T * () const
 cast into array of const element type
 
bool is_square ()
 returns true
 
unsigned nrows ()
 return number of rows
 
unsigned ncols ()
 return number of columns
 
unsigned size ()
 return storage size in elements
 
T & operator() (unsigned r, int b)
 return matrix element in row r of band b
 
const T & operator() (unsigned r, int b) const
 return matrix element in row r of band b
 

Detailed Description

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

tridiagonal matrix (square)


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