GNU Octave  8.1.0
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 T element_type
 
typedef void(* solve_singularity_handler) (double rcond)
 

Public Member Functions

 SparseMatrix (const Array< double > &a, const octave::idx_vector &r, const octave::idx_vector &c, octave_idx_type nr=-1, octave_idx_type nc=-1, bool sum_terms=true, octave_idx_type nzm=-1)
 
OCTAVE_API SparseMatrix (const DiagMatrix &a)
 
 SparseMatrix (const dim_vector &dv, octave_idx_type nz=0)
 
 SparseMatrix (const Matrix &a)
 
 SparseMatrix (const MSparse< double > &a)
 
 SparseMatrix (const NDArray &a)
 
 SparseMatrix (const PermMatrix &a)
 
 SparseMatrix (const Sparse< double > &a)
 
OCTAVE_API SparseMatrix (const SparseBoolMatrix &a)
 
 SparseMatrix (const SparseMatrix &a)
 
 SparseMatrix (const SparseMatrix &a, const dim_vector &dv)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c, double val)
 
 SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
 SparseMatrix (void)
 
OCTAVE_API SparseMatrix abs (void) const
 
OCTAVE_API SparseBoolMatrix all (int dim=-1) const
 
OCTAVE_API bool all_elements_are_int_or_inf_or_nan (void) const
 
OCTAVE_API bool all_elements_are_zero (void) const
 
OCTAVE_API bool all_integers (double &max_val, double &min_val) const
 
OCTAVE_API SparseBoolMatrix any (int dim=-1) const
 
OCTAVE_API bool any_element_is_inf_or_nan (void) const
 
OCTAVE_API bool any_element_is_nan (void) const
 
OCTAVE_API bool any_element_is_negative (bool=false) const
 
OCTAVE_API bool any_element_not_one_or_zero (void) const
 
OCTAVE_API Array< T > array_value (void) const
 
OCTAVE_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Sparse< T, Alloc > &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const T &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const Sparse< T, Alloc > &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const T &rhs)
 
std::size_t byte_size (void) const
 
void change_capacity (octave_idx_type nz)
 
T & checkelem (const Array< octave_idx_type > &ra_idx)
 
checkelem (const Array< octave_idx_type > &ra_idx) const
 
T & checkelem (octave_idx_type i, octave_idx_type j)
 
checkelem (octave_idx_type i, octave_idx_type j) const
 
T & checkelem (octave_idx_type n)
 
checkelem (octave_idx_type n) const
 
octave_idx_typecidx (octave_idx_type i)
 
octave_idx_type cidx (octave_idx_type i) const
 
octave_idx_typecidx (void)
 
octave_idx_typecidx (void) const
 
octave_idx_type cols (void) const
 
OCTAVE_API ColumnVector column (octave_idx_type i) const
 
octave_idx_type columns (void) const
 
OCTAVE_API octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_API SparseComplexMatrix concat (const SparseComplexMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
OCTAVE_API SparseMatrix concat (const SparseMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
OCTAVE_API SparseMatrix cumprod (int dim=-1) const
 
OCTAVE_API SparseMatrix cumsum (int dim=-1) const
 
T & data (octave_idx_type i)
 
data (octave_idx_type i) const
 
T * data (void)
 
T * data (void) const
 
OCTAVE_API void delete_elements (const octave::idx_vector &i)
 
OCTAVE_API void delete_elements (const octave::idx_vector &i, const octave::idx_vector &j)
 
OCTAVE_API void delete_elements (int dim, const octave::idx_vector &i)
 
OCTAVE_API DET determinant (octave_idx_type &info) const
 
OCTAVE_API DET determinant (octave_idx_type &info, double &rcond, bool calc_cond=true) const
 
OCTAVE_API DET determinant (void) const
 
OCTAVE_API 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
 
T & elem (const Array< octave_idx_type > &ra_idx)
 
elem (const Array< octave_idx_type > &ra_idx) const
 
T & elem (octave_idx_type i, octave_idx_type j)
 
elem (octave_idx_type i, octave_idx_type j) const
 
T & elem (octave_idx_type n)
 
elem (octave_idx_type n) 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
 
OCTAVE_API Sparse< T, Allocindex (const octave::idx_vector &i, bool resize_ok=false) const
 
OCTAVE_API Sparse< T, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok=false) const
 
bool indices_ok (void) const
 
MSparse< double > & insert (const Sparse< double > &a, const Array< octave_idx_type > &indx)
 
MSparse< double > & insert (const Sparse< double > &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, const Array< octave_idx_type > &idx)
 
OCTAVE_API Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API SparseMatrixinsert (const SparseMatrix &a, const Array< octave_idx_type > &indx)
 
OCTAVE_API SparseMatrixinsert (const SparseMatrix &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API SparseMatrix inverse (MatrixType &mattype) const
 
OCTAVE_API SparseMatrix inverse (MatrixType &mattype, octave_idx_type &info) const
 
OCTAVE_API SparseMatrix inverse (MatrixType &mattype, octave_idx_type &info, double &rcond, bool force=false, bool calc_cond=true) const
 
OCTAVE_API SparseMatrix inverse (void) const
 
OCTAVE_API SparseMatrix ipermute (const Array< octave_idx_type > &vec) const
 
bool isempty (void) const
 
bool issquare (void) const
 
OCTAVE_API bool issymmetric (void) const
 
template<typename U , typename F >
Sparse< U > map (F fcn) const
 
Sparse< U > map (U(&fcn)(const double &)) const
 
template<typename U >
Sparse< U > map (U(&fcn)(const T &)) const
 
Sparse< U > map (U(&fcn)(double)) const
 
template<typename U >
Sparse< U > map (U(&fcn)(T)) const
 
OCTAVE_API Matrix matrix_value (void) const
 
OCTAVE_API SparseMatrix max (Array< octave_idx_type > &index, int dim=-1) const
 
OCTAVE_API SparseMatrix max (int dim=-1) const
 
Sparse< T, Allocmaybe_compress (bool remove_zeros=false)
 
OCTAVE_API SparseMatrix min (Array< octave_idx_type > &index, int dim=-1) const
 
OCTAVE_API SparseMatrix min (int dim=-1) const
 
octave_idx_type ndims (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...
 
OCTAVE_API SparseBoolMatrix operator! (void) const
 
OCTAVE_API bool operator!= (const SparseMatrix &a) const
 
T & operator() (const Array< octave_idx_type > &ra_idx)
 
operator() (const Array< octave_idx_type > &ra_idx) const
 
T & operator() (octave_idx_type i, octave_idx_type j)
 
operator() (octave_idx_type i, octave_idx_type j) const
 
T & operator() (octave_idx_type n)
 
operator() (octave_idx_type n) const
 
SparseMatrixoperator= (const SparseMatrix &a)
 
OCTAVE_API bool operator== (const SparseMatrix &a) const
 
OCTAVE_API SparseMatrix permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
OCTAVE_API void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_API SparseMatrix prod (int dim=-1) const
 
OCTAVE_NORETURN OCTAVE_API T & range_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
OCTAVE_NORETURN OCTAVE_APIrange_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN OCTAVE_API T & range_error (const char *fcn, octave_idx_type i, octave_idx_type j)
 
OCTAVE_NORETURN OCTAVE_APIrange_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
 
OCTAVE_NORETURN OCTAVE_API T & range_error (const char *fcn, octave_idx_type n)
 
OCTAVE_NORETURN OCTAVE_APIrange_error (const char *fcn, octave_idx_type n) const
 
OCTAVE_API SparseMatrix reshape (const dim_vector &new_dims) const
 
OCTAVE_API void resize (const dim_vector &dv)
 
OCTAVE_API void resize (octave_idx_type r, octave_idx_type c)
 
OCTAVE_API void resize1 (octave_idx_type n)
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_typeridx (void)
 
octave_idx_typeridx (void) const
 
OCTAVE_API RowVector row (octave_idx_type i) const
 
octave_idx_type rows (void) const
 
OCTAVE_API ColumnVector solve (const ColumnVector &b) const
 
OCTAVE_API ColumnVector solve (const ColumnVector &b, octave_idx_type &info) const
 
OCTAVE_API ColumnVector solve (const ColumnVector &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ColumnVector solve (const ColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API ComplexColumnVector solve (const ComplexColumnVector &b) const
 
OCTAVE_API ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info) const
 
OCTAVE_API ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ComplexColumnVector solve (const ComplexColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API ComplexMatrix solve (const ComplexMatrix &b) const
 
OCTAVE_API ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info) const
 
OCTAVE_API ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ComplexMatrix solve (const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API Matrix solve (const Matrix &b) const
 
OCTAVE_API Matrix solve (const Matrix &b, octave_idx_type &info) const
 
OCTAVE_API Matrix solve (const Matrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API Matrix solve (const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API SparseComplexMatrix solve (const SparseComplexMatrix &b) const
 
OCTAVE_API SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info) const
 
OCTAVE_API SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API SparseComplexMatrix solve (const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API SparseMatrix solve (const SparseMatrix &b) const
 
OCTAVE_API SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info) const
 
OCTAVE_API SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API SparseMatrix solve (const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API ColumnVector solve (MatrixType &typ, const ColumnVector &b) const
 
OCTAVE_API ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info) const
 
OCTAVE_API ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ColumnVector solve (MatrixType &typ, const ColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b) const
 
OCTAVE_API ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info) const
 
OCTAVE_API ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ComplexColumnVector solve (MatrixType &typ, const ComplexColumnVector &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler) const
 
OCTAVE_API ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b) const
 
OCTAVE_API ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info) const
 
OCTAVE_API ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API ComplexMatrix solve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
OCTAVE_API Matrix solve (MatrixType &typ, const Matrix &b) const
 
OCTAVE_API Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info) const
 
OCTAVE_API Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API Matrix solve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
OCTAVE_API SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b) const
 
OCTAVE_API SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info) const
 
OCTAVE_API SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API SparseComplexMatrix solve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallabck=true) const
 
OCTAVE_API SparseMatrix solve (MatrixType &typ, const SparseMatrix &b) const
 
OCTAVE_API SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info) const
 
OCTAVE_API SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond) const
 
OCTAVE_API SparseMatrix solve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool singular_fallback=true) const
 
OCTAVE_API Sparse< T, Allocsort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
OCTAVE_API Sparse< T, Allocsort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
OCTAVE_API SparseMatrix squeeze (void) const
 
OCTAVE_API SparseMatrix sum (int dim=-1) const
 
OCTAVE_API SparseMatrix sumsq (int dim=-1) const
 
template<typename F , bool zero>
bool test (F fcn) const
 
bool test_all (bool(&fcn)(const T &)) const
 
bool test_all (bool(&fcn)(T)) const
 
template<typename F >
bool test_all (F fcn) const
 
bool test_any (bool(&fcn)(const T &)) const
 
bool test_any (bool(&fcn)(T)) const
 
template<typename F >
bool test_any (F fcn) const
 
OCTAVE_API bool too_large_for_float (void) const
 
SparseMatrix transpose (void) const
 
octave_idx_typexcidx (octave_idx_type i)
 
octave_idx_typexcidx (void)
 
T & xdata (octave_idx_type i)
 
T * xdata (void)
 
T & xelem (const Array< octave_idx_type > &ra_idx)
 
xelem (const Array< octave_idx_type > &ra_idx) const
 
T & xelem (octave_idx_type i, octave_idx_type j)
 
xelem (octave_idx_type i, octave_idx_type j) const
 
T & xelem (octave_idx_type n)
 
xelem (octave_idx_type n) const
 
octave_idx_typexridx (octave_idx_type i)
 
octave_idx_typexridx (void)
 

Static Public Member Functions

static OCTAVE_API Sparse< T, Alloccat (int dim, octave_idx_type n, const Sparse< T, Alloc > *sparse_list)
 

Protected Member Functions

void make_unique (void)
 

Protected Attributes

dim_vector m_dimensions
 
Sparse< T, Alloc >::SparseRepm_rep
 

Private Member Functions

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

Static Private Member Functions

static OCTAVE_API Sparse< T, Alloc >::SparseRepnil_rep (void)
 

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 43 of file dSparse.h.

Member Typedef Documentation

◆ dense_matrix_type

Definition at line 49 of file dSparse.h.

◆ element_type

template<typename T , typename Alloc >
typedef T Sparse< T, Alloc >::element_type
inherited

Definition at line 52 of file Sparse.h.

◆ solve_singularity_handler

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

Definition at line 51 of file dSparse.h.

Constructor & Destructor Documentation

◆ SparseMatrix() [1/15]

SparseMatrix::SparseMatrix ( void  )
inline

Definition at line 53 of file dSparse.h.

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

◆ SparseMatrix() [2/15]

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

Definition at line 55 of file dSparse.h.

◆ SparseMatrix() [3/15]

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

Definition at line 58 of file dSparse.h.

◆ SparseMatrix() [4/15]

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

Definition at line 61 of file dSparse.h.

◆ SparseMatrix() [5/15]

SparseMatrix::SparseMatrix ( const SparseMatrix a)
inline

Definition at line 64 of file dSparse.h.

◆ SparseMatrix() [6/15]

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

Definition at line 66 of file dSparse.h.

◆ SparseMatrix() [7/15]

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

Definition at line 69 of file dSparse.h.

◆ SparseMatrix() [8/15]

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

Definition at line 71 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 75 of file dSparse.h.

◆ SparseMatrix() [11/15]

SparseMatrix::SparseMatrix ( const NDArray a)
inlineexplicit

Definition at line 77 of file dSparse.h.

◆ SparseMatrix() [12/15]

SparseMatrix::SparseMatrix ( const Array< double > &  a,
const octave::idx_vector r,
const octave::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 79 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 87 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 89 of file dSparse.h.

Member Function Documentation

◆ abs()

SparseMatrix SparseMatrix::abs ( void  ) const

Definition at line 7426 of file dSparse.cc.

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

◆ all()

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

Definition at line 7366 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

Definition at line 7276 of file dSparse.cc.

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

◆ all_elements_are_zero()

bool SparseMatrix::all_elements_are_zero ( void  ) const

Definition at line 7264 of file dSparse.cc.

References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::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 7372 of file dSparse.cc.

References SPARSE_ANY_OP.

◆ any_element_is_inf_or_nan()

bool SparseMatrix::any_element_is_inf_or_nan ( void  ) const

Definition at line 7234 of file dSparse.cc.

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

◆ 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 7198 of file dSparse.cc.

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

Referenced by elem_xpow().

◆ any_element_not_one_or_zero()

bool SparseMatrix::any_element_not_one_or_zero ( void  ) const

◆ array_value()

template<typename T , typename Alloc >
OCTAVE_API Array< T > Sparse< T, Alloc >::array_value ( void  ) const
inherited

◆ assign() [1/4]

◆ assign() [2/4]

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const T &  rhs 
)
inherited

Definition at line 2283 of file Sparse.cc.

◆ assign() [3/4]

◆ assign() [4/4]

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::assign ( const octave::idx_vector i,
const T &  rhs 
)
inherited

Definition at line 2031 of file Sparse.cc.

◆ bsolve() [1/4]

◆ bsolve() [2/4]

◆ bsolve() [3/4]

◆ bsolve() [4/4]

◆ byte_size()

template<typename T , typename Alloc >
std::size_t Sparse< T, Alloc >::byte_size ( void  ) const
inlineinherited

◆ cat()

◆ change_capacity()

◆ checkelem() [1/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::checkelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 446 of file Sparse.h.

References compute_index(), elem, ra_idx, and Sparse< T, Alloc >::range_error().

◆ checkelem() [2/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

◆ checkelem() [3/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

◆ checkelem() [4/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

◆ checkelem() [5/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::checkelem ( octave_idx_type  n)
inlineinherited

◆ checkelem() [6/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::checkelem ( octave_idx_type  n) const
inlineinherited

Definition at line 486 of file Sparse.h.

References n, numel(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().

◆ cidx() [1/4]

template<typename T , typename Alloc >
octave_idx_type& Sparse< T, Alloc >::cidx ( octave_idx_type  i)
inlineinherited

◆ cidx() [2/4]

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::cidx ( octave_idx_type  i) const
inlineinherited

Definition at line 605 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::ccidx(), and Sparse< T, Alloc >::m_rep.

◆ cidx() [3/4]

template<typename T , typename Alloc >
octave_idx_type* Sparse< T, Alloc >::cidx ( void  )
inlineinherited

Definition at line 596 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::m_cidx, Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().

Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_col_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_jc(), SparseComplexMatrix::min(), min(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), SparseComplexMatrix::prod(), prod(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), and xpow().

◆ cidx() [4/4]

template<typename T , typename Alloc >
octave_idx_type* Sparse< T, Alloc >::cidx ( void  ) const
inlineinherited

Definition at line 607 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::m_cidx, and Sparse< T, Alloc >::m_rep.

◆ cols()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::cols ( void  ) const
inlineinherited

Definition at line 352 of file Sparse.h.

References Sparse< T, Alloc >::dim2().

Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::byte_size(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), SparseComplexMatrix::factorize(), factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), save_mat5_binary_element(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().

◆ column()

◆ columns()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::columns ( void  ) const
inlineinherited

◆ compute_index()

template<typename T , typename Alloc >
OCTAVE_API octave_idx_type Sparse< T, Alloc >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited

Definition at line 735 of file Sparse.cc.

References n, octave_base_value::numel(), and ra_idx.

◆ concat() [1/2]

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

◆ concat() [2/2]

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

Definition at line 534 of file dSparse.cc.

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

Referenced by oct_catop_s_scm(), and oct_catop_s_sm().

◆ cumprod()

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

Definition at line 7378 of file dSparse.cc.

References SPARSE_CUMPROD.

◆ cumsum()

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

Definition at line 7384 of file dSparse.cc.

References SPARSE_CUMSUM.

Referenced by Fcumsum().

◆ data() [1/4]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::data ( octave_idx_type  i)
inlineinherited

◆ data() [2/4]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::data ( octave_idx_type  i) const
inlineinherited

Definition at line 579 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.

◆ data() [3/4]

template<typename T , typename Alloc >
T* Sparse< T, Alloc >::data ( void  )
inlineinherited

Definition at line 574 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::m_data, Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().

Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_lu< lu_type >::sparse_lu(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), abs(), all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), all_elements_are_zero(), SparseComplexMatrix::all_integers(), all_integers(), SparseBoolMatrix::any(), SparseComplexMatrix::any_element_is_inf_or_nan(), any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), any_element_is_nan(), any_element_is_negative(), any_element_not_one_or_zero(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_data(), SparseComplexMatrix::min(), min(), min(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), Sparse< T, Alloc >::test(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), and xpow().

◆ data() [4/4]

template<typename T , typename Alloc >
T* Sparse< T, Alloc >::data ( void  ) const
inlineinherited

Definition at line 581 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::m_data, and Sparse< T, Alloc >::m_rep.

◆ delete_elements() [1/3]

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::delete_elements ( const octave::idx_vector i)
inherited

◆ delete_elements() [2/3]

◆ delete_elements() [3/3]

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::delete_elements ( int  dim,
const octave::idx_vector i 
)
inherited

Definition at line 1419 of file Sparse.cc.

References current_liboctave_error_handler.

◆ determinant() [1/3]

DET SparseMatrix::determinant ( octave_idx_type info) const

Definition at line 1020 of file dSparse.cc.

References determinant().

◆ determinant() [2/3]

◆ determinant() [3/3]

DET SparseMatrix::determinant ( void  ) const

Definition at line 1012 of file dSparse.cc.

Referenced by determinant().

◆ diag()

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

Definition at line 7439 of file dSparse.cc.

References MSparse< T >::diag().

◆ dim1()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::dim1 ( void  ) const
inlineinherited

◆ dim2()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::dim2 ( void  ) const
inlineinherited

◆ dims()

◆ 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]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::elem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 468 of file Sparse.h.

References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.

◆ elem() [2/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::elem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 516 of file Sparse.h.

References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.

◆ elem() [3/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 462 of file Sparse.h.

References Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::xelem().

◆ elem() [4/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 514 of file Sparse.h.

References Sparse< T, Alloc >::xelem().

◆ elem() [5/6]

◆ elem() [6/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::elem ( octave_idx_type  n) const
inlineinherited

Definition at line 512 of file Sparse.h.

References n, and Sparse< T, Alloc >::xelem().

◆ factorize()

void * SparseMatrix::factorize ( octave_idx_type err,
double &  rcond,
Matrix Control,
Matrix Info,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private

◆ fsolve() [1/4]

◆ fsolve() [2/4]

◆ fsolve() [3/4]

◆ fsolve() [4/4]

◆ get_col_index()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::get_col_index ( octave_idx_type  k)
inlineinherited

Definition at line 356 of file Sparse.h.

References Sparse< T, Alloc >::cidx().

◆ get_row_index()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::get_row_index ( octave_idx_type  k)
inlineinherited

Definition at line 355 of file Sparse.h.

References Sparse< T, Alloc >::ridx().

◆ hermitian()

SparseMatrix SparseMatrix::hermitian ( void  ) const
inline

Definition at line 128 of file dSparse.h.

References transpose().

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

◆ index() [1/2]

◆ index() [2/2]

◆ indices_ok()

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::indices_ok ( void  ) const
inlineinherited

◆ insert() [1/6]

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

Definition at line 92 of file MSparse.h.

◆ insert() [2/6]

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

Definition at line 86 of file MSparse.h.

◆ insert() [3/6]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > & Sparse< T, Alloc >::insert ( const Sparse< T, Alloc > &  a,
const Array< octave_idx_type > &  idx 
)
inherited

Definition at line 1125 of file Sparse.cc.

References octave_base_value::numel(), and ra_idx.

◆ insert() [4/6]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > & Sparse< T, Alloc >::insert ( const Sparse< T, Alloc > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inherited

◆ insert() [5/6]

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

Definition at line 179 of file dSparse.cc.

References MSparse< T >::insert().

◆ insert() [6/6]

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

Definition at line 171 of file dSparse.cc.

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

Referenced by concat().

◆ inverse() [1/4]

SparseMatrix SparseMatrix::inverse ( MatrixType mattype) const

Definition at line 612 of file dSparse.cc.

References inverse().

◆ inverse() [2/4]

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

Definition at line 620 of file dSparse.cc.

References inverse().

◆ inverse() [3/4]

◆ inverse() [4/4]

SparseMatrix SparseMatrix::inverse ( void  ) const

Definition at line 603 of file dSparse.cc.

Referenced by inverse(), and xpow().

◆ ipermute()

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

Definition at line 7498 of file dSparse.cc.

References MSparse< T >::ipermute().

◆ isempty()

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::isempty ( void  ) const
inlineinherited

Definition at line 570 of file Sparse.h.

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

Referenced by Sparse< T, Alloc >::cat(), and LuAminusSigmaB().

◆ issquare()

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::issquare ( void  ) const
inlineinherited

Definition at line 568 of file Sparse.h.

References Sparse< T, Alloc >::dim1(), and Sparse< T, Alloc >::dim2().

◆ issymmetric()

bool SparseMatrix::issymmetric ( void  ) const

◆ ltsolve() [1/4]

◆ ltsolve() [2/4]

◆ ltsolve() [3/4]

◆ ltsolve() [4/4]

◆ make_unique()

◆ map() [1/5]

template<typename T , typename Alloc >
template<typename U , typename F >
Sparse<U> Sparse< T, Alloc >::map ( fcn) const
inlineinherited

◆ map() [2/5]

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

Definition at line 124 of file MSparse.h.

◆ map() [3/5]

template<typename T , typename Alloc >
template<typename U >
Sparse<U> Sparse< T, Alloc >::map ( U(&)(const T &)  fcn) const
inlineinherited

Definition at line 746 of file Sparse.h.

◆ map() [4/5]

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

Definition at line 119 of file MSparse.h.

◆ map() [5/5]

template<typename T , typename Alloc >
template<typename U >
Sparse<U> Sparse< T, Alloc >::map ( U(&)(T)  fcn) const
inlineinherited

Definition at line 741 of file Sparse.h.

◆ matrix_value()

◆ max() [1/2]

◆ max() [2/2]

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

Definition at line 186 of file dSparse.cc.

◆ maybe_compress()

◆ min() [1/2]

◆ min() [2/2]

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

Definition at line 337 of file dSparse.cc.

◆ ndims()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::ndims ( void  ) const
inlineinherited

◆ nil_rep()

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc >::SparseRep * Sparse< T, Alloc >::nil_rep ( void  )
staticprivateinherited

Definition at line 57 of file Sparse.cc.

◆ nnz()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::nnz ( void  ) const
inlineinherited

Actual number of nonzero terms.

Definition at line 339 of file Sparse.h.

References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::nnz().

Referenced by MatrixType::MatrixType(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), abs(), all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), all_elements_are_zero(), SparseComplexMatrix::all_integers(), all_integers(), SparseComplexMatrix::any_element_is_inf_or_nan(), any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), any_element_is_nan(), Sparse< T, Alloc >::SparseRep::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), any_element_is_negative(), any_element_not_one_or_zero(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::delete_elements(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), octave_sparse_matrix::index_vector(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), max(), min(), octave_base_sparse< T >::nnz(), SparseComplexMatrix::operator!(), operator!(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), plus_or_minus(), product(), quotient(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), Sparse< T, Alloc >::test(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().

◆ numel()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::numel ( void  ) const
inlineinherited

◆ nzmax()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::nzmax ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

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

Definition at line 336 of file Sparse.h.

References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::nzmax().

Referenced by Sparse< T, Alloc >::byte_size(), dmperm_internal(), octave_base_sparse< T >::nzmax(), read_sparse_matrix(), and save_mat5_binary_element().

◆ operator!()

◆ operator!=()

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

Definition at line 125 of file dSparse.cc.

◆ operator()() [1/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::operator() ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 481 of file Sparse.h.

References elem, and ra_idx.

◆ operator()() [2/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 526 of file Sparse.h.

References elem, and ra_idx.

◆ operator()() [3/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 476 of file Sparse.h.

References elem.

◆ operator()() [4/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 521 of file Sparse.h.

References elem.

◆ operator()() [5/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::operator() ( octave_idx_type  n)
inlineinherited

Definition at line 471 of file Sparse.h.

References elem, and n.

◆ operator()() [6/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::operator() ( octave_idx_type  n) const
inlineinherited

Definition at line 519 of file Sparse.h.

References elem, and n.

◆ operator=()

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

Definition at line 92 of file dSparse.h.

References MSparse< T >::operator=().

◆ operator==()

◆ permute()

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

Definition at line 7492 of file dSparse.cc.

References MSparse< T >::permute().

◆ print_info()

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
inherited

Definition at line 3094 of file Sparse.cc.

◆ prod()

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

Definition at line 7390 of file dSparse.cc.

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

Referenced by Fprod(), and prod().

◆ range_error() [1/6]

template<typename T , typename Alloc >
OCTAVE_API T & Sparse< T, Alloc >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
)
inherited

Definition at line 824 of file Sparse.cc.

References n, octave_base_value::numel(), and ra_idx.

◆ range_error() [2/6]

template<typename T , typename Alloc >
OCTAVE_API T Sparse< T, Alloc >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
) const
inherited

Definition at line 799 of file Sparse.cc.

References n, octave_base_value::numel(), and ra_idx.

◆ range_error() [3/6]

template<typename T , typename Alloc >
OCTAVE_API T & Sparse< T, Alloc >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
)
inherited

Definition at line 788 of file Sparse.cc.

◆ range_error() [4/6]

template<typename T , typename Alloc >
OCTAVE_API T Sparse< T, Alloc >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
) const
inherited

Definition at line 777 of file Sparse.cc.

◆ range_error() [5/6]

template<typename T , typename Alloc >
OCTAVE_API T & Sparse< T, Alloc >::range_error ( const char *  fcn,
octave_idx_type  n 
)
inherited

Definition at line 768 of file Sparse.cc.

References n.

◆ range_error() [6/6]

template<typename T , typename Alloc >
OCTAVE_API T Sparse< T, Alloc >::range_error ( const char *  fcn,
octave_idx_type  n 
) const
inherited

Definition at line 759 of file Sparse.cc.

References n.

Referenced by Sparse< T, Alloc >::checkelem().

◆ reshape()

SparseMatrix SparseMatrix::reshape ( const dim_vector new_dims) const

Definition at line 7486 of file dSparse.cc.

References MSparse< T >::reshape().

◆ resize() [1/2]

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::resize ( const dim_vector dv)
inherited

Definition at line 978 of file Sparse.cc.

References n, and dim_vector::ndims().

◆ resize() [2/2]

◆ resize1()

template<typename T , typename Alloc >
OCTAVE_API void Sparse< T, Alloc >::resize1 ( octave_idx_type  n)
inherited

Definition at line 958 of file Sparse.cc.

References err_invalid_resize(), max(), and n.

Referenced by Sparse< T, Alloc >::index().

◆ ridx() [1/4]

template<typename T , typename Alloc >
octave_idx_type& Sparse< T, Alloc >::ridx ( octave_idx_type  i)
inlineinherited

◆ ridx() [2/4]

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::ridx ( octave_idx_type  i) const
inlineinherited

Definition at line 592 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::cridx(), and Sparse< T, Alloc >::m_rep.

◆ ridx() [3/4]

template<typename T , typename Alloc >
octave_idx_type* Sparse< T, Alloc >::ridx ( void  )
inlineinherited

Definition at line 583 of file Sparse.h.

References Sparse< T, Alloc >::m_rep, Sparse< T, Alloc >::SparseRep::m_ridx, and Sparse< T, Alloc >::make_unique().

Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_row_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_ir(), SparseComplexMatrix::min(), min(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), SparseBoolMatrix::sum(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), and xpow().

◆ ridx() [4/4]

template<typename T , typename Alloc >
octave_idx_type* Sparse< T, Alloc >::ridx ( void  ) const
inlineinherited

Definition at line 594 of file Sparse.h.

References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::m_ridx.

◆ row()

◆ rows()

template<typename T , typename Alloc >
octave_idx_type Sparse< T, Alloc >::rows ( void  ) const
inlineinherited

Definition at line 351 of file Sparse.h.

References Sparse< T, Alloc >::dim1().

Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), column(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), plus_or_minus(), SparseComplexMatrix::prod(), prod(), product(), quotient(), read_sparse_matrix(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), Sparse< T, Alloc >::xelem(), and xpow().

◆ solve() [1/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b) const

Definition at line 7133 of file dSparse.cc.

References solve().

◆ solve() [2/48]

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

Definition at line 7140 of file dSparse.cc.

References solve().

◆ solve() [3/48]

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

Definition at line 7147 of file dSparse.cc.

References solve().

◆ solve() [4/48]

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

Definition at line 7154 of file dSparse.cc.

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

◆ solve() [5/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b) const

Definition at line 7164 of file dSparse.cc.

References solve().

◆ solve() [6/48]

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

Definition at line 7172 of file dSparse.cc.

References solve().

◆ solve() [7/48]

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

Definition at line 7179 of file dSparse.cc.

References solve().

◆ solve() [8/48]

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

Definition at line 7186 of file dSparse.cc.

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

◆ solve() [9/48]

OCTAVE_API ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b) const

◆ solve() [10/48]

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

Definition at line 7079 of file dSparse.cc.

References solve().

◆ solve() [11/48]

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

Definition at line 7086 of file dSparse.cc.

References solve().

◆ solve() [12/48]

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

Definition at line 7093 of file dSparse.cc.

References solve().

◆ solve() [13/48]

Matrix SparseMatrix::solve ( const Matrix b) const

Definition at line 7018 of file dSparse.cc.

References solve().

◆ solve() [14/48]

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

Definition at line 7026 of file dSparse.cc.

References solve().

◆ solve() [15/48]

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

Definition at line 7033 of file dSparse.cc.

References solve().

◆ solve() [16/48]

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

Definition at line 7040 of file dSparse.cc.

References solve().

◆ solve() [17/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b) const

Definition at line 7102 of file dSparse.cc.

References solve().

◆ solve() [18/48]

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

Definition at line 7110 of file dSparse.cc.

References solve().

◆ solve() [19/48]

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

Definition at line 7117 of file dSparse.cc.

References solve().

◆ solve() [20/48]

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

Definition at line 7124 of file dSparse.cc.

References solve().

◆ solve() [21/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b) const

Definition at line 7048 of file dSparse.cc.

References solve().

◆ solve() [22/48]

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

Definition at line 7056 of file dSparse.cc.

References solve().

◆ solve() [23/48]

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

Definition at line 7064 of file dSparse.cc.

References solve().

◆ solve() [24/48]

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

Definition at line 7071 of file dSparse.cc.

References solve().

◆ solve() [25/48]

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

Definition at line 6952 of file dSparse.cc.

References solve().

◆ solve() [26/48]

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

Definition at line 6959 of file dSparse.cc.

References solve().

◆ solve() [27/48]

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

Definition at line 6967 of file dSparse.cc.

References solve().

◆ solve() [28/48]

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

Definition at line 6974 of file dSparse.cc.

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

◆ solve() [29/48]

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

Definition at line 6984 of file dSparse.cc.

References solve().

◆ solve() [30/48]

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

Definition at line 6992 of file dSparse.cc.

References solve().

◆ solve() [31/48]

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

Definition at line 7000 of file dSparse.cc.

References solve().

◆ solve() [32/48]

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

Definition at line 7008 of file dSparse.cc.

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

◆ solve() [33/48]

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

Definition at line 6822 of file dSparse.cc.

References solve().

◆ solve() [34/48]

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

Definition at line 6830 of file dSparse.cc.

References solve().

◆ solve() [35/48]

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

Definition at line 6838 of file dSparse.cc.

References solve().

◆ solve() [36/48]

◆ solve() [37/48]

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

Definition at line 6692 of file dSparse.cc.

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

◆ solve() [38/48]

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

Definition at line 6700 of file dSparse.cc.

References solve().

◆ solve() [39/48]

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

Definition at line 6708 of file dSparse.cc.

References solve().

◆ solve() [40/48]

◆ solve() [41/48]

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

Definition at line 6887 of file dSparse.cc.

References solve().

◆ solve() [42/48]

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

Definition at line 6895 of file dSparse.cc.

References solve().

◆ solve() [43/48]

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

Definition at line 6903 of file dSparse.cc.

References solve().

◆ solve() [44/48]

◆ solve() [45/48]

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

Definition at line 6757 of file dSparse.cc.

References solve().

◆ solve() [46/48]

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

Definition at line 6765 of file dSparse.cc.

References solve().

◆ solve() [47/48]

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

Definition at line 6773 of file dSparse.cc.

References solve().

◆ solve() [48/48]

◆ sort() [1/2]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

◆ sort() [2/2]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

◆ squeeze()

SparseMatrix SparseMatrix::squeeze ( void  ) const

Definition at line 7480 of file dSparse.cc.

References MSparse< T >::squeeze().

◆ sum()

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

Definition at line 7402 of file dSparse.cc.

References SPARSE_REDUCTION_OP.

Referenced by Fsum().

◆ sumsq()

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

Definition at line 7408 of file dSparse.cc.

References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.

◆ test()

template<typename T , typename Alloc >
template<typename F , bool zero>
bool Sparse< T, Alloc >::test ( fcn) const
inlineinherited

Definition at line 656 of file Sparse.h.

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

◆ test_all() [1/3]

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::test_all ( bool(&)(const T &)  fcn) const
inlineinherited

Definition at line 680 of file Sparse.h.

◆ test_all() [2/3]

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::test_all ( bool(&)(T)  fcn) const
inlineinherited

Definition at line 677 of file Sparse.h.

◆ test_all() [3/3]

template<typename T , typename Alloc >
template<typename F >
bool Sparse< T, Alloc >::test_all ( fcn) const
inlineinherited

Definition at line 667 of file Sparse.h.

◆ test_any() [1/3]

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::test_any ( bool(&)(const T &)  fcn) const
inlineinherited

Definition at line 674 of file Sparse.h.

◆ test_any() [2/3]

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::test_any ( bool(&)(T)  fcn) const
inlineinherited

Definition at line 671 of file Sparse.h.

◆ test_any() [3/3]

template<typename T , typename Alloc >
template<typename F >
bool Sparse< T, Alloc >::test_any ( fcn) const
inlineinherited

Definition at line 663 of file Sparse.h.

Referenced by SparseComplexMatrix::too_large_for_float(), and too_large_for_float().

◆ tinverse()

◆ too_large_for_float()

bool SparseMatrix::too_large_for_float ( void  ) const

◆ transpose()

SparseMatrix SparseMatrix::transpose ( void  ) const
inline

◆ 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]

template<typename T , typename Alloc >
octave_idx_type& Sparse< T, Alloc >::xcidx ( octave_idx_type  i)
inlineinherited

Definition at line 603 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::cidx(), and Sparse< T, Alloc >::m_rep.

◆ xcidx() [2/2]

◆ xdata() [1/2]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::xdata ( octave_idx_type  i)
inlineinherited

Definition at line 577 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.

◆ xdata() [2/2]

◆ xelem() [1/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::xelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 415 of file Sparse.h.

References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().

◆ xelem() [2/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 418 of file Sparse.h.

References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().

◆ xelem() [3/6]

template<typename T , typename Alloc >
T& Sparse< T, Alloc >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 409 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::elem(), and Sparse< T, Alloc >::m_rep.

◆ xelem() [4/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 410 of file Sparse.h.

References Sparse< T, Alloc >::SparseRep::celem(), and Sparse< T, Alloc >::m_rep.

◆ xelem() [5/6]

◆ xelem() [6/6]

template<typename T , typename Alloc >
T Sparse< T, Alloc >::xelem ( octave_idx_type  n) const
inlineinherited

Definition at line 402 of file Sparse.h.

References n, Sparse< T, Alloc >::rows(), and Sparse< T, Alloc >::xelem().

◆ xridx() [1/2]

template<typename T , typename Alloc >
octave_idx_type& Sparse< T, Alloc >::xridx ( octave_idx_type  i)
inlineinherited

Definition at line 590 of file Sparse.h.

References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::ridx().

◆ xridx() [2/2]

Friends And Related Function Documentation

◆ imag

OCTAVE_API SparseMatrix imag ( const SparseComplexMatrix a)
friend

Definition at line 575 of file dSparse.cc.

◆ operator<<

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

Definition at line 7450 of file dSparse.cc.

◆ operator>>

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

Definition at line 7472 of file dSparse.cc.

◆ real

OCTAVE_API SparseMatrix real ( const SparseComplexMatrix a)
friend

Definition at line 554 of file dSparse.cc.

Member Data Documentation

◆ m_dimensions

◆ m_rep


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