GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
MSparse.cc File Reference
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<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_divides (const T &s, const MSparse< T > &a, OP op)
 

Function Documentation

◆ operator*() [1/2]

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

Definition at line 168 of file MSparse.cc.

References times_or_divide().

◆ operator*() [2/2]

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

Definition at line 234 of file MSparse.cc.

References times_or_divides().

◆ operator+() [1/4]

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

Definition at line 596 of file MSparse.cc.

◆ operator+() [2/4]

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

Definition at line 369 of file MSparse.cc.

References plus_or_minus().

◆ operator+() [3/4]

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

Definition at line 133 of file MSparse.cc.

References plus_or_minus().

◆ operator+() [4/4]

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

Definition at line 199 of file MSparse.cc.

References plus_or_minus().

◆ operator+=()

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

Definition at line 102 of file MSparse.cc.

References plus_or_minus().

◆ operator-() [1/4]

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

Definition at line 603 of file MSparse.cc.

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

◆ operator-() [2/4]

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

Definition at line 376 of file MSparse.cc.

References plus_or_minus().

◆ operator-() [3/4]

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

Definition at line 140 of file MSparse.cc.

References plus_or_minus().

◆ operator-() [4/4]

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

Definition at line 206 of file MSparse.cc.

References plus_or_minus().

◆ operator-=()

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

Definition at line 109 of file MSparse.cc.

References plus_or_minus().

◆ operator/() [1/2]

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

Definition at line 175 of file MSparse.cc.

References times_or_divide().

◆ operator/() [2/2]

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

Definition at line 241 of file MSparse.cc.

References times_or_divides().

◆ plus_or_minus() [1/4]

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 
)

◆ plus_or_minus() [2/4]

template<typename T , typename OP >
MArray<T> plus_or_minus ( const MSparse< T > &  a,
const T &  s,
OP  op 
)

◆ plus_or_minus() [3/4]

template<typename T , typename OP >
MArray<T> plus_or_minus ( const T &  s,
const MSparse< T > &  a,
OP  op 
)

◆ plus_or_minus() [4/4]

template<typename T , typename OP >
MSparse<T>& plus_or_minus ( MSparse< T > &  a,
const MSparse< T > &  b,
OP  op,
const char *  op_name 
)

◆ product()

template<typename T >
MSparse<T> product ( const MSparse< T > &  a,
const MSparse< T > &  b 
)

◆ quotient()

template<typename T >
MSparse<T> quotient ( const MSparse< T > &  a,
const MSparse< T > &  b 
)

◆ times_or_divide()

template<typename T , typename OP >
MSparse<T> times_or_divide ( const MSparse< T > &  a,
const T &  s,
OP  op 
)

◆ times_or_divides()

template<typename T , typename OP >
MSparse<T> times_or_divides ( const T &  s,
const MSparse< T > &  a,
OP  op 
)