GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Friends | List of all members
SparseMatrix Class Reference

#include "dSparse.h"

Inheritance diagram for SparseMatrix:
Inheritance graph
[legend]
Collaboration diagram for SparseMatrix:
Collaboration graph
[legend]

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
 
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 &mattyp, 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 &mattyp, 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 friend SparseMatrix atan2 (const double &x, const SparseMatrix &y)
 
OCTAVE_API friend SparseMatrix atan2 (const SparseMatrix &x, const double &y)
 
OCTAVE_API friend SparseMatrix atan2 (const SparseMatrix &x, const SparseMatrix &y)
 
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 47 of file dSparse.h.

Member Typedef Documentation

Definition at line 54 of file dSparse.h.

typedef double Sparse< double >::element_type
inherited

Definition at line 56 of file Sparse.h.

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

Definition at line 56 of file dSparse.h.

Constructor & Destructor Documentation

SparseMatrix::SparseMatrix ( void  )
inline

Definition at line 58 of file dSparse.h.

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

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

Definition at line 60 of file dSparse.h.

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

Definition at line 63 of file dSparse.h.

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

Definition at line 66 of file dSparse.h.

SparseMatrix::SparseMatrix ( const SparseMatrix a)
inline

Definition at line 69 of file dSparse.h.

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

Definition at line 71 of file dSparse.h.

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

Definition at line 74 of file dSparse.h.

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

Definition at line 76 of file dSparse.h.

SparseMatrix::SparseMatrix ( const SparseBoolMatrix a)
explicit
SparseMatrix::SparseMatrix ( const Matrix a)
inlineexplicit

Definition at line 80 of file dSparse.h.

SparseMatrix::SparseMatrix ( const NDArray a)
inlineexplicit

Definition at line 82 of file dSparse.h.

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

SparseMatrix::SparseMatrix ( const DiagMatrix a)
explicit
SparseMatrix::SparseMatrix ( const PermMatrix a)
inlineexplicit

Definition at line 92 of file dSparse.h.

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

Definition at line 94 of file dSparse.h.

Member Function Documentation

SparseMatrix SparseMatrix::abs ( void  ) const

Definition at line 7417 of file dSparse.cc.

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

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

Definition at line 7357 of file dSparse.cc.

References SPARSE_ALL_OP.

bool SparseMatrix::all_elements_are_int_or_inf_or_nan ( void  ) const
bool SparseMatrix::all_elements_are_zero ( void  ) const

Definition at line 7255 of file dSparse.cc.

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

bool SparseMatrix::all_integers ( double max_val,
double min_val 
) const
SparseBoolMatrix SparseMatrix::any ( int  dim = -1) const

Definition at line 7363 of file dSparse.cc.

References SPARSE_ANY_OP.

bool SparseMatrix::any_element_is_inf_or_nan ( void  ) const
bool SparseMatrix::any_element_is_nan ( void  ) const
bool SparseMatrix::any_element_is_negative ( bool  neg_zero = false) const

Definition at line 7189 of file dSparse.cc.

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

Referenced by elem_xpow().

bool SparseMatrix::any_element_not_one_or_zero ( void  ) const
Array<double > Sparse< double >::array_value ( void  ) const
inherited
void Sparse< double >::assign ( const idx_vector i,
const Sparse< double > &  rhs 
)
inherited
void Sparse< double >::assign ( const idx_vector i,
const idx_vector j,
const Sparse< double > &  rhs 
)
inherited
Matrix SparseMatrix::bsolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::bsolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::bsolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::bsolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
size_t Sparse< double >::byte_size ( void  ) const
inlineinherited

Definition at line 284 of file Sparse.h.

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

Amount of storage for nonzero elements.

Synonymous with nzmax().

Definition at line 250 of file Sparse.h.

static Sparse<double > Sparse< double >::cat ( int  dim,
octave_idx_type  n,
const Sparse< double > *  sparse_list 
)
staticinherited
void Sparse< double >::change_capacity ( octave_idx_type  nz)
inlineinherited

Definition at line 505 of file Sparse.h.

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

Definition at line 342 of file Sparse.h.

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

Definition at line 353 of file Sparse.h.

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

Definition at line 364 of file Sparse.h.

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

Definition at line 423 of file Sparse.h.

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

Definition at line 431 of file Sparse.h.

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

Definition at line 439 of file Sparse.h.

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

Definition at line 544 of file Sparse.h.

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

Definition at line 552 of file Sparse.h.

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

Definition at line 554 of file Sparse.h.

octave_idx_type Sparse< double >::cols ( void  ) const
inlineinherited
ColumnVector SparseMatrix::column ( octave_idx_type  i) const
octave_idx_type Sparse< double >::columns ( void  ) const
inlineinherited

Definition at line 273 of file Sparse.h.

Referenced by row().

octave_idx_type Sparse< double >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited
SparseMatrix SparseMatrix::concat ( const SparseMatrix rb,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 537 of file dSparse.cc.

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

SparseComplexMatrix SparseMatrix::concat ( const SparseComplexMatrix rb,
const Array< octave_idx_type > &  ra_idx 
)
SparseMatrix SparseMatrix::cumprod ( int  dim = -1) const

Definition at line 7369 of file dSparse.cc.

References SPARSE_CUMPROD.

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

Definition at line 7375 of file dSparse.cc.

References SPARSE_CUMSUM.

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

Definition at line 522 of file Sparse.h.

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

Definition at line 526 of file Sparse.h.

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

Definition at line 528 of file Sparse.h.

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

Definition at line 1131 of file dSparse.cc.

Referenced by determinant(), and Fdet().

DET SparseMatrix::determinant ( octave_idx_type info) const

Definition at line 1139 of file dSparse.cc.

References determinant().

DET SparseMatrix::determinant ( octave_idx_type info,
double rcond,
bool  calc_cond = true 
) const
SparseMatrix SparseMatrix::diag ( octave_idx_type  k = 0) const

Definition at line 7430 of file dSparse.cc.

References MSparse< T >::diag().

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

Definition at line 268 of file Sparse.h.

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

Definition at line 269 of file Sparse.h.

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

Definition at line 291 of file Sparse.h.

Referenced by max(), and min().

SparseMatrix SparseMatrix::dinverse ( MatrixType mattyp,
octave_idx_type info,
double rcond,
const bool  force = false,
const bool  calccond = true 
) const
private
Matrix SparseMatrix::dsolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::dsolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::dsolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::dsolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
double & Sparse< double >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 374 of file Sparse.h.

Referenced by max(), and min().

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

Definition at line 380 of file Sparse.h.

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

Definition at line 386 of file Sparse.h.

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

Definition at line 449 of file Sparse.h.

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

Definition at line 451 of file Sparse.h.

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

Definition at line 453 of file Sparse.h.

void * SparseMatrix::factorize ( octave_idx_type err,
double rcond,
Matrix Control,
Matrix Info,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
Matrix SparseMatrix::fsolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::fsolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::fsolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::fsolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
octave_idx_type Sparse< double >::get_col_index ( octave_idx_type  k)
inlineinherited

Definition at line 276 of file Sparse.h.

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

Definition at line 275 of file Sparse.h.

SparseMatrix SparseMatrix::hermitian ( void  ) const
inline

Definition at line 145 of file dSparse.h.

References transpose().

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

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

Definition at line 696 of file Sparse.h.

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.

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

Definition at line 86 of file MSparse.h.

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

Definition at line 174 of file dSparse.cc.

References MSparse< T >::insert().

Referenced by concat().

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

Definition at line 182 of file dSparse.cc.

References MSparse< T >::insert().

SparseMatrix SparseMatrix::inverse ( void  ) const

Definition at line 741 of file dSparse.cc.

Referenced by Finv(), inverse(), and xpow().

SparseMatrix SparseMatrix::inverse ( MatrixType mattype) const

Definition at line 750 of file dSparse.cc.

References inverse().

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

Definition at line 758 of file dSparse.cc.

References inverse().

SparseMatrix SparseMatrix::inverse ( MatrixType mattype,
octave_idx_type info,
double rcond,
bool  force = false,
bool  calc_cond = true 
) const
SparseMatrix SparseMatrix::ipermute ( const Array< octave_idx_type > &  vec) const

Definition at line 7489 of file dSparse.cc.

References MSparse< T >::ipermute().

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

Definition at line 517 of file Sparse.h.

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

Definition at line 515 of file Sparse.h.

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

Definition at line 266 of file Sparse.h.

Matrix SparseMatrix::ltsolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::ltsolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::ltsolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::ltsolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
void Sparse< double >::make_unique ( void  )
inlineprotectedinherited

Definition at line 150 of file Sparse.h.

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

Definition at line 113 of file MSparse.h.

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

Definition at line 118 of file MSparse.h.

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

Definition at line 632 of file Sparse.h.

Matrix SparseMatrix::matrix_value ( void  ) const
SparseMatrix SparseMatrix::max ( int  dim = -1) const

Definition at line 189 of file dSparse.cc.

SparseMatrix SparseMatrix::max ( Array< octave_idx_type > &  index,
int  dim = -1 
) const
Sparse<double > Sparse< double >::maybe_compress ( bool  remove_zeros = false)
inlineinherited

Definition at line 481 of file Sparse.h.

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

Definition at line 577 of file Sparse.h.

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

Definition at line 579 of file Sparse.h.

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

Definition at line 584 of file Sparse.h.

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

Definition at line 340 of file dSparse.cc.

SparseMatrix SparseMatrix::min ( Array< octave_idx_type > &  index,
int  dim = -1 
) const
octave_idx_type Sparse< double >::ndims ( void  ) const
inlineinherited

Definition at line 556 of file Sparse.h.

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

Definition at line 263 of file Sparse.h.

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

Definition at line 257 of file Sparse.h.

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 245 of file Sparse.h.

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

Definition at line 128 of file dSparse.cc.

References a.

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

Definition at line 406 of file Sparse.h.

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

Definition at line 411 of file Sparse.h.

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

Definition at line 416 of file Sparse.h.

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

Definition at line 469 of file Sparse.h.

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

Definition at line 470 of file Sparse.h.

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

Definition at line 475 of file Sparse.h.

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

Definition at line 97 of file dSparse.h.

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

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

Definition at line 7483 of file dSparse.cc.

References MSparse< T >::permute().

void Sparse< double >::print_info ( std::ostream &  os,
const std::string prefix 
) const
inherited
SparseMatrix SparseMatrix::prod ( int  dim = -1) const

Definition at line 7381 of file dSparse.cc.

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

Referenced by prod().

OCTAVE_NORETURN double Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  n 
) const
inherited
OCTAVE_NORETURN double & Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  n 
)
inherited
OCTAVE_NORETURN double Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
) const
inherited
OCTAVE_NORETURN double & Sparse< double >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
)
inherited
OCTAVE_NORETURN double Sparse< double >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
) const
inherited
OCTAVE_NORETURN double & Sparse< double >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
)
inherited
SparseMatrix SparseMatrix::reshape ( const dim_vector new_dims) const

Definition at line 7477 of file dSparse.cc.

References MSparse< T >::reshape().

void Sparse< double >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
inherited
void Sparse< double >::resize ( const dim_vector dv)
inherited
void Sparse< double >::resize1 ( octave_idx_type  n)
inherited
octave_idx_type* Sparse< double >::ridx ( void  )
inlineinherited
octave_idx_type& Sparse< double >::ridx ( octave_idx_type  i)
inlineinherited

Definition at line 531 of file Sparse.h.

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

Definition at line 539 of file Sparse.h.

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

Definition at line 541 of file Sparse.h.

RowVector SparseMatrix::row ( octave_idx_type  i) const
octave_idx_type Sparse< double >::rows ( void  ) const
inlineinherited
Matrix SparseMatrix::solve ( MatrixType typ,
const Matrix b 
) const

Definition at line 6683 of file dSparse.cc.

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

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

Definition at line 6691 of file dSparse.cc.

References solve().

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

Definition at line 6699 of file dSparse.cc.

References solve().

Matrix SparseMatrix::solve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  singular_fallback = true 
) const
ComplexMatrix SparseMatrix::solve ( MatrixType typ,
const ComplexMatrix b 
) const

Definition at line 6813 of file dSparse.cc.

References solve().

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

Definition at line 6821 of file dSparse.cc.

References solve().

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

Definition at line 6829 of file dSparse.cc.

References solve().

ComplexMatrix SparseMatrix::solve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  singular_fallback = true 
) const
SparseMatrix SparseMatrix::solve ( MatrixType typ,
const SparseMatrix b 
) const

Definition at line 6748 of file dSparse.cc.

References solve().

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

Definition at line 6756 of file dSparse.cc.

References solve().

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

Definition at line 6764 of file dSparse.cc.

References solve().

SparseMatrix SparseMatrix::solve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  singular_fallback = true 
) const
SparseComplexMatrix SparseMatrix::solve ( MatrixType typ,
const SparseComplexMatrix b 
) const

Definition at line 6878 of file dSparse.cc.

References solve().

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

Definition at line 6886 of file dSparse.cc.

References solve().

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

Definition at line 6894 of file dSparse.cc.

References solve().

SparseComplexMatrix SparseMatrix::solve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  singular_fallabck = true 
) const
ColumnVector SparseMatrix::solve ( MatrixType typ,
const ColumnVector b 
) const

Definition at line 6943 of file dSparse.cc.

References solve().

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

Definition at line 6950 of file dSparse.cc.

References solve().

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

Definition at line 6958 of file dSparse.cc.

References solve().

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

Definition at line 6965 of file dSparse.cc.

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

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

Definition at line 6975 of file dSparse.cc.

References solve().

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

Definition at line 6983 of file dSparse.cc.

References solve().

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

Definition at line 6991 of file dSparse.cc.

References solve().

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

Definition at line 6999 of file dSparse.cc.

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

Matrix SparseMatrix::solve ( const Matrix b) const

Definition at line 7009 of file dSparse.cc.

References solve().

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

Definition at line 7017 of file dSparse.cc.

References solve().

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

Definition at line 7024 of file dSparse.cc.

References solve().

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

Definition at line 7031 of file dSparse.cc.

References solve().

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

Definition at line 7070 of file dSparse.cc.

References solve().

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

Definition at line 7077 of file dSparse.cc.

References solve().

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

Definition at line 7084 of file dSparse.cc.

References solve().

SparseMatrix SparseMatrix::solve ( const SparseMatrix b) const

Definition at line 7039 of file dSparse.cc.

References solve().

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

Definition at line 7047 of file dSparse.cc.

References solve().

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

Definition at line 7055 of file dSparse.cc.

References solve().

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

Definition at line 7062 of file dSparse.cc.

References solve().

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b) const

Definition at line 7093 of file dSparse.cc.

References solve().

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

Definition at line 7101 of file dSparse.cc.

References solve().

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

Definition at line 7108 of file dSparse.cc.

References solve().

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

Definition at line 7115 of file dSparse.cc.

References solve().

ColumnVector SparseMatrix::solve ( const ColumnVector b) const

Definition at line 7124 of file dSparse.cc.

References solve().

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

Definition at line 7131 of file dSparse.cc.

References solve().

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

Definition at line 7138 of file dSparse.cc.

References solve().

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

Definition at line 7145 of file dSparse.cc.

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

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b) const

Definition at line 7155 of file dSparse.cc.

References solve().

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

Definition at line 7163 of file dSparse.cc.

References solve().

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

Definition at line 7170 of file dSparse.cc.

References solve().

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

Definition at line 7177 of file dSparse.cc.

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

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

Definition at line 7471 of file dSparse.cc.

References MSparse< T >::squeeze().

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

Definition at line 7393 of file dSparse.cc.

References SPARSE_REDUCTION_OP.

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

Definition at line 7399 of file dSparse.cc.

References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.

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

Definition at line 603 of file Sparse.h.

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

Definition at line 614 of file Sparse.h.

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

Definition at line 624 of file Sparse.h.

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

Definition at line 627 of file Sparse.h.

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

Definition at line 610 of file Sparse.h.

Referenced by too_large_for_float().

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

Definition at line 618 of file Sparse.h.

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

Definition at line 621 of file Sparse.h.

SparseMatrix SparseMatrix::tinverse ( MatrixType mattyp,
octave_idx_type info,
double rcond,
const bool  force = false,
const bool  calccond = true 
) const
private
bool SparseMatrix::too_large_for_float ( void  ) const
SparseMatrix SparseMatrix::transpose ( void  ) const
inline
Matrix SparseMatrix::trisolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::trisolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::trisolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::trisolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
Matrix SparseMatrix::utsolve ( MatrixType typ,
const Matrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
ComplexMatrix SparseMatrix::utsolve ( MatrixType typ,
const ComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseMatrix SparseMatrix::utsolve ( MatrixType typ,
const SparseMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
SparseComplexMatrix SparseMatrix::utsolve ( MatrixType typ,
const SparseComplexMatrix b,
octave_idx_type info,
double rcond,
solve_singularity_handler  sing_handler,
bool  calc_cond = false 
) const
private
octave_idx_type* Sparse< double >::xcidx ( void  )
inlineinherited

Definition at line 549 of file Sparse.h.

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

Definition at line 550 of file Sparse.h.

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

Definition at line 523 of file Sparse.h.

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

Definition at line 524 of file Sparse.h.

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

Definition at line 312 of file Sparse.h.

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

Definition at line 319 of file Sparse.h.

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

Definition at line 326 of file Sparse.h.

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

Definition at line 327 of file Sparse.h.

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

Definition at line 332 of file Sparse.h.

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

Definition at line 335 of file Sparse.h.

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

Definition at line 536 of file Sparse.h.

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

Definition at line 537 of file Sparse.h.

Friends And Related Function Documentation

OCTAVE_API friend SparseMatrix atan2 ( const double x,
const SparseMatrix y 
)
friend

Definition at line 606 of file dSparse.cc.

OCTAVE_API friend SparseMatrix atan2 ( const SparseMatrix x,
const double y 
)
friend

Definition at line 628 of file dSparse.cc.

OCTAVE_API friend SparseMatrix atan2 ( const SparseMatrix x,
const SparseMatrix y 
)
friend

Definition at line 669 of file dSparse.cc.

OCTAVE_API SparseMatrix imag ( const SparseComplexMatrix a)
friend

Definition at line 578 of file dSparse.cc.

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

Definition at line 7442 of file dSparse.cc.

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

Definition at line 7463 of file dSparse.cc.

OCTAVE_API SparseMatrix real ( const SparseComplexMatrix a)
friend

Definition at line 557 of file dSparse.cc.

Member Data Documentation

dim_vector Sparse< double >::dimensions
inherited

Definition at line 170 of file Sparse.h.

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

Definition at line 168 of file Sparse.h.


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