GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
dSparse.h File Reference
#include "octave-config.h"
#include "CColVector.h"
#include "CMatrix.h"
#include "DET.h"
#include "MSparse.h"
#include "MatrixType.h"
#include "Sparse-op-decls.h"
#include "dColVector.h"
#include "dMatrix.h"
#include "dNDArray.h"
Include dependency graph for dSparse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SparseMatrix
 

Functions

OCTAVE_API SparseMatrix imag (const SparseComplexMatrix &a)
 
OCTAVE_API SparseMatrix max (double d, const SparseMatrix &m)
 
OCTAVE_API SparseMatrix max (const SparseMatrix &m, double d)
 
OCTAVE_API SparseMatrix max (const SparseMatrix &a, const SparseMatrix &b)
 
OCTAVE_API SparseMatrix min (double d, const SparseMatrix &m)
 
OCTAVE_API SparseMatrix min (const SparseMatrix &m, double d)
 
OCTAVE_API SparseMatrix min (const SparseMatrix &a, const SparseMatrix &b)
 
OCTAVE_API Matrix mul_trans (const Matrix &a, const SparseMatrix &b)
 
OCTAVE_API SparseBoolMatrix mx_el_and (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_and (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_and (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_eq (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_eq (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_eq (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_ge (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_ge (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_ge (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_gt (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_gt (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_gt (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_le (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_le (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_le (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_lt (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_lt (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_lt (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_ne (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_ne (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_ne (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_or (const SparseMatrix &, const double &)
 
OCTAVE_API SparseBoolMatrix mx_el_or (const double &, const SparseMatrix &)
 
OCTAVE_API SparseBoolMatrix mx_el_or (const SparseMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseMatrix operator* (const SparseMatrix &a, const SparseMatrix &b)
 
OCTAVE_API Matrix operator* (const Matrix &a, const SparseMatrix &b)
 
OCTAVE_API Matrix operator* (const SparseMatrix &a, const Matrix &b)
 
OCTAVE_API SparseMatrix operator* (const DiagMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseMatrix operator* (const SparseMatrix &, const DiagMatrix &)
 
OCTAVE_API SparseMatrix operator* (const PermMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseMatrix operator* (const SparseMatrix &, const PermMatrix &)
 
SparseMatrix operator* (const SparseMatrix &x, const double &y)
 
SparseMatrix operator* (const double &x, const SparseMatrix &y)
 
OCTAVE_API SparseMatrix operator+ (const DiagMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseMatrix operator+ (const SparseMatrix &, const DiagMatrix &)
 
SparseMatrix operator+ (const SparseMatrix &x, const SparseMatrix &y)
 
Matrix operator+ (const SparseMatrix &x, const double &y)
 
Matrix operator+ (const double &x, const SparseMatrix &y)
 
SparseMatrix operator+ (const SparseMatrix &x)
 
SparseMatrix operator+= (SparseMatrix &x, const SparseMatrix &y)
 
OCTAVE_API SparseMatrix operator- (const DiagMatrix &, const SparseMatrix &)
 
OCTAVE_API SparseMatrix operator- (const SparseMatrix &, const DiagMatrix &)
 
SparseMatrix operator- (const SparseMatrix &x, const SparseMatrix &y)
 
Matrix operator- (const SparseMatrix &x, const double &y)
 
SparseMatrix operator- (const SparseMatrix &x)
 
Matrix operator- (const double &x, const SparseMatrix &y)
 
SparseMatrix operator-= (SparseMatrix &x, const SparseMatrix &y)
 
SparseMatrix operator/ (const double &x, const SparseMatrix &y)
 
SparseMatrix operator/ (const SparseMatrix &x, const double &y)
 
SparseMatrix product (const SparseMatrix &x, const SparseMatrix &y)
 
SparseMatrix quotient (const SparseMatrix &x, const SparseMatrix &y)
 
OCTAVE_API SparseMatrix real (const SparseComplexMatrix &a)
 
OCTAVE_API Matrix trans_mul (const SparseMatrix &a, const Matrix &b)
 

Function Documentation

◆ imag()

OCTAVE_API SparseMatrix imag ( const SparseComplexMatrix a)

Definition at line 574 of file dSparse.cc.

References a, Sparse< T >::cidx(), Sparse< T >::data(), i, imag(), Sparse< T >::maybe_compress(), and Sparse< T >::ridx().

Referenced by imag().

◆ max() [1/3]

◆ max() [2/3]

OCTAVE_API SparseMatrix max ( const SparseMatrix m,
double  d 
)

Definition at line 7834 of file dSparse.cc.

References d, and max().

◆ max() [3/3]

◆ min() [1/3]

◆ min() [2/3]

OCTAVE_API SparseMatrix min ( const SparseMatrix m,
double  d 
)

Definition at line 7684 of file dSparse.cc.

References d, and min().

◆ min() [3/3]

◆ mul_trans()

OCTAVE_API Matrix mul_trans ( const Matrix a,
const SparseMatrix b 
)

Definition at line 7551 of file dSparse.cc.

References FULL_SPARSE_MUL_TRANS.

◆ mx_el_and() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_and ( const SparseMatrix ,
const double  
)

Definition at line 7927 of file dSparse.cc.

◆ mx_el_and() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_and ( const double ,
const SparseMatrix  
)

Definition at line 7930 of file dSparse.cc.

◆ mx_el_and() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_and ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7933 of file dSparse.cc.

◆ mx_el_eq() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_eq ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_eq() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_eq ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_eq() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_eq ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_ge() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_ge ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_ge() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_ge ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_ge() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_ge ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_gt() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_gt ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_gt() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_gt ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_gt() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_gt ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_le() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_le ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_le() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_le ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_le() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_le ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_lt() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_lt ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_lt() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_lt ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_lt() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_lt ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_ne() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_ne ( const SparseMatrix ,
const double  
)

Definition at line 7926 of file dSparse.cc.

◆ mx_el_ne() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_ne ( const double ,
const SparseMatrix  
)

Definition at line 7929 of file dSparse.cc.

◆ mx_el_ne() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_ne ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7932 of file dSparse.cc.

◆ mx_el_or() [1/3]

OCTAVE_API SparseBoolMatrix mx_el_or ( const SparseMatrix ,
const double  
)

Definition at line 7927 of file dSparse.cc.

◆ mx_el_or() [2/3]

OCTAVE_API SparseBoolMatrix mx_el_or ( const double ,
const SparseMatrix  
)

Definition at line 7930 of file dSparse.cc.

◆ mx_el_or() [3/3]

OCTAVE_API SparseBoolMatrix mx_el_or ( const SparseMatrix ,
const SparseMatrix  
)

Definition at line 7933 of file dSparse.cc.

◆ operator*() [1/9]

OCTAVE_API SparseMatrix operator* ( const SparseMatrix a,
const SparseMatrix b 
)

Definition at line 7539 of file dSparse.cc.

References SPARSE_SPARSE_MUL.

◆ operator*() [2/9]

OCTAVE_API Matrix operator* ( const Matrix a,
const SparseMatrix b 
)

Definition at line 7545 of file dSparse.cc.

References FULL_SPARSE_MUL.

◆ operator*() [3/9]

OCTAVE_API Matrix operator* ( const SparseMatrix a,
const Matrix b 
)

Definition at line 7557 of file dSparse.cc.

References SPARSE_FULL_MUL.

◆ operator*() [4/9]

OCTAVE_API SparseMatrix operator* ( const DiagMatrix ,
const SparseMatrix  
)

Definition at line 7571 of file dSparse.cc.

References a, and d.

◆ operator*() [5/9]

OCTAVE_API SparseMatrix operator* ( const SparseMatrix ,
const DiagMatrix  
)

Definition at line 7577 of file dSparse.cc.

References a, and d.

◆ operator*() [6/9]

OCTAVE_API SparseMatrix operator* ( const PermMatrix ,
const SparseMatrix  
)

Definition at line 7609 of file dSparse.cc.

References a, octinternal_do_mul_pm_sm(), and p.

◆ operator*() [7/9]

OCTAVE_API SparseMatrix operator* ( const SparseMatrix ,
const PermMatrix  
)

Definition at line 7615 of file dSparse.cc.

References a, octinternal_do_mul_sm_pm(), and p.

◆ operator*() [8/9]

SparseMatrix operator* ( const SparseMatrix x,
const double y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator*() [9/9]

SparseMatrix operator* ( const double x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator+() [1/6]

OCTAVE_API SparseMatrix operator+ ( const DiagMatrix ,
const SparseMatrix  
)

Definition at line 7583 of file dSparse.cc.

References a, and d.

◆ operator+() [2/6]

OCTAVE_API SparseMatrix operator+ ( const SparseMatrix ,
const DiagMatrix  
)

Definition at line 7595 of file dSparse.cc.

References a, and d.

◆ operator+() [3/6]

SparseMatrix operator+ ( const SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator+() [4/6]

Matrix operator+ ( const SparseMatrix x,
const double y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator+() [5/6]

Matrix operator+ ( const double x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator+() [6/6]

SparseMatrix operator+ ( const SparseMatrix x)
inline

Definition at line 499 of file dSparse.h.

◆ operator+=()

SparseMatrix operator+= ( SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator-() [1/6]

OCTAVE_API SparseMatrix operator- ( const DiagMatrix ,
const SparseMatrix  
)

Definition at line 7589 of file dSparse.cc.

References a, and d.

◆ operator-() [2/6]

OCTAVE_API SparseMatrix operator- ( const SparseMatrix ,
const DiagMatrix  
)

Definition at line 7601 of file dSparse.cc.

References a, and d.

◆ operator-() [3/6]

SparseMatrix operator- ( const SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator-() [4/6]

Matrix operator- ( const SparseMatrix x,
const double y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator-() [5/6]

SparseMatrix operator- ( const SparseMatrix x)
inline

Definition at line 499 of file dSparse.h.

◆ operator-() [6/6]

Matrix operator- ( const double x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator-=()

SparseMatrix operator-= ( SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator/() [1/2]

SparseMatrix operator/ ( const double x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ operator/() [2/2]

SparseMatrix operator/ ( const SparseMatrix x,
const double y 
)
inline

Definition at line 499 of file dSparse.h.

◆ product()

SparseMatrix product ( const SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ quotient()

SparseMatrix quotient ( const SparseMatrix x,
const SparseMatrix y 
)
inline

Definition at line 499 of file dSparse.h.

◆ real()

OCTAVE_API SparseMatrix real ( const SparseComplexMatrix a)

Definition at line 553 of file dSparse.cc.

References a, Sparse< T >::cidx(), Sparse< T >::data(), i, Sparse< T >::maybe_compress(), real(), and Sparse< T >::ridx().

Referenced by real().

◆ trans_mul()

OCTAVE_API Matrix trans_mul ( const SparseMatrix a,
const Matrix b 
)

Definition at line 7563 of file dSparse.cc.

References SPARSE_FULL_TRANS_MUL.