GNU Octave  9.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:
MSparse< double > Sparse< T, Alloc >

Public Types

typedef Matrix dense_matrix_type
 
typedef void(* solve_singularity_handler) (double rcond)
 
- Public Types inherited from Sparse< T, Alloc >
typedef T element_type
 

Public Member Functions

 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)
 
 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)
 
 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 ()=default
 
SparseMatrix abs () const
 
SparseBoolMatrix all (int dim=-1) const
 
bool all_elements_are_int_or_inf_or_nan () const
 
bool all_elements_are_zero () const
 
bool all_integers (double &max_val, double &min_val) const
 
SparseBoolMatrix any (int dim=-1) const
 
bool any_element_is_inf_or_nan () const
 
bool any_element_is_nan () const
 
bool any_element_is_negative (bool=false) const
 
bool any_element_not_one_or_zero () const
 
ColumnVector column (octave_idx_type i) const
 
SparseComplexMatrix concat (const SparseComplexMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
SparseMatrix concat (const SparseMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
SparseMatrix cumprod (int dim=-1) const
 
SparseMatrix cumsum (int dim=-1) const
 
DET determinant () 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
 
SparseMatrix hermitian () const
 
SparseMatrixinsert (const SparseMatrix &a, const Array< octave_idx_type > &indx)
 
SparseMatrixinsert (const SparseMatrix &a, octave_idx_type r, octave_idx_type c)
 
SparseMatrix inverse () 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 issymmetric () const
 
Matrix matrix_value () const
 
SparseMatrix max (Array< octave_idx_type > &index, int dim=-1) const
 
SparseMatrix max (int dim=-1) const
 
SparseMatrix min (Array< octave_idx_type > &index, int dim=-1) const
 
SparseMatrix min (int dim=-1) const
 
SparseBoolMatrix operator! () const
 
bool operator!= (const SparseMatrix &a) const
 
SparseMatrixoperator= (const SparseMatrix &a)
 
bool operator== (const SparseMatrix &a) const
 
SparseMatrix permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
SparseMatrix prod (int dim=-1) const
 
SparseMatrix reshape (const dim_vector &new_dims) const
 
RowVector row (octave_idx_type i) 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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
SparseMatrix squeeze () const
 
SparseMatrix sum (int dim=-1) const
 
SparseMatrix sumsq (int dim=-1) const
 
bool too_large_for_float () const
 
SparseMatrix transpose () const
 
- Public Member Functions inherited from MSparse< double >
 MSparse ()
 
 MSparse (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)
 
 MSparse (const dim_vector &dv, octave_idx_type nz=0)
 
 MSparse (const MSparse< double > &a)
 
 MSparse (const MSparse< double > &a, const dim_vector &dv)
 
 MSparse (const PermMatrix &a)
 
 MSparse (const Sparse< double > &a)
 
 MSparse (const Sparse< U > &a)
 
 MSparse (octave_idx_type n, octave_idx_type m)
 
 MSparse (octave_idx_type r, octave_idx_type c, double val)
 
 MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
 ~MSparse ()=default
 
MSparse< double > diag (octave_idx_type k=0) 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)
 
MSparse< double > ipermute (const Array< octave_idx_type > &vec) const
 
Sparse< U > map (U(&fcn)(const double &)) const
 
Sparse< U > map (U(&fcn)(double)) const
 
MSparse< double > & operator= (const MSparse< double > &a)
 
MSparse< double > permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
MSparse< double > reshape (const dim_vector &new_dims) const
 
MSparse< double > squeeze () const
 
MSparse< double > transpose () const
 
- Public Member Functions inherited from Sparse< T, Alloc >
 Sparse ()
 
 Sparse (const Array< T > &a)
 
 Sparse (const Array< T > &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)
 
 Sparse (const dim_vector &dv)
 
 Sparse (const dim_vector &dv, octave_idx_type nz)
 
 Sparse (const dim_vector &dv, octave_idx_type nz, T *ptr, octave_idx_type *ridx, octave_idx_type *cidx, const Alloc &xallocator=Alloc())
 
 Sparse (const PermMatrix &a)
 
 Sparse (const Sparse< T, Alloc > &a)
 
 Sparse (const Sparse< T, Alloc > &a, const dim_vector &dv)
 
template<typename U >
 Sparse (const Sparse< U > &a)
 
 Sparse (octave_idx_type n)
 
 Sparse (octave_idx_type nr, octave_idx_type nc)
 
 Sparse (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz)
 
 Sparse (octave_idx_type nr, octave_idx_type nc, T val)
 
virtual ~Sparse ()
 
bool any_element_is_nan () const
 
Array< T > array_value () const
 
void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Sparse< T, Alloc > &rhs)
 
void assign (const octave::idx_vector &i, const octave::idx_vector &j, const T &rhs)
 
void assign (const octave::idx_vector &i, const Sparse< T, Alloc > &rhs)
 
void assign (const octave::idx_vector &i, const T &rhs)
 
std::size_t byte_size () 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_typecidx () const
 
octave_idx_typecidx (octave_idx_type i)
 
octave_idx_type cidx (octave_idx_type i) const
 
octave_idx_type cols () const
 
octave_idx_type columns () const
 
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
T * data ()
 
T * data () const
 
T & data (octave_idx_type i)
 
data (octave_idx_type i) const
 
void delete_elements (const octave::idx_vector &i)
 
void delete_elements (const octave::idx_vector &i, const octave::idx_vector &j)
 
void delete_elements (int dim, const octave::idx_vector &i)
 
Sparse< T, Allocdiag (octave_idx_type k=0) const
 
octave_idx_type dim1 () const
 
octave_idx_type dim2 () const
 
dim_vector dims () 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)
 
Sparse< T, Allocindex (const octave::idx_vector &i, bool resize_ok=false) const
 
Sparse< T, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok=false) const
 
bool indices_ok () const
 
Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, const Array< octave_idx_type > &idx)
 
Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, octave_idx_type r, octave_idx_type c)
 
Sparse< T, Allocipermute (const Array< octave_idx_type > &vec) const
 
bool isempty () const
 
bool issquare () const
 
template<typename U , typename F >
Sparse< U > map (F fcn) const
 
template<typename U >
Sparse< U > map (U(&fcn)(const T &)) const
 
template<typename U >
Sparse< U > map (U(&fcn)(T)) const
 
Sparse< T, Allocmaybe_compress (bool remove_zeros=false)
 
octave_idx_type ndims () const
 
octave_idx_type nnz () const
 Actual number of nonzero terms. More...
 
octave_idx_type numel () const
 
octave_idx_type nzmax () const
 Amount of storage for nonzero elements. More...
 
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
 
Sparse< T, Alloc > & operator= (const Sparse< T, Alloc > &a)
 
Sparse< T, Allocpermute (const Array< octave_idx_type > &vec, bool inv=false) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_NORETURN T & range_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
OCTAVE_NORETURN T range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN T & range_error (const char *fcn, octave_idx_type i, octave_idx_type j)
 
OCTAVE_NORETURN T range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
 
OCTAVE_NORETURN T & range_error (const char *fcn, octave_idx_type n)
 
OCTAVE_NORETURN T range_error (const char *fcn, octave_idx_type n) const
 
Sparse< T, Allocreshape (const dim_vector &new_dims) const
 
void resize (const dim_vector &dv)
 
void resize (octave_idx_type r, octave_idx_type c)
 
void resize1 (octave_idx_type n)
 
octave_idx_typeridx ()
 
octave_idx_typeridx () const
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_type rows () const
 
Sparse< T, Allocsort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Sparse< T, Allocsort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Sparse< T, Allocsqueeze () 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
 
Sparse< T, Alloctranspose () const
 
octave_idx_typexcidx ()
 
octave_idx_typexcidx (octave_idx_type i)
 
T * xdata ()
 
T & xdata (octave_idx_type i)
 
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_typexridx (octave_idx_type i)
 

Friends

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

Additional Inherited Members

- Static Public Member Functions inherited from Sparse< T, Alloc >
static Sparse< T, Alloccat (int dim, octave_idx_type n, const Sparse< T, Alloc > *sparse_list)
 
- Protected Member Functions inherited from Sparse< T, Alloc >
void make_unique ()
 
- Protected Attributes inherited from Sparse< T, Alloc >
dim_vector m_dimensions
 
Sparse< T, Alloc >::SparseRepm_rep
 

Detailed Description

Definition at line 43 of file dSparse.h.

Member Typedef Documentation

◆ dense_matrix_type

Definition at line 49 of file dSparse.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 ( )
inline

Definition at line 53 of file dSparse.h.

Referenced by inverse(), max(), and min().

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

◆ ~SparseMatrix()

SparseMatrix::~SparseMatrix ( )
default

Member Function Documentation

◆ abs()

SparseMatrix SparseMatrix::abs ( ) const

Definition at line 7431 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 7371 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 ( ) const

Definition at line 7281 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 ( ) const

Definition at line 7269 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 7377 of file dSparse.cc.

References SPARSE_ANY_OP.

◆ any_element_is_inf_or_nan()

bool SparseMatrix::any_element_is_inf_or_nan ( ) const

Definition at line 7239 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 ( ) const

◆ any_element_is_negative()

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

◆ any_element_not_one_or_zero()

bool SparseMatrix::any_element_not_one_or_zero ( ) const

◆ column()

◆ 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().

◆ cumprod()

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

Definition at line 7383 of file dSparse.cc.

References SPARSE_CUMPROD.

◆ cumsum()

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

Definition at line 7389 of file dSparse.cc.

References SPARSE_CUMSUM.

Referenced by Fcumsum().

◆ determinant() [1/3]

DET SparseMatrix::determinant ( ) const

Definition at line 1012 of file dSparse.cc.

Referenced by determinant().

◆ determinant() [2/3]

DET SparseMatrix::determinant ( octave_idx_type info) const

Definition at line 1020 of file dSparse.cc.

References determinant().

◆ determinant() [3/3]

◆ diag()

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

Definition at line 7444 of file dSparse.cc.

References MSparse< T >::diag().

◆ hermitian()

SparseMatrix SparseMatrix::hermitian ( ) const
inline

Definition at line 130 of file dSparse.h.

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

◆ insert() [1/2]

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() [2/2]

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 ( ) const

Definition at line 603 of file dSparse.cc.

Referenced by inverse().

◆ inverse() [2/4]

SparseMatrix SparseMatrix::inverse ( MatrixType mattype) const

Definition at line 612 of file dSparse.cc.

References inverse().

◆ inverse() [3/4]

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

Definition at line 620 of file dSparse.cc.

References inverse().

◆ inverse() [4/4]

◆ ipermute()

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

Definition at line 7503 of file dSparse.cc.

References MSparse< T >::ipermute().

◆ issymmetric()

bool SparseMatrix::issymmetric ( ) const

◆ matrix_value()

◆ max() [1/2]

◆ max() [2/2]

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

Definition at line 186 of file dSparse.cc.

◆ min() [1/2]

◆ min() [2/2]

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

Definition at line 337 of file dSparse.cc.

◆ operator!()

◆ operator!=()

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

Definition at line 125 of file dSparse.cc.

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

References MSparse< T >::permute().

◆ prod()

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

Definition at line 7395 of file dSparse.cc.

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

Referenced by Fprod(), and prod().

◆ reshape()

SparseMatrix SparseMatrix::reshape ( const dim_vector new_dims) const

Definition at line 7491 of file dSparse.cc.

References MSparse< T >::reshape().

◆ row()

◆ solve() [1/48]

ColumnVector SparseMatrix::solve ( const ColumnVector b) const

Definition at line 7138 of file dSparse.cc.

References solve().

◆ solve() [2/48]

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

Definition at line 7145 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 7152 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 7159 of file dSparse.cc.

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

◆ solve() [5/48]

ComplexColumnVector SparseMatrix::solve ( const ComplexColumnVector b) const

Definition at line 7169 of file dSparse.cc.

References solve().

◆ solve() [6/48]

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

Definition at line 7177 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 7184 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 7191 of file dSparse.cc.

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

◆ solve() [9/48]

ComplexMatrix SparseMatrix::solve ( const ComplexMatrix b) const

◆ solve() [10/48]

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

Definition at line 7084 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 7091 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 7098 of file dSparse.cc.

References solve().

◆ solve() [13/48]

Matrix SparseMatrix::solve ( const Matrix b) const

Definition at line 7023 of file dSparse.cc.

References solve().

◆ solve() [14/48]

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

Definition at line 7031 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 7038 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 7045 of file dSparse.cc.

References solve().

◆ solve() [17/48]

SparseComplexMatrix SparseMatrix::solve ( const SparseComplexMatrix b) const

Definition at line 7107 of file dSparse.cc.

References solve().

◆ solve() [18/48]

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

Definition at line 7115 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 7122 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 7129 of file dSparse.cc.

References solve().

◆ solve() [21/48]

SparseMatrix SparseMatrix::solve ( const SparseMatrix b) const

Definition at line 7053 of file dSparse.cc.

References solve().

◆ solve() [22/48]

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

Definition at line 7061 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 7069 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 7076 of file dSparse.cc.

References solve().

◆ solve() [25/48]

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

Definition at line 6957 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 6964 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 6972 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 6979 of file dSparse.cc.

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

◆ solve() [29/48]

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

Definition at line 6989 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 6997 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 7005 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 7013 of file dSparse.cc.

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

◆ solve() [33/48]

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

Definition at line 6827 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 6835 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 6843 of file dSparse.cc.

References solve().

◆ solve() [36/48]

◆ solve() [37/48]

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

Definition at line 6697 of file dSparse.cc.

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

◆ solve() [38/48]

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

Definition at line 6705 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 6713 of file dSparse.cc.

References solve().

◆ solve() [40/48]

◆ solve() [41/48]

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

Definition at line 6892 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 6900 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 6908 of file dSparse.cc.

References solve().

◆ solve() [44/48]

◆ solve() [45/48]

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

Definition at line 6762 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 6770 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 6778 of file dSparse.cc.

References solve().

◆ solve() [48/48]

◆ squeeze()

SparseMatrix SparseMatrix::squeeze ( ) const

Definition at line 7485 of file dSparse.cc.

References MSparse< T >::squeeze().

◆ sum()

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

Definition at line 7407 of file dSparse.cc.

References SPARSE_REDUCTION_OP.

Referenced by Fsum().

◆ sumsq()

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

Definition at line 7413 of file dSparse.cc.

References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.

◆ too_large_for_float()

bool SparseMatrix::too_large_for_float ( ) const

◆ transpose()

SparseMatrix SparseMatrix::transpose ( ) const
inline

Friends And Related Function Documentation

◆ imag

SparseMatrix imag ( const SparseComplexMatrix a)
friend

Definition at line 575 of file dSparse.cc.

◆ operator<<

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

Definition at line 7455 of file dSparse.cc.

◆ operator>>

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

Definition at line 7477 of file dSparse.cc.

◆ real

SparseMatrix real ( const SparseComplexMatrix a)
friend

Definition at line 554 of file dSparse.cc.


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