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
Macros | Functions | Variables
dSparse.cc File Reference
#include <cfloat>
#include <iostream>
#include <vector>
#include <functional>
#include "quit.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "f77-fcn.h"
#include "dRowVector.h"
#include "oct-locbuf.h"
#include "dDiagMatrix.h"
#include "CSparse.h"
#include "boolSparse.h"
#include "dSparse.h"
#include "functor.h"
#include "oct-spparms.h"
#include "SparsedbleLU.h"
#include "MatrixType.h"
#include "oct-sparse.h"
#include "sparse-util.h"
#include "SparsedbleCHOL.h"
#include "SparseQR.h"
#include "Sparse-op-defs.h"
#include "Sparse-diag-op-defs.h"
#include "Sparse-perm-op-defs.h"
#include "sparse-dmsolve.cc"
Include dependency graph for dSparse.cc:

Go to the source code of this file.

Macros

#define COL_EXPR
 
#define EMPTY_RETURN_CHECK(T)
 
#define ROW_EXPR
 

Functions

SparseMatrix atan2 (const double &x, const SparseMatrix &y)
 
SparseMatrix atan2 (const SparseMatrix &x, const double &y)
 
SparseMatrix atan2 (const SparseMatrix &x, const SparseMatrix &y)
 
F77_RET_T F77_FUNC (dgbtrf, DGBTRF)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type const
octave_idx_type const
octave_idx_type double const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgbtrs, DGBTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgbcon, DGBCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dpbtrf, DPBTRF)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dpbtrs, DPBTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dpbcon, DPBCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dptsv, DPTSV)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type double double
double const octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgtsv, DGTSV)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type double double
double const octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type double
double double double const
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgttrf, DGTTRF)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type double double
double const octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type double
double double double const
octave_idx_type
octave_idx_type &F77_RET_T
double double double double
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgttrs, DGTTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (zptsv, ZPTSV)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type double Complex
Complex const octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (zgtsv, ZGTSV)(const octave_idx_type &
 
SparseMatrix imag (const SparseComplexMatrix &a)
 
SparseMatrix max (double d, const SparseMatrix &m)
 
SparseMatrix max (const SparseMatrix &m, double d)
 
SparseMatrix max (const SparseMatrix &a, const SparseMatrix &b)
 
SparseMatrix min (double d, const SparseMatrix &m)
 
SparseMatrix min (const SparseMatrix &m, double d)
 
SparseMatrix min (const SparseMatrix &a, const SparseMatrix &b)
 
Matrix mul_trans (const Matrix &m, const SparseMatrix &a)
 
SparseBoolMatrix mx_el_and (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_and (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_and (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_eq (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_eq (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_eq (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_ge (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_ge (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_ge (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_gt (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_gt (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_gt (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_le (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_le (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_le (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_lt (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_lt (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_lt (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_ne (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_ne (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_ne (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseBoolMatrix mx_el_or (const SparseMatrix &m, const double &s)
 
SparseBoolMatrix mx_el_or (const double &s, const SparseMatrix &m)
 
SparseBoolMatrix mx_el_or (const SparseMatrix &m1, const SparseMatrix &m2)
 
SparseMatrix operator* (const SparseMatrix &m, const SparseMatrix &a)
 
Matrix operator* (const Matrix &m, const SparseMatrix &a)
 
Matrix operator* (const SparseMatrix &m, const Matrix &a)
 
SparseMatrix operator* (const DiagMatrix &d, const SparseMatrix &a)
 
SparseMatrix operator* (const SparseMatrix &a, const DiagMatrix &d)
 
SparseMatrix operator* (const PermMatrix &p, const SparseMatrix &a)
 
SparseMatrix operator* (const SparseMatrix &a, const PermMatrix &p)
 
SparseMatrix operator+ (const DiagMatrix &d, const SparseMatrix &a)
 
SparseMatrix operator+ (const SparseMatrix &a, const DiagMatrix &d)
 
SparseMatrix operator- (const DiagMatrix &d, const SparseMatrix &a)
 
SparseMatrix operator- (const SparseMatrix &a, const DiagMatrix &d)
 
std::ostream & operator<< (std::ostream &os, const SparseMatrix &a)
 
std::istream & operator>> (std::istream &is, SparseMatrix &a)
 
SparseMatrix real (const SparseComplexMatrix &a)
 
Matrix trans_mul (const SparseMatrix &m, const Matrix &a)
 

Variables

F77_RET_T const
octave_idx_type const
octave_idx_type const
octave_idx_type double const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type const
octave_idx_type const
octave_idx_type const
octave_idx_type const double
const octave_idx_type const
octave_idx_type double const
octave_idx_type
octave_idx_type
F77_CHAR_ARG_LEN_DECL
 

Macro Definition Documentation

#define COL_EXPR
Value:
double d = data (i); \
tmp[j] += d * d
F77_RET_T const double const double double * d

Referenced by SparseMatrix::sumsq().

#define EMPTY_RETURN_CHECK (   T)
Value:
if (nr == 0 || nc == 0) \
return T (nr, nc);

Definition at line 7644 of file dSparse.cc.

Referenced by max(), and min().

#define ROW_EXPR
Value:
double d = data (i); \
tmp[ridx (i)] += d * d
F77_RET_T const double const double double * d

Referenced by SparseMatrix::sumsq().

Function Documentation

SparseMatrix atan2 ( const double x,
const SparseMatrix y 
)
SparseMatrix atan2 ( const SparseMatrix x,
const double y 
)
SparseMatrix atan2 ( const SparseMatrix x,
const SparseMatrix y 
)
F77_RET_T F77_FUNC ( dgbtrf  ,
DGBTRF   
) const
F77_RET_T F77_FUNC ( dgbcon  ,
DGBCON   
)
F77_RET_T F77_FUNC ( dpbtrf  ,
DPBTRF   
)
F77_RET_T F77_FUNC ( dpbtrs  ,
DPBTRS   
)
F77_RET_T F77_FUNC ( dpbcon  ,
DPBCON   
)
F77_RET_T F77_FUNC ( dptsv  ,
DPTSV   
) const
F77_RET_T const octave_idx_type double double double const octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( dgtsv  ,
DGTSV   
) const
F77_RET_T F77_FUNC ( zptsv  ,
ZPTSV   
) const
F77_RET_T const octave_idx_type double Complex Complex const octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( zgtsv  ,
ZGTSV   
) const
SparseMatrix imag ( const SparseComplexMatrix a)
SparseMatrix max ( double  d,
const SparseMatrix m 
)
SparseMatrix max ( const SparseMatrix m,
double  d 
)

Definition at line 7856 of file dSparse.cc.

References max().

SparseMatrix max ( const SparseMatrix a,
const SparseMatrix b 
)
SparseMatrix min ( double  d,
const SparseMatrix m 
)
SparseMatrix min ( const SparseMatrix m,
double  d 
)

Definition at line 7706 of file dSparse.cc.

References min().

SparseMatrix min ( const SparseMatrix a,
const SparseMatrix b 
)
Matrix mul_trans ( const Matrix m,
const SparseMatrix a 
)

Definition at line 7573 of file dSparse.cc.

References FULL_SPARSE_MUL_TRANS.

SparseBoolMatrix mx_el_and ( const SparseMatrix m,
const double s 
)

Definition at line 7949 of file dSparse.cc.

SparseBoolMatrix mx_el_and ( const double s,
const SparseMatrix m 
)

Definition at line 7952 of file dSparse.cc.

SparseBoolMatrix mx_el_and ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7955 of file dSparse.cc.

SparseBoolMatrix mx_el_eq ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_eq ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_eq ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_ge ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_ge ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_ge ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_gt ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_gt ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_gt ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_le ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_le ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_le ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_lt ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_lt ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_lt ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_ne ( const SparseMatrix m,
const double s 
)

Definition at line 7948 of file dSparse.cc.

SparseBoolMatrix mx_el_ne ( const double s,
const SparseMatrix m 
)

Definition at line 7951 of file dSparse.cc.

SparseBoolMatrix mx_el_ne ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7954 of file dSparse.cc.

SparseBoolMatrix mx_el_or ( const SparseMatrix m,
const double s 
)

Definition at line 7949 of file dSparse.cc.

SparseBoolMatrix mx_el_or ( const double s,
const SparseMatrix m 
)

Definition at line 7952 of file dSparse.cc.

SparseBoolMatrix mx_el_or ( const SparseMatrix m1,
const SparseMatrix m2 
)

Definition at line 7955 of file dSparse.cc.

SparseMatrix operator* ( const SparseMatrix m,
const SparseMatrix a 
)

Definition at line 7561 of file dSparse.cc.

References SPARSE_SPARSE_MUL.

Matrix operator* ( const Matrix m,
const SparseMatrix a 
)

Definition at line 7567 of file dSparse.cc.

References FULL_SPARSE_MUL.

Matrix operator* ( const SparseMatrix m,
const Matrix a 
)

Definition at line 7579 of file dSparse.cc.

References SPARSE_FULL_MUL.

SparseMatrix operator* ( const DiagMatrix d,
const SparseMatrix a 
)

Definition at line 7593 of file dSparse.cc.

References d.

SparseMatrix operator* ( const SparseMatrix a,
const DiagMatrix d 
)

Definition at line 7599 of file dSparse.cc.

References d.

SparseMatrix operator* ( const PermMatrix p,
const SparseMatrix a 
)

Definition at line 7631 of file dSparse.cc.

References octinternal_do_mul_pm_sm().

SparseMatrix operator* ( const SparseMatrix a,
const PermMatrix p 
)

Definition at line 7637 of file dSparse.cc.

References octinternal_do_mul_sm_pm().

SparseMatrix operator+ ( const DiagMatrix d,
const SparseMatrix a 
)

Definition at line 7605 of file dSparse.cc.

References d.

SparseMatrix operator+ ( const SparseMatrix a,
const DiagMatrix d 
)

Definition at line 7617 of file dSparse.cc.

References d.

SparseMatrix operator- ( const DiagMatrix d,
const SparseMatrix a 
)

Definition at line 7611 of file dSparse.cc.

References d.

SparseMatrix operator- ( const SparseMatrix a,
const DiagMatrix d 
)

Definition at line 7623 of file dSparse.cc.

References d.

std::ostream& operator<< ( std::ostream &  os,
const SparseMatrix a 
)
std::istream& operator>> ( std::istream &  is,
SparseMatrix a 
)

Definition at line 7527 of file dSparse.cc.

SparseMatrix real ( const SparseComplexMatrix a)
Matrix trans_mul ( const SparseMatrix m,
const Matrix a 
)

Definition at line 7585 of file dSparse.cc.

References SPARSE_FULL_TRANS_MUL.

Variable Documentation

Definition at line 79 of file dSparse.cc.