GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
SparseMatrix Class Reference

#include "dSparse.h"

Inheritance diagram for SparseMatrix:
Collaboration diagram for SparseMatrix:

Public Types

typedef Matrix dense_matrix_type
 
typedef double element_type
 
typedef void(* solve_singularity_handler) (double rcond)
 

Public Member Functions

 SparseMatrix (void)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c)
 
 SparseMatrix (const dim_vector &dv, octave_idx_type nz=0)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c, double val)
 
 SparseMatrix (const SparseMatrix &a)
 
 SparseMatrix (const SparseMatrix &a, const dim_vector &dv)
 
 SparseMatrix (const MSparse< double > &a)
 
 SparseMatrix (const Sparse< double > &a)
 
 SparseMatrix (const SparseBoolMatrix &a)
 
 SparseMatrix (const Matrix &a)
 
 SparseMatrix (const NDArray &a)
 
 SparseMatrix (const Array< double > &a, const idx_vector &r, const idx_vector &c, octave_idx_type nr=-1, octave_idx_type nc=-1, bool sum_terms=true, octave_idx_type nzm=-1)
 
 SparseMatrix (const DiagMatrix &a)
 
 SparseMatrix (const PermMatrix &a)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
SparseMatrix abs (void) const
 
SparseBoolMatrix all (int dim=-1) const
 
bool all_elements_are_int_or_inf_or_nan (void) const
 
bool all_elements_are_zero (void) const
 
bool all_integers (double &max_val, double &min_val) const
 
SparseBoolMatrix any (int dim=-1) const
 
bool any_element_is_inf_or_nan (void) const
 
bool any_element_is_nan (void) const
 
bool any_element_is_negative (bool=false) const
 
bool any_element_not_one_or_zero (void) const
 
Array< doublearray_value (void) const
 
void assign (const idx_vector &i, const Sparse< double > &rhs)
 
void assign (const idx_vector &i, const idx_vector &j, const Sparse< double > &rhs)
 
size_t byte_size (void) const
 
octave_idx_type capacity (void) const
 Amount of storage for nonzero elements. More...
 
void change_capacity (octave_idx_type nz)
 
doublecheckelem (octave_idx_type n)
 
doublecheckelem (octave_idx_type i, octave_idx_type j)
 
doublecheckelem (const Array< octave_idx_type > &ra_idx)
 
double checkelem (octave_idx_type n) const
 
double checkelem (octave_idx_type i, octave_idx_type j) const
 
double checkelem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_typecidx (void)
 
octave_idx_typecidx (octave_idx_type i)
 
octave_idx_type cidx (octave_idx_type i) const
 
octave_idx_typecidx (void) const
 
octave_idx_type cols (void) const
 
ColumnVector column (octave_idx_type i) const
 
octave_idx_type columns (void) const
 
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
SparseMatrix concat (const SparseMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
SparseComplexMatrix concat (const SparseComplexMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
SparseMatrix cumprod (int dim=-1) const
 
SparseMatrix cumsum (int dim=-1) const
 
doubledata (void)
 
doubledata (octave_idx_type i)
 
double data (octave_idx_type i) const
 
doubledata (void) const
 
void delete_elements (const idx_vector &i)
 
void delete_elements (int dim, const idx_vector &i)
 
void delete_elements (const idx_vector &i, const idx_vector &j)
 
DET determinant (void) const
 
DET determinant (octave_idx_type &info) const
 
DET determinant (octave_idx_type &info, double &rcond, bool calc_cond=true) const
 
SparseMatrix diag (octave_idx_type k=0) const
 
octave_idx_type dim1 (void) const
 
octave_idx_type dim2 (void) const
 
dim_vector dims (void) const
 
doubleelem (octave_idx_type n)
 
doubleelem (octave_idx_type i, octave_idx_type j)
 
doubleelem (const Array< octave_idx_type > &ra_idx)
 
double elem (octave_idx_type n) const
 
double elem (octave_idx_type i, octave_idx_type j) const
 
double elem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_type get_col_index (octave_idx_type k)
 
octave_idx_type get_row_index (octave_idx_type k)
 
SparseMatrix hermitian (void) const
 
Sparse< doubleindex (const idx_vector &i, bool resize_ok=false) const
 
Sparse< doubleindex (const idx_vector &i, const idx_vector &j, bool resize_ok=false) const
 
bool indices_ok (void) const
 
MSparse< double > & insert (const Sparse< double > &a, octave_idx_type r, octave_idx_type c)
 
MSparse< double > & insert (const Sparse< double > &a, const Array< octave_idx_type > &indx)
 
SparseMatrixinsert (const SparseMatrix &a, octave_idx_type r, octave_idx_type c)
 
SparseMatrixinsert (const SparseMatrix &a, const Array< octave_idx_type > &indx)
 
SparseMatrix inverse (void) const
 
SparseMatrix inverse (MatrixType &mattype) const
 
SparseMatrix inverse (MatrixType &mattype, octave_idx_type &info) const
 
SparseMatrix inverse (MatrixType &mattype, octave_idx_type &info, double &rcond, bool force=false, bool calc_cond=true) const
 
SparseMatrix ipermute (const Array< octave_idx_type > &vec) const
 
bool is_empty (void) const
 
bool is_square (void) const
 
bool is_symmetric (void) const
 
bool isempty (void) const
 
bool issquare (void) const
 
bool issymmetric (void) const
 
octave_idx_type length (void) const
 
MSparse< U > map (U(&fcn)(double)) const
 
MSparse< U > map (U(&fcn)(const double &)) const
 
Sparse< U > map (F fcn) const
 
Matrix matrix_value (void) const
 
SparseMatrix max (int dim=-1) const
 
SparseMatrix max (Array< octave_idx_type > &index, int dim=-1) const
 
Sparse< doublemaybe_compress (bool remove_zeros=false)
 
void * mex_get_data (void) const
 
octave_idx_typemex_get_ir (void) const
 
octave_idx_typemex_get_jc (void) const
 
SparseMatrix min (int dim=-1) const
 
SparseMatrix min (Array< octave_idx_type > &index, int dim=-1) const
 
octave_idx_type ndims (void) const
 
octave_idx_type nelem (void) const
 
octave_idx_type nnz (void) const
 Actual number of nonzero terms. More...
 
octave_idx_type numel (void) const
 
octave_idx_type nzmax (void) const
 Amount of storage for nonzero elements. More...
 
SparseBoolMatrix operator! (void) const
 
bool operator!= (const SparseMatrix &a) const
 
doubleoperator() (octave_idx_type n)
 
doubleoperator() (octave_idx_type i, octave_idx_type j)
 
doubleoperator() (const Array< octave_idx_type > &ra_idx)
 
double operator() (octave_idx_type n) const
 
double operator() (octave_idx_type i, octave_idx_type j) const
 
double operator() (const Array< octave_idx_type > &ra_idx) const
 
SparseMatrixoperator= (const SparseMatrix &a)
 
bool operator== (const SparseMatrix &a) const
 
SparseMatrix permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
SparseMatrix prod (int dim=-1) const
 
OCTAVE_NORETURN double range_error (const char *fcn, octave_idx_type n) const
 
OCTAVE_NORETURN doublerange_error (const char *fcn, octave_idx_type n)
 
OCTAVE_NORETURN double range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
 
OCTAVE_NORETURN doublerange_error (const char *fcn, octave_idx_type i, octave_idx_type j)
 
OCTAVE_NORETURN double range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN doublerange_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
SparseMatrix reshape (const dim_vector &new_dims) const
 
void resize (octave_idx_type r, octave_idx_type c)
 
void resize (const dim_vector &dv)
 
void resize1 (octave_idx_type n)
 
octave_idx_typeridx (void)
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_typeridx (void) const
 
RowVector row (octave_idx_type i) const
 
octave_idx_type rows (void) const
 
Matrix solve (MatrixType &typ, const Matrix &b) const
 
Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info) const
 
Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond) const
 
Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b) const
 
ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info) const
 
ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
SparseMatrix solve (MatrixType &typ, const SparseMatrix &b) const
 
SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info) const
 
SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond) const
 
SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b) const
 
SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info) const
 
SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallabck=true) const
 
ColumnVector solve (MatrixType &typ, const ColumnVector &b) const
 
ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info) const
 
ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info, double &rcond) const
 
ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b) const
 
ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info) const
 
ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info, double &rcond) const
 
ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
Matrix solve (const Matrix &b) const
 
Matrix solve (const Matrix &b, octave_idx_type &info) const
 
Matrix solve (const Matrix &b, octave_idx_type &info, double &rcond) const
 
Matrix solve (const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
ComplexMatrix solve (const ComplexMatrix &b) const
 
ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info) const
 
ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
SparseMatrix solve (const SparseMatrix &b) const
 
SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info) const
 
SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info, double &rcond) const
 
SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
SparseComplexMatrix solve (const SparseComplexMatrix &b) const
 
SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info) const
 
SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
ColumnVector solve (const ColumnVector &b) const
 
ColumnVector solve (const ColumnVector &b, octave_idx_type &info) const
 
ColumnVector solve (const ColumnVector &b, octave_idx_type &info, double &rcond) const
 
ColumnVector solve (const ColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
ComplexColumnVector solve (const ComplexColumnVector &b) const
 
ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info) const
 
ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info, double &rcond) const
 
ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
Sparse< doublesort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Sparse< doublesort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
SparseMatrix squeeze (void) const
 
SparseMatrix sum (int dim=-1) const
 
SparseMatrix sumsq (int dim=-1) const
 
bool test (F fcn) const
 
bool test_all (F fcn) const
 
bool test_all (bool(&fcn)(double)) const
 
bool test_all (bool(&fcn)(const double &)) const
 
bool test_any (F fcn) const
 
bool test_any (bool(&fcn)(double)) const
 
bool test_any (bool(&fcn)(const double &)) const
 
bool too_large_for_float (void) const
 
SparseMatrix transpose (void) const
 
octave_idx_typexcidx (void)
 
octave_idx_typexcidx (octave_idx_type i)
 
doublexdata (void)
 
doublexdata (octave_idx_type i)
 
doublexelem (octave_idx_type n)
 
double xelem (octave_idx_type n) const
 
doublexelem (octave_idx_type i, octave_idx_type j)
 
double xelem (octave_idx_type i, octave_idx_type j) const
 
doublexelem (const Array< octave_idx_type > &ra_idx)
 
double xelem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_typexridx (void)
 
octave_idx_typexridx (octave_idx_type i)
 

Static Public Member Functions

static Sparse< doublecat (int dim, octave_idx_type n, const Sparse< double > *sparse_list)
 

Public Attributes

dim_vector dimensions
 
Sparse< double >::SparseRep * rep
 

Protected Member Functions

void make_unique (void)
 

Private Member Functions

Matrix bsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix bsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix bsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix bsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix dinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const
 
Matrix dsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix dsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix dsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix dsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
void * factorize (octave_idx_type &err, double &rcond, Matrix &Control, Matrix &Info, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
Matrix fsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix fsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix fsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix fsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
Matrix ltsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix ltsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix ltsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix ltsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix tinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const
 
Matrix trisolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix trisolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix trisolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix trisolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
Matrix utsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
ComplexMatrix utsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseMatrix utsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 
SparseComplexMatrix utsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const
 

Friends

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

Detailed Description

Definition at line 44 of file dSparse.h.

Member Typedef Documentation

◆ dense_matrix_type

Definition at line 51 of file dSparse.h.

◆ element_type

typedef double Sparse< double >::element_type
inherited

Definition at line 51 of file Sparse.h.

◆ solve_singularity_handler

typedef void(* SparseMatrix::solve_singularity_handler) (double rcond)

Definition at line 53 of file dSparse.h.

Constructor & Destructor Documentation

◆ SparseMatrix() [1/15]

SparseMatrix::SparseMatrix ( void  )
inline

Definition at line 55 of file dSparse.h.

Referenced by bsolve(), dsolve(), fsolve(), ltsolve(), max(), min(), tinverse(), trisolve(), and utsolve().

◆ SparseMatrix() [2/15]

SparseMatrix::SparseMatrix ( octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 57 of file dSparse.h.

◆ SparseMatrix() [3/15]

SparseMatrix::SparseMatrix ( const dim_vector dv,
octave_idx_type  nz = 0 
)
inline

Definition at line 60 of file dSparse.h.

◆ SparseMatrix() [4/15]

SparseMatrix::SparseMatrix ( octave_idx_type  r,
octave_idx_type  c,
double  val 
)
inlineexplicit

Definition at line 63 of file dSparse.h.

◆ SparseMatrix() [5/15]

SparseMatrix::SparseMatrix ( const SparseMatrix a)
inline

Definition at line 66 of file dSparse.h.

◆ SparseMatrix() [6/15]

SparseMatrix::SparseMatrix ( const SparseMatrix a,
const dim_vector dv 
)
inline

Definition at line 68 of file dSparse.h.

◆ SparseMatrix() [7/15]

SparseMatrix::SparseMatrix ( const MSparse< double > &  a)
inline

Definition at line 71 of file dSparse.h.

◆ SparseMatrix() [8/15]

SparseMatrix::SparseMatrix ( const Sparse< double > &  a)
inline

Definition at line 73 of file dSparse.h.

◆ SparseMatrix() [9/15]

SparseMatrix::SparseMatrix ( const SparseBoolMatrix a)
explicit

◆ SparseMatrix() [10/15]

SparseMatrix::SparseMatrix ( const Matrix a)
inlineexplicit

Definition at line 77 of file dSparse.h.

◆ SparseMatrix() [11/15]

SparseMatrix::SparseMatrix ( const NDArray a)
inlineexplicit

Definition at line 79 of file dSparse.h.

◆ SparseMatrix() [12/15]

SparseMatrix::SparseMatrix ( const Array< double > &  a,
const idx_vector r,
const idx_vector c,
octave_idx_type  nr = -1,
octave_idx_type  nc = -1,
bool  sum_terms = true,
octave_idx_type  nzm = -1 
)
inline

Definition at line 81 of file dSparse.h.

◆ SparseMatrix() [13/15]

SparseMatrix::SparseMatrix ( const DiagMatrix a)
explicit

◆ SparseMatrix() [14/15]

SparseMatrix::SparseMatrix ( const PermMatrix a)
inlineexplicit

Definition at line 89 of file dSparse.h.

◆ SparseMatrix() [15/15]

SparseMatrix::SparseMatrix ( octave_idx_type  r,
octave_idx_type  c,
octave_idx_type  num_nz 
)
inline

Definition at line 91 of file dSparse.h.

Member Function Documentation

◆ abs()

SparseMatrix SparseMatrix::abs ( void  ) const

Definition at line 7459 of file dSparse.cc.

References i, Sparse< double >::nnz(), and retval.

◆ all()

SparseBoolMatrix SparseMatrix::all ( int  dim = -1) const

Definition at line 7399 of file dSparse.cc.

References SPARSE_ALL_OP.

◆ all_elements_are_int_or_inf_or_nan()

bool SparseMatrix::all_elements_are_int_or_inf_or_nan ( void  ) const

◆ all_elements_are_zero()

bool SparseMatrix::all_elements_are_zero ( void  ) const

Definition at line 7297 of file dSparse.cc.

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

◆ all_integers()

bool SparseMatrix::all_integers ( double max_val,
double min_val 
) const

◆ any()

SparseBoolMatrix SparseMatrix::any ( int  dim = -1) const

Definition at line 7405 of file dSparse.cc.

References SPARSE_ANY_OP.

◆ any_element_is_inf_or_nan()

bool SparseMatrix::any_element_is_inf_or_nan ( void  ) const

◆ any_element_is_nan()

bool SparseMatrix::any_element_is_nan ( void  ) const

◆ any_element_is_negative()

bool SparseMatrix::any_element_is_negative ( bool  neg_zero = false) const

Definition at line 7231 of file dSparse.cc.

References Sparse< double >::data(), i, lo_ieee_signbit, and Sparse< double >::nnz().

◆ any_element_not_one_or_zero()

bool SparseMatrix::any_element_not_one_or_zero ( void  ) const

◆ array_value()

Array< double > Sparse< double >::array_value ( void  ) const
inherited

Definition at line 2675 of file Sparse.cc.

◆ assign() [1/2]

void Sparse< double >::assign ( const idx_vector i,
const Sparse< double > &  rhs 
)
inherited

Definition at line 1824 of file Sparse.cc.

◆ assign() [2/2]

void Sparse< double >::assign ( const idx_vector i,
const idx_vector j,
const Sparse< double > &  rhs 
)
inherited

Definition at line 1976 of file Sparse.cc.

◆ bsolve() [1/4]

◆ bsolve() [2/4]

◆ bsolve() [3/4]

◆ bsolve() [4/4]

◆ byte_size()

size_t Sparse< double >::byte_size ( void  ) const
inlineinherited

Definition at line 271 of file Sparse.h.

◆ capacity()

octave_idx_type Sparse< double >::capacity ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

Synonymous with nzmax().

Definition at line 237 of file Sparse.h.

◆ cat()

Sparse< double > Sparse< double >::cat ( int  dim,
octave_idx_type  n,
const Sparse< double > *  sparse_list 
)
staticinherited

Definition at line 2577 of file Sparse.cc.

◆ change_capacity()

void Sparse< double >::change_capacity ( octave_idx_type  nz)
inlineinherited

Definition at line 462 of file Sparse.h.

◆ checkelem() [1/6]

double & Sparse< double >::checkelem ( octave_idx_type  n)
inlineinherited

Definition at line 330 of file Sparse.h.

◆ checkelem() [2/6]

double & Sparse< double >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 342 of file Sparse.h.

◆ checkelem() [3/6]

double & Sparse< double >::checkelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 353 of file Sparse.h.

◆ checkelem() [4/6]

double Sparse< double >::checkelem ( octave_idx_type  n) const
inlineinherited

Definition at line 393 of file Sparse.h.

◆ checkelem() [5/6]

double Sparse< double >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 401 of file Sparse.h.

◆ checkelem() [6/6]

double Sparse< double >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 409 of file Sparse.h.

◆ cidx() [1/4]

◆ cidx() [2/4]

octave_idx_type& Sparse< double >::cidx ( octave_idx_type  i)
inlineinherited

Definition at line 509 of file Sparse.h.

◆ cidx() [3/4]

octave_idx_type Sparse< double >::cidx ( octave_idx_type  i) const
inlineinherited

Definition at line 517 of file Sparse.h.

◆ cidx() [4/4]

octave_idx_type* Sparse< double >::cidx ( void  ) const
inlineinherited

Definition at line 519 of file Sparse.h.

◆ cols()

◆ column()

ColumnVector SparseMatrix::column ( octave_idx_type  i) const

◆ columns()

octave_idx_type Sparse< double >::columns ( void  ) const
inlineinherited

Definition at line 260 of file Sparse.h.

Referenced by row().

◆ compute_index()

octave_idx_type Sparse< double >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited

Definition at line 713 of file Sparse.cc.

◆ concat() [1/2]

SparseMatrix SparseMatrix::concat ( const SparseMatrix rb,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 533 of file dSparse.cc.

References Sparse< T >::cols(), insert(), ra_idx, and Sparse< T >::rows().

◆ concat() [2/2]

SparseComplexMatrix SparseMatrix::concat ( const SparseComplexMatrix rb,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 543 of file dSparse.cc.

References Sparse< T >::cols(), ra_idx, retval, and Sparse< T >::rows().

◆ cumprod()

SparseMatrix SparseMatrix::cumprod ( int  dim = -1) const

Definition at line 7411 of file dSparse.cc.

References SPARSE_CUMPROD.

◆ cumsum()

SparseMatrix SparseMatrix::cumsum ( int  dim = -1) const

Definition at line 7417 of file dSparse.cc.

References SPARSE_CUMSUM.

◆ data() [1/4]

◆ data() [2/4]

double & Sparse< double >::data ( octave_idx_type  i)
inlineinherited

Definition at line 487 of file Sparse.h.

◆ data() [3/4]

double Sparse< double >::data ( octave_idx_type  i) const
inlineinherited

Definition at line 491 of file Sparse.h.

◆ data() [4/4]

double * Sparse< double >::data ( void  ) const
inlineinherited

Definition at line 493 of file Sparse.h.

◆ delete_elements() [1/3]

void Sparse< double >::delete_elements ( const idx_vector i)
inherited

Definition at line 1148 of file Sparse.cc.

◆ delete_elements() [2/3]

void Sparse< double >::delete_elements ( int  dim,
const idx_vector i 
)
inherited

Definition at line 1368 of file Sparse.cc.

◆ delete_elements() [3/3]

void Sparse< double >::delete_elements ( const idx_vector i,
const idx_vector j 
)
inherited

Definition at line 1249 of file Sparse.cc.

◆ determinant() [1/3]

DET SparseMatrix::determinant ( void  ) const

Definition at line 992 of file dSparse.cc.

Referenced by determinant(), and Fdet().

◆ determinant() [2/3]

DET SparseMatrix::determinant ( octave_idx_type info) const

Definition at line 1000 of file dSparse.cc.

References determinant().

◆ determinant() [3/3]

◆ diag()

SparseMatrix SparseMatrix::diag ( octave_idx_type  k = 0) const

Definition at line 7472 of file dSparse.cc.

References MSparse< T >::diag(), and k.

◆ dim1()

octave_idx_type Sparse< double >::dim1 ( void  ) const
inlineinherited

Definition at line 255 of file Sparse.h.

◆ dim2()

octave_idx_type Sparse< double >::dim2 ( void  ) const
inlineinherited

Definition at line 256 of file Sparse.h.

◆ dims()

dim_vector Sparse< double >::dims ( void  ) const
inlineinherited

Definition at line 278 of file Sparse.h.

Referenced by max(), and min().

◆ dinverse()

SparseMatrix SparseMatrix::dinverse ( MatrixType mattype,
octave_idx_type info,
double rcond,
const bool  force = false,
const bool  calccond = true 
) const
private

◆ dsolve() [1/4]

◆ dsolve() [2/4]

◆ dsolve() [3/4]

◆ dsolve() [4/4]

◆ elem() [1/6]

double & Sparse< double >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 363 of file Sparse.h.

Referenced by max(), and min().

◆ elem() [2/6]

double & Sparse< double >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 369 of file Sparse.h.

◆ elem() [3/6]

double & Sparse< double >::elem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 375 of file Sparse.h.

◆ elem() [4/6]

double Sparse< double >::elem ( octave_idx_type  n) const
inlineinherited

Definition at line 419 of file Sparse.h.

◆ elem() [5/6]

double Sparse< double >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 421 of file Sparse.h.

◆ elem() [6/6]

double Sparse< double >::elem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 423 of file Sparse.h.

◆ factorize()

◆ fsolve() [1/4]

◆ fsolve() [2/4]

◆ fsolve() [3/4]

◆ fsolve() [4/4]

◆ get_col_index()

octave_idx_type Sparse< double >::get_col_index ( octave_idx_type  k)
inlineinherited

Definition at line 263 of file Sparse.h.

◆ get_row_index()

octave_idx_type Sparse< double >::get_row_index ( octave_idx_type  k)
inlineinherited

Definition at line 262 of file Sparse.h.

◆ hermitian()

SparseMatrix SparseMatrix::hermitian ( void  ) const
inline

Definition at line 134 of file dSparse.h.

References transpose().

Referenced by octave::math::sparse_chol< chol_type >::inverse().

◆ index() [1/2]

Sparse< double > Sparse< double >::index ( const idx_vector i,
bool  resize_ok = false 
) const
inherited

Definition at line 1380 of file Sparse.cc.

◆ index() [2/2]

Sparse< double > Sparse< double >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok = false 
) const
inherited

Definition at line 1580 of file Sparse.cc.

◆ indices_ok()

bool Sparse< double >::indices_ok ( void  ) const
inlineinherited

Definition at line 661 of file Sparse.h.

◆ insert() [1/4]

MSparse<double >& MSparse< double >::insert ( const Sparse< double > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inlineinherited

Definition at line 80 of file MSparse.h.

◆ insert() [2/4]

MSparse<double >& MSparse< double >::insert ( const Sparse< double > &  a,
const Array< octave_idx_type > &  indx 
)
inlineinherited

Definition at line 86 of file MSparse.h.

◆ insert() [3/4]

SparseMatrix & SparseMatrix::insert ( const SparseMatrix a,
octave_idx_type  r,
octave_idx_type  c 
)

Definition at line 170 of file dSparse.cc.

References a, c, and MSparse< T >::insert().

Referenced by concat().

◆ insert() [4/4]

SparseMatrix & SparseMatrix::insert ( const SparseMatrix a,
const Array< octave_idx_type > &  indx 
)

Definition at line 178 of file dSparse.cc.

References a, and MSparse< T >::insert().

◆ inverse() [1/4]

SparseMatrix SparseMatrix::inverse ( void  ) const

Definition at line 602 of file dSparse.cc.

Referenced by Finv(), and inverse().

◆ inverse() [2/4]

SparseMatrix SparseMatrix::inverse ( MatrixType mattype) const

Definition at line 611 of file dSparse.cc.

References inverse().

◆ inverse() [3/4]

SparseMatrix SparseMatrix::inverse ( MatrixType mattype,
octave_idx_type info 
) const

Definition at line 619 of file dSparse.cc.

References inverse().

◆ inverse() [4/4]

◆ ipermute()

SparseMatrix SparseMatrix::ipermute ( const Array< octave_idx_type > &  vec) const

Definition at line 7531 of file dSparse.cc.

References MSparse< T >::ipermute().

◆ is_empty()

bool Sparse< double >::is_empty ( void  ) const
inlineinherited

Definition at line 481 of file Sparse.h.

◆ is_square()

bool Sparse< double >::is_square ( void  ) const
inlineinherited

Definition at line 475 of file Sparse.h.

◆ is_symmetric()

bool SparseMatrix::is_symmetric ( void  ) const
inline

Definition at line 106 of file dSparse.h.

◆ isempty()

bool Sparse< double >::isempty ( void  ) const
inlineinherited

Definition at line 478 of file Sparse.h.

◆ issquare()

bool Sparse< double >::issquare ( void  ) const
inlineinherited

Definition at line 472 of file Sparse.h.

◆ issymmetric()

bool SparseMatrix::issymmetric ( void  ) const

◆ length()

octave_idx_type Sparse< double >::length ( void  ) const
inlineinherited

Definition at line 253 of file Sparse.h.

◆ ltsolve() [1/4]

◆ ltsolve() [2/4]

◆ ltsolve() [3/4]

◆ ltsolve() [4/4]

◆ make_unique()

void Sparse< double >::make_unique ( void  )
inlineprotectedinherited

Definition at line 137 of file Sparse.h.

◆ map() [1/3]

MSparse<U> MSparse< double >::map ( U(&)(double fcn) const
inlineinherited

Definition at line 113 of file MSparse.h.

◆ map() [2/3]

MSparse<U> MSparse< double >::map ( U(&)(const double &)  fcn) const
inlineinherited

Definition at line 118 of file MSparse.h.

◆ map() [3/3]

Sparse<U> Sparse< double >::map ( F  fcn) const
inlineinherited

Definition at line 597 of file Sparse.h.

◆ matrix_value()

◆ max() [1/2]

SparseMatrix SparseMatrix::max ( int  dim = -1) const

Definition at line 185 of file dSparse.cc.

◆ max() [2/2]

◆ maybe_compress()

Sparse<double > Sparse< double >::maybe_compress ( bool  remove_zeros = false)
inlineinherited

Definition at line 438 of file Sparse.h.

◆ mex_get_data()

void* Sparse< double >::mex_get_data ( void  ) const
inlineinherited

Definition at line 542 of file Sparse.h.

◆ mex_get_ir()

octave_idx_type* Sparse< double >::mex_get_ir ( void  ) const
inlineinherited

Definition at line 544 of file Sparse.h.

◆ mex_get_jc()

octave_idx_type* Sparse< double >::mex_get_jc ( void  ) const
inlineinherited

Definition at line 549 of file Sparse.h.

◆ min() [1/2]

SparseMatrix SparseMatrix::min ( int  dim = -1) const

Definition at line 336 of file dSparse.cc.

◆ min() [2/2]

◆ ndims()

octave_idx_type Sparse< double >::ndims ( void  ) const
inlineinherited

Definition at line 521 of file Sparse.h.

◆ nelem()

octave_idx_type Sparse< double >::nelem ( void  ) const
inlineinherited

Definition at line 250 of file Sparse.h.

◆ nnz()

◆ numel()

octave_idx_type Sparse< double >::numel ( void  ) const
inlineinherited

Definition at line 244 of file Sparse.h.

◆ nzmax()

octave_idx_type Sparse< double >::nzmax ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

This may differ from the actual number of elements, see nnz().

Definition at line 232 of file Sparse.h.

◆ operator!()

◆ operator!=()

bool SparseMatrix::operator!= ( const SparseMatrix a) const

Definition at line 124 of file dSparse.cc.

References a.

◆ operator()() [1/6]

double & Sparse< double >::operator() ( octave_idx_type  n)
inlineinherited

Definition at line 378 of file Sparse.h.

◆ operator()() [2/6]

double & Sparse< double >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 383 of file Sparse.h.

◆ operator()() [3/6]

double & Sparse< double >::operator() ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 388 of file Sparse.h.

◆ operator()() [4/6]

double Sparse< double >::operator() ( octave_idx_type  n) const
inlineinherited

Definition at line 426 of file Sparse.h.

◆ operator()() [5/6]

double Sparse< double >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 428 of file Sparse.h.

◆ operator()() [6/6]

double Sparse< double >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 433 of file Sparse.h.

◆ operator=()

SparseMatrix& SparseMatrix::operator= ( const SparseMatrix a)
inline

Definition at line 94 of file dSparse.h.

References a, and MSparse< T >::operator=().

◆ operator==()

◆ permute()

SparseMatrix SparseMatrix::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const

Definition at line 7525 of file dSparse.cc.

References MSparse< T >::permute().

◆ print_info()

void Sparse< double >::print_info ( std::ostream &  os,
const std::string prefix 
) const
inherited

Definition at line 3000 of file Sparse.cc.

◆ prod()

SparseMatrix SparseMatrix::prod ( int  dim = -1) const

Definition at line 7423 of file dSparse.cc.

References Sparse< double >::cidx(), prod(), Sparse< double >::rows(), SPARSE_REDUCTION_OP, and transpose().

Referenced by prod().

◆ range_error() [1/6]

double Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  n 
) const
inherited

Definition at line 736 of file Sparse.cc.

◆ range_error() [2/6]

double & Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  n 
)
inherited

Definition at line 743 of file Sparse.cc.

◆ range_error() [3/6]

double Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
) const
inherited

Definition at line 750 of file Sparse.cc.

◆ range_error() [4/6]

double & Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
)
inherited

Definition at line 758 of file Sparse.cc.

◆ range_error() [5/6]

double Sparse< double >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
) const
inherited

Definition at line 765 of file Sparse.cc.

◆ range_error() [6/6]

double & Sparse< double >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
)
inherited

Definition at line 789 of file Sparse.cc.

◆ reshape()

SparseMatrix SparseMatrix::reshape ( const dim_vector new_dims) const

Definition at line 7519 of file dSparse.cc.

References MSparse< T >::reshape().

◆ resize() [1/2]

void Sparse< double >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 950 of file Sparse.cc.

◆ resize() [2/2]

void Sparse< double >::resize ( const dim_vector dv)
inherited

Definition at line 938 of file Sparse.cc.

◆ resize1()

void Sparse< double >::resize1 ( octave_idx_type  n)
inherited

Definition at line 919 of file Sparse.cc.

◆ ridx() [1/4]

◆ ridx() [2/4]

octave_idx_type& Sparse< double >::ridx ( octave_idx_type  i)
inlineinherited

Definition at line 496 of file Sparse.h.

◆ ridx() [3/4]

octave_idx_type Sparse< double >::ridx ( octave_idx_type  i) const
inlineinherited

Definition at line 504 of file Sparse.h.

◆ ridx() [4/4]

octave_idx_type* Sparse< double >::ridx ( void  ) const
inlineinherited

Definition at line 506 of file Sparse.h.

◆ row()

◆ rows()

◆ solve() [1/48]

Matrix SparseMatrix::solve ( MatrixType typ,
const Matrix b 
) const

Definition at line 6725 of file dSparse.cc.

References b.

Referenced by fsolve(), solve(), and xdiv().

◆ solve() [2/48]

Matrix SparseMatrix::solve ( MatrixType typ,
const Matrix b,
octave_idx_type info 
) const

Definition at line 6733 of file dSparse.cc.

References b, and solve().

◆ solve() [3/48]

Matrix SparseMatrix::solve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 6741 of file dSparse.cc.

References b, and solve().

◆ solve() [4/48]

◆ solve() [5/48]

ComplexMatrix SparseMatrix::solve ( MatrixType typ,
const ComplexMatrix b 
) const

Definition at line 6855 of file dSparse.cc.

References b, and solve().

◆ solve() [6/48]

ComplexMatrix SparseMatrix::solve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info 
) const

Definition at line 6863 of file dSparse.cc.

References b, and solve().

◆ solve() [7/48]

ComplexMatrix SparseMatrix::solve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 6871 of file dSparse.cc.

References b, and solve().

◆ solve() [8/48]

◆ solve() [9/48]

SparseMatrix SparseMatrix::solve ( MatrixType typ,
const SparseMatrix b 
) const

Definition at line 6790 of file dSparse.cc.

References b, and solve().

◆ solve() [10/48]

SparseMatrix SparseMatrix::solve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info 
) const

Definition at line 6798 of file dSparse.cc.

References b, and solve().

◆ solve() [11/48]

SparseMatrix SparseMatrix::solve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 6806 of file dSparse.cc.

References b, and solve().

◆ solve() [12/48]

◆ solve() [13/48]

SparseComplexMatrix SparseMatrix::solve ( MatrixType typ,
const SparseComplexMatrix b 
) const

Definition at line 6920 of file dSparse.cc.

References b, and solve().

◆ solve() [14/48]

SparseComplexMatrix SparseMatrix::solve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info 
) const

Definition at line 6928 of file dSparse.cc.

References b, and solve().

◆ solve() [15/48]

SparseComplexMatrix SparseMatrix::solve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 6936 of file dSparse.cc.

References b, and solve().

◆ solve() [16/48]

◆ solve() [17/48]

ColumnVector SparseMatrix::solve ( MatrixType typ,
const ColumnVector b 
) const

Definition at line 6985 of file dSparse.cc.

References b, and solve().

◆ solve() [18/48]

ColumnVector SparseMatrix::solve ( MatrixType typ,
const ColumnVector b,
octave_idx_type info 
) const

Definition at line 6992 of file dSparse.cc.

References b, and solve().

◆ solve() [19/48]

ColumnVector SparseMatrix::solve ( MatrixType typ,
const ColumnVector b,
octave_idx_type info,
double rcond 
) const

Definition at line 7000 of file dSparse.cc.

References b, and solve().

◆ solve() [20/48]

ColumnVector SparseMatrix::solve ( MatrixType typ,
const ColumnVector b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7007 of file dSparse.cc.

References b, Matrix::column(), solve(), and tmp.

◆ solve() [21/48]

ComplexColumnVector SparseMatrix::solve ( MatrixType typ,
const ComplexColumnVector b 
) const

Definition at line 7017 of file dSparse.cc.

References b, and solve().

◆ solve() [22/48]

ComplexColumnVector SparseMatrix::solve ( MatrixType typ,
const ComplexColumnVector b,
octave_idx_type info 
) const

Definition at line 7025 of file dSparse.cc.

References b, and solve().

◆ solve() [23/48]

ComplexColumnVector SparseMatrix::solve ( MatrixType typ,
const ComplexColumnVector b,
octave_idx_type info,
double rcond 
) const

Definition at line 7033 of file dSparse.cc.

References b, and solve().

◆ solve() [24/48]

ComplexColumnVector SparseMatrix::solve ( MatrixType typ,
const ComplexColumnVector b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7041 of file dSparse.cc.

References b, Matrix::column(), solve(), and tmp.

◆ solve() [25/48]

Matrix SparseMatrix::solve ( const Matrix b) const

Definition at line 7051 of file dSparse.cc.

References b, and solve().

◆ solve() [26/48]

Matrix SparseMatrix::solve ( const Matrix b,
octave_idx_type info 
) const

Definition at line 7059 of file dSparse.cc.

References b, and solve().

◆ solve() [27/48]

Matrix SparseMatrix::solve ( const Matrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 7066 of file dSparse.cc.

References b, and solve().

◆ solve() [28/48]

Matrix SparseMatrix::solve ( const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7073 of file dSparse.cc.

References b, err, and solve().

◆ solve() [29/48]

ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b) const

◆ solve() [30/48]

ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b,
octave_idx_type info 
) const

Definition at line 7112 of file dSparse.cc.

References b, and solve().

◆ solve() [31/48]

ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 7119 of file dSparse.cc.

References b, and solve().

◆ solve() [32/48]

ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7126 of file dSparse.cc.

References b, err, and solve().

◆ solve() [33/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b) const

Definition at line 7081 of file dSparse.cc.

References b, and solve().

◆ solve() [34/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b,
octave_idx_type info 
) const

Definition at line 7089 of file dSparse.cc.

References b, and solve().

◆ solve() [35/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 7097 of file dSparse.cc.

References b, and solve().

◆ solve() [36/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7104 of file dSparse.cc.

References b, err, and solve().

◆ solve() [37/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b) const

Definition at line 7135 of file dSparse.cc.

References b, and solve().

◆ solve() [38/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b,
octave_idx_type info 
) const

Definition at line 7143 of file dSparse.cc.

References b, and solve().

◆ solve() [39/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b,
octave_idx_type info,
double rcond 
) const

Definition at line 7150 of file dSparse.cc.

References b, and solve().

◆ solve() [40/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7157 of file dSparse.cc.

References b, err, and solve().

◆ solve() [41/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b) const

Definition at line 7166 of file dSparse.cc.

References b, and solve().

◆ solve() [42/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b,
octave_idx_type info 
) const

Definition at line 7173 of file dSparse.cc.

References b, and solve().

◆ solve() [43/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b,
octave_idx_type info,
double rcond 
) const

Definition at line 7180 of file dSparse.cc.

References b, and solve().

◆ solve() [44/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7187 of file dSparse.cc.

References b, Matrix::column(), solve(), and tmp.

◆ solve() [45/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b) const

Definition at line 7197 of file dSparse.cc.

References b, and solve().

◆ solve() [46/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b,
octave_idx_type info 
) const

Definition at line 7205 of file dSparse.cc.

References b, and solve().

◆ solve() [47/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b,
octave_idx_type info,
double rcond 
) const

Definition at line 7212 of file dSparse.cc.

References b, and solve().

◆ solve() [48/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler 
) const

Definition at line 7219 of file dSparse.cc.

References b, Matrix::column(), solve(), and tmp.

◆ sort() [1/2]

Sparse< double > Sparse< double >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Definition at line 2231 of file Sparse.cc.

◆ sort() [2/2]

Sparse< double > Sparse< double >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Definition at line 2297 of file Sparse.cc.

◆ squeeze()

SparseMatrix SparseMatrix::squeeze ( void  ) const

Definition at line 7513 of file dSparse.cc.

References MSparse< T >::squeeze().

◆ sum()

SparseMatrix SparseMatrix::sum ( int  dim = -1) const

Definition at line 7435 of file dSparse.cc.

References SPARSE_REDUCTION_OP.

◆ sumsq()

SparseMatrix SparseMatrix::sumsq ( int  dim = -1) const

Definition at line 7441 of file dSparse.cc.

References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.

◆ test()

bool Sparse< double >::test ( F  fcn) const
inlineinherited

Definition at line 568 of file Sparse.h.

◆ test_all() [1/3]

bool Sparse< double >::test_all ( F  fcn) const
inlineinherited

Definition at line 579 of file Sparse.h.

◆ test_all() [2/3]

bool Sparse< double >::test_all ( bool(&)(double fcn) const
inlineinherited

Definition at line 589 of file Sparse.h.

◆ test_all() [3/3]

bool Sparse< double >::test_all ( bool(&)(const double &)  fcn) const
inlineinherited

Definition at line 592 of file Sparse.h.

◆ test_any() [1/3]

bool Sparse< double >::test_any ( F  fcn) const
inlineinherited

Definition at line 575 of file Sparse.h.

Referenced by too_large_for_float().

◆ test_any() [2/3]

bool Sparse< double >::test_any ( bool(&)(double fcn) const
inlineinherited

Definition at line 583 of file Sparse.h.

◆ test_any() [3/3]

bool Sparse< double >::test_any ( bool(&)(const double &)  fcn) const
inlineinherited

Definition at line 586 of file Sparse.h.

◆ tinverse()

◆ too_large_for_float()

bool SparseMatrix::too_large_for_float ( void  ) const

◆ transpose()

◆ trisolve() [1/4]

◆ trisolve() [2/4]

◆ trisolve() [3/4]

◆ trisolve() [4/4]

◆ utsolve() [1/4]

◆ utsolve() [2/4]

◆ utsolve() [3/4]

◆ utsolve() [4/4]

◆ xcidx() [1/2]

octave_idx_type* Sparse< double >::xcidx ( void  )
inlineinherited

Definition at line 514 of file Sparse.h.

◆ xcidx() [2/2]

octave_idx_type& Sparse< double >::xcidx ( octave_idx_type  i)
inlineinherited

Definition at line 515 of file Sparse.h.

◆ xdata() [1/2]

double * Sparse< double >::xdata ( void  )
inlineinherited

Definition at line 488 of file Sparse.h.

◆ xdata() [2/2]

double & Sparse< double >::xdata ( octave_idx_type  i)
inlineinherited

Definition at line 489 of file Sparse.h.

◆ xelem() [1/6]

double & Sparse< double >::xelem ( octave_idx_type  n)
inlineinherited

Definition at line 301 of file Sparse.h.

◆ xelem() [2/6]

double Sparse< double >::xelem ( octave_idx_type  n) const
inlineinherited

Definition at line 308 of file Sparse.h.

◆ xelem() [3/6]

double & Sparse< double >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 315 of file Sparse.h.

◆ xelem() [4/6]

double Sparse< double >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 316 of file Sparse.h.

◆ xelem() [5/6]

double & Sparse< double >::xelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 321 of file Sparse.h.

◆ xelem() [6/6]

double Sparse< double >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 324 of file Sparse.h.

◆ xridx() [1/2]

octave_idx_type* Sparse< double >::xridx ( void  )
inlineinherited

Definition at line 501 of file Sparse.h.

◆ xridx() [2/2]

octave_idx_type& Sparse< double >::xridx ( octave_idx_type  i)
inlineinherited

Definition at line 502 of file Sparse.h.

Friends And Related Function Documentation

◆ imag

OCTAVE_API SparseMatrix imag ( const SparseComplexMatrix a)
friend

Definition at line 574 of file dSparse.cc.

◆ operator<<

OCTAVE_API std::ostream& operator<< ( std::ostream &  os,
const SparseMatrix a 
)
friend

Definition at line 7484 of file dSparse.cc.

◆ operator>>

OCTAVE_API std::istream& operator>> ( std::istream &  is,
SparseMatrix a 
)
friend

Definition at line 7505 of file dSparse.cc.

◆ real

OCTAVE_API SparseMatrix real ( const SparseComplexMatrix a)
friend

Definition at line 553 of file dSparse.cc.

Member Data Documentation

◆ dimensions

dim_vector Sparse< double >::dimensions
inherited

Definition at line 157 of file Sparse.h.

◆ rep

Sparse<double >::SparseRep* Sparse< double >::rep
inherited

Definition at line 155 of file Sparse.h.


The documentation for this class was generated from the following files: