cgv
|
tridiagonal matrix (square) More...
#include <tri_diag_mat.h>
Public Member Functions | |
tri_diag_mat () | |
standard constructor | |
tri_diag_mat (unsigned n) | |
tri_diag_mat (unsigned n, const T &c) | |
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 | |
void | fill (const T &c) |
bool | is_square () |
returns true | |
void | transpose () |
void | zeros () |
void | zeros (unsigned n) |
void | resize (unsigned n) |
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 | |
vec< T > | band (int b) const |
vec< T > | operator* (const vec< T > &v) const |
Protected Attributes | |
vec< T > | _data |
unsigned | _dim |
tridiagonal matrix (square)
Definition at line 13 of file tri_diag_mat.h.
|
inline |
standard constructor
Definition at line 22 of file tri_diag_mat.h.
|
inline |
Definition at line 27 of file tri_diag_mat.h.
|
inline |
Definition at line 33 of file tri_diag_mat.h.
|
inline |
copy constructor
Definition at line 40 of file tri_diag_mat.h.
|
inline |
Definition at line 172 of file tri_diag_mat.h.
|
inline |
Definition at line 100 of file tri_diag_mat.h.
|
inline |
set identity matrix
Definition at line 75 of file tri_diag_mat.h.
|
inline |
returns true
Definition at line 108 of file tri_diag_mat.h.
|
inline |
return number of columns
Definition at line 146 of file tri_diag_mat.h.
|
inline |
return number of rows
Definition at line 140 of file tri_diag_mat.h.
|
inline |
cast into const full storage matrix
Definition at line 55 of file tri_diag_mat.h.
References cgv::math::tri_diag_mat< T >::operator()(), and cgv::math::mat< T >::zeros().
|
inline |
cast into array of const element type
Definition at line 95 of file tri_diag_mat.h.
|
inline |
cast into array of element type
Definition at line 89 of file tri_diag_mat.h.
|
inline |
return matrix element in row r of band b
Definition at line 158 of file tri_diag_mat.h.
Referenced by cgv::math::tri_diag_mat< T >::operator const mat< T >().
|
inline |
return matrix element in row r of band b
Definition at line 165 of file tri_diag_mat.h.
|
inline |
Definition at line 178 of file tri_diag_mat.h.
|
inline |
assignment of a matrix with the same element type
Definition at line 47 of file tri_diag_mat.h.
|
inline |
Definition at line 131 of file tri_diag_mat.h.
|
inline |
return storage size in elements
Definition at line 152 of file tri_diag_mat.h.
|
inline |
Definition at line 114 of file tri_diag_mat.h.
|
inline |
Definition at line 119 of file tri_diag_mat.h.
|
inline |
Definition at line 124 of file tri_diag_mat.h.
|
protected |
Definition at line 16 of file tri_diag_mat.h.
|
protected |
Definition at line 18 of file tri_diag_mat.h.