GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <functional>
#include "quit.h"
#include "lo-error.h"
#include "MArray.h"
#include "Array-util.h"
#include "MSparse.h"
#include "MSparse-defs.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
MSparse< T > | operator* (const MSparse< T > &a, const T &s) |
template<class T > | |
MSparse< T > | operator* (const T &s, const MSparse< T > &a) |
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<class T > | |
MSparse< T > | operator+ (const MSparse< T > &a, const MSparse< T > &b) |
template<class T > | |
MSparse< T > | operator+ (const MSparse< T > &a) |
template<typename T > | |
MSparse< T > & | operator+= (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<class T > | |
MSparse< T > | operator- (const MSparse< T > &a, const MSparse< T > &b) |
template<class T > | |
MSparse< T > | operator- (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<class T > | |
MSparse< T > | operator/ (const T &s, const MSparse< T > &a) |
template<class T , class OP > | |
MSparse< T > & | plus_or_minus (MSparse< T > &a, const MSparse< T > &b, OP op, const char *op_name) |
template<class T , class OP > | |
MArray< T > | plus_or_minus (const MSparse< T > &a, const T &s, OP op) |
template<class T , class OP > | |
MArray< T > | plus_or_minus (const T &s, const MSparse< T > &a, OP op) |
template<class T , class OP > | |
MSparse< T > | plus_or_minus (const MSparse< T > &a, const MSparse< T > &b, OP op, const char *op_name, bool negate) |
template<class T > | |
MSparse< T > | product (const MSparse< T > &a, const MSparse< T > &b) |
template<class T > | |
MSparse< T > | quotient (const MSparse< T > &a, const MSparse< T > &b) |
template<class T , class OP > | |
MSparse< T > | times_or_divide (const MSparse< T > &a, const T &s, OP op) |
template<class T , class OP > | |
MSparse< T > | times_or_divides (const T &s, const MSparse< T > &a, OP op) |
Definition at line 184 of file MSparse.cc.
References times_or_divide().
Definition at line 251 of file MSparse.cc.
References times_or_divides().
Definition at line 148 of file MSparse.cc.
References plus_or_minus().
Definition at line 216 of file MSparse.cc.
References plus_or_minus().
Definition at line 387 of file MSparse.cc.
References plus_or_minus().
Definition at line 616 of file MSparse.cc.
Definition at line 116 of file MSparse.cc.
References plus_or_minus().
Definition at line 155 of file MSparse.cc.
References plus_or_minus().
Definition at line 223 of file MSparse.cc.
References plus_or_minus().
Definition at line 394 of file MSparse.cc.
References plus_or_minus().
Definition at line 623 of file MSparse.cc.
References Sparse< T >::data(), and Sparse< T >::nnz().
Definition at line 123 of file MSparse.cc.
References plus_or_minus().
Definition at line 191 of file MSparse.cc.
References times_or_divide().
Definition at line 258 of file MSparse.cc.
References times_or_divides().
MSparse<T>& plus_or_minus | ( | MSparse< T > & | a, |
const MSparse< T > & | b, | ||
OP | op, | ||
const char * | op_name | ||
) |
Definition at line 44 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), gripe_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by operator+(), operator+=(), operator-(), and operator-=().
MArray<T> plus_or_minus | ( | const MSparse< T > & | a, |
const T & | s, | ||
OP | op | ||
) |
Definition at line 133 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), Sparse< T >::ridx(), and Sparse< T >::rows().
MArray<T> plus_or_minus | ( | const T & | s, |
const MSparse< T > & | a, | ||
OP | op | ||
) |
Definition at line 201 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), Sparse< T >::ridx(), and Sparse< T >::rows().
MSparse<T> plus_or_minus | ( | const MSparse< T > & | a, |
const MSparse< T > & | b, | ||
OP | op, | ||
const char * | op_name, | ||
bool | negate | ||
) |
Definition at line 268 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::elem(), gripe_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
Definition at line 401 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::elem(), gripe_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
Definition at line 498 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::elem(), gripe_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
MSparse<T> times_or_divide | ( | const MSparse< T > & | a, |
const T & | s, | ||
OP | op | ||
) |
Definition at line 163 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by operator*(), and operator/().
MSparse<T> times_or_divides | ( | const T & | s, |
const MSparse< T > & | a, | ||
OP | op | ||
) |
Definition at line 230 of file MSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by operator*(), and operator/().