Go to the source code of this file.
Functions | |
| template<typename T > | |
| MSparse< T > | operator* (const MSparse< T > &a, const T &s) |
| template<typename T > | |
| MSparse< T > | operator* (const T &s, const MSparse< T > &a) |
| template<typename T > | |
| MSparse< T > | operator+ (const MSparse< T > &a) |
| template<typename T > | |
| MSparse< T > | operator+ (const MSparse< T > &a, const MSparse< T > &b) |
| template<typename T > | |
| MArray< T > | operator+ (const MSparse< T > &a, const T &s) |
| template<typename T > | |
| MArray< T > | operator+ (const T &s, const MSparse< T > &a) |
| template<typename T > | |
| MSparse< T > & | operator+= (MSparse< T > &a, const MSparse< T > &b) |
| template<typename T > | |
| MSparse< T > | operator- (const MSparse< T > &a) |
| template<typename T > | |
| MSparse< T > | operator- (const MSparse< T > &a, const MSparse< T > &b) |
| template<typename T > | |
| MArray< T > | operator- (const MSparse< T > &a, const T &s) |
| template<typename T > | |
| MArray< T > | operator- (const T &s, const MSparse< T > &a) |
| template<typename T > | |
| MSparse< T > & | operator-= (MSparse< T > &a, const MSparse< T > &b) |
| template<typename T > | |
| MSparse< T > | operator/ (const MSparse< T > &a, const T &s) |
| template<typename T > | |
| MSparse< T > | operator/ (const T &s, const MSparse< T > &a) |
| template<typename T , typename OP > | |
| MSparse< T > | plus_or_minus (const MSparse< T > &a, const MSparse< T > &b, OP op, const char *op_name, bool negate) |
| template<typename T , typename OP > | |
| MArray< T > | plus_or_minus (const MSparse< T > &a, const T &s, OP op) |
| template<typename T , typename OP > | |
| MArray< T > | plus_or_minus (const T &s, const MSparse< T > &a, OP op) |
| template<typename T , typename OP > | |
| MSparse< T > & | plus_or_minus (MSparse< T > &a, const MSparse< T > &b, OP op, const char *op_name) |
| template<typename T > | |
| MSparse< T > | product (const MSparse< T > &a, const MSparse< T > &b) |
| template<typename T > | |
| MSparse< T > | quotient (const MSparse< T > &a, const MSparse< T > &b) |
| template<typename T , typename OP > | |
| MSparse< T > | times_or_divide (const MSparse< T > &a, const T &s, OP op) |
| template<typename T , typename OP > | |
| MSparse< T > | times_or_divide (const T &s, const MSparse< T > &a, OP op) |
Definition at line 222 of file MSparse.cc.
References times_or_divide().
Definition at line 315 of file MSparse.cc.
References times_or_divide().
Definition at line 1165 of file MSparse.cc.
Definition at line 576 of file MSparse.cc.
References Sparse< T, Alloc >::cols(), plus_or_minus(), Sparse< T, Alloc >::rows(), and MSparse< T >::transpose().
Definition at line 167 of file MSparse.cc.
References plus_or_minus().
Definition at line 260 of file MSparse.cc.
References plus_or_minus().
Definition at line 129 of file MSparse.cc.
References plus_or_minus().
Definition at line 1172 of file MSparse.cc.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
Definition at line 589 of file MSparse.cc.
References Sparse< T, Alloc >::cols(), plus_or_minus(), Sparse< T, Alloc >::rows(), and MSparse< T >::transpose().
Definition at line 174 of file MSparse.cc.
References plus_or_minus().
Definition at line 267 of file MSparse.cc.
References plus_or_minus().
Definition at line 136 of file MSparse.cc.
References plus_or_minus().
Definition at line 229 of file MSparse.cc.
References times_or_divide().
Definition at line 322 of file MSparse.cc.
References times_or_divide().
| MSparse< T > plus_or_minus | ( | const MSparse< T > & | a, |
| const MSparse< T > & | b, | ||
| OP | op, | ||
| const char * | op_name, | ||
| bool | negate | ||
| ) |
Definition at line 331 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
| MArray< T > plus_or_minus | ( | const MSparse< T > & | a, |
| const T & | s, | ||
| OP | op | ||
| ) |
Definition at line 145 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
| MArray< T > plus_or_minus | ( | const T & | s, |
| const MSparse< T > & | a, | ||
| OP | op | ||
| ) |
Definition at line 238 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
| MSparse< T > & plus_or_minus | ( | MSparse< T > & | a, |
| const MSparse< T > & | b, | ||
| OP | op, | ||
| const char * | op_name | ||
| ) |
Definition at line 31 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by operator+(), operator+(), operator+(), operator+=(), operator-(), operator-(), operator-(), and operator-=().
Definition at line 602 of file MSparse.cc.
References Sparse< T, Alloc >::any_element_is_inf_or_nan(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::numel(), product(), Sparse< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), and MSparse< T >::transpose().
Referenced by product().
Definition at line 939 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), quotient(), Sparse< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), and MSparse< T >::transpose().
Referenced by quotient().
| MSparse< T > times_or_divide | ( | const MSparse< T > & | a, |
| const T & | s, | ||
| OP | op | ||
| ) |
Definition at line 181 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by operator*(), operator*(), operator/(), and operator/().
| MSparse< T > times_or_divide | ( | const T & | s, |
| const MSparse< T > & | a, | ||
| OP | op | ||
| ) |
Definition at line 274 of file MSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().