cgv
|
Public Member Functions | |
sparse_mat (const mat< T > &m, T eps=0) | |
unsigned | nrows () const |
unsigned | ncols () const |
unsigned | num_non_zeros () const |
operator mat< T > () | |
void | compress (const mat< T > &m, T eps=0) |
vec< T > | operator* (const vec< T > &v) |
matrix vector product | |
sparse_mat< T > & | operator*= (const T &s) |
sparse_mat< T > | operator* (const T &s) |
sparse_mat< T > & | operator/= (const T &s) |
sparse_mat< T > | operator/ (const T &s) |
void | transpose () |
transpose matrix | |
Friends | |
std::ostream & | operator<< (std::ostream &out, sparse_mat &sm) |
void | Ax (const sparse_mat< T > &A, const vec< T > &v, vec< T > &r) |
void | Atx (const sparse_mat< T > &A, const vec< T > &v, vec< T > &r) |
bool | low_tri_solve (const sparse_mat< T > &L, const vec< T > &b, vec< T > &x) |
Definition at line 22 of file sparse_mat.h.
|
inline |
Definition at line 40 of file sparse_mat.h.
|
inline |
Definition at line 76 of file sparse_mat.h.
|
inline |
Definition at line 52 of file sparse_mat.h.
|
inline |
Definition at line 46 of file sparse_mat.h.
|
inline |
Definition at line 58 of file sparse_mat.h.
|
inline |
Definition at line 64 of file sparse_mat.h.
|
inline |
Definition at line 141 of file sparse_mat.h.
|
inline |
matrix vector product
Definition at line 117 of file sparse_mat.h.
References cgv::math::vec< T >::size(), and cgv::math::vec< T >::zeros().
|
inline |
Definition at line 134 of file sparse_mat.h.
|
inline |
Definition at line 155 of file sparse_mat.h.
|
inline |
Definition at line 148 of file sparse_mat.h.
|
inline |
transpose matrix
Definition at line 164 of file sparse_mat.h.
References cgv::math::vec< T >::size(), and cgv::math::vec< T >::zeros().
|
friend |
Definition at line 253 of file sparse_mat.h.
|
friend |
Definition at line 239 of file sparse_mat.h.
|
friend |
Definition at line 281 of file sparse_mat.h.
|
friend |
Definition at line 229 of file sparse_mat.h.