GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
MSparse.cc File Reference
#include <functional>
#include "quit.h"
#include "lo-error.h"
#include "MArray.h"
#include "Array-util.h"
#include "MSparse.h"
#include "MSparse-defs.h"
Include dependency graph for MSparse.cc:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

template<typename T >
MSparse<T> operator* ( const MSparse< T > &  a,
const T &  s 
)

Definition at line 184 of file MSparse.cc.

References times_or_divide().

template<class T >
MSparse<T> operator* ( const T &  s,
const MSparse< T > &  a 
)

Definition at line 251 of file MSparse.cc.

References times_or_divides().

template<typename T >
MArray<T> operator+ ( const MSparse< T > &  a,
const T &  s 
)

Definition at line 148 of file MSparse.cc.

References plus_or_minus().

template<typename T >
MArray<T> operator+ ( const T &  s,
const MSparse< T > &  a 
)

Definition at line 216 of file MSparse.cc.

References plus_or_minus().

template<class T >
MSparse<T> operator+ ( const MSparse< T > &  a,
const MSparse< T > &  b 
)

Definition at line 387 of file MSparse.cc.

References plus_or_minus().

template<class T >
MSparse<T> operator+ ( const MSparse< T > &  a)

Definition at line 616 of file MSparse.cc.

template<typename T >
MSparse<T>& operator+= ( MSparse< T > &  a,
const MSparse< T > &  b 
)

Definition at line 116 of file MSparse.cc.

References plus_or_minus().

template<typename T >
MArray<T> operator- ( const MSparse< T > &  a,
const T &  s 
)

Definition at line 155 of file MSparse.cc.

References plus_or_minus().

template<typename T >
MArray<T> operator- ( const T &  s,
const MSparse< T > &  a 
)

Definition at line 223 of file MSparse.cc.

References plus_or_minus().

template<class T >
MSparse<T> operator- ( const MSparse< T > &  a,
const MSparse< T > &  b 
)

Definition at line 394 of file MSparse.cc.

References plus_or_minus().

template<class T >
MSparse<T> operator- ( const MSparse< T > &  a)

Definition at line 623 of file MSparse.cc.

References Sparse< T >::data(), and Sparse< T >::nnz().

template<typename T >
MSparse<T>& operator-= ( MSparse< T > &  a,
const MSparse< T > &  b 
)

Definition at line 123 of file MSparse.cc.

References plus_or_minus().

template<typename T >
MSparse<T> operator/ ( const MSparse< T > &  a,
const T &  s 
)

Definition at line 191 of file MSparse.cc.

References times_or_divide().

template<class T >
MSparse<T> operator/ ( const T &  s,
const MSparse< T > &  a 
)

Definition at line 258 of file MSparse.cc.

References times_or_divides().

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 
)