GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Sparse< T, Alloc > Class Template Reference

#include "Sparse.h"

Inheritance diagram for Sparse< T, Alloc >:
Collaboration diagram for Sparse< T, Alloc >:

Classes

class  SparseRep
 

Public Types

typedef T element_type
 

Public Member Functions

OCTAVE_API Sparse (const Array< T > &a)
 
OCTAVE_API 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)
 
OCTAVE_API 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())
 
OCTAVE_API Sparse (const PermMatrix &a)
 
 Sparse (const Sparse< T, Alloc > &a)
 
OCTAVE_API 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)
 
OCTAVE_API Sparse (octave_idx_type nr, octave_idx_type nc, T val)
 
 Sparse (void)
 
virtual ~Sparse (void)
 
bool any_element_is_nan (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_idx_type columns (void) const
 
OCTAVE_API octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) 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 Sparse< T, Allocdiag (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)
 
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
 
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)
 
Sparse< T, Allocipermute (const Array< octave_idx_type > &vec) const
 
bool isempty (void) const
 
bool issquare (void) 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 (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...
 
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
 
OCTAVE_API Sparse< T, Alloc > & operator= (const Sparse< T, Alloc > &a)
 
OCTAVE_API Sparse< T, Allocpermute (const Array< octave_idx_type > &vec, bool inv=false) const
 
OCTAVE_API void print_info (std::ostream &os, const std::string &prefix) 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 Sparse< T, Allocreshape (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_idx_type rows (void) 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
 
Sparse< T, Allocsqueeze (void) 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 Sparse< T, Alloctranspose (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
 

Static Private Member Functions

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

Detailed Description

template<typename T, typename Alloc>
class Sparse< T, Alloc >

Definition at line 46 of file Sparse.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 52 of file Sparse.h.

Constructor & Destructor Documentation

◆ Sparse() [1/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( void  )
inline

Definition at line 259 of file Sparse.h.

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

◆ Sparse() [2/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( octave_idx_type  n)
inlineexplicit

Definition at line 265 of file Sparse.h.

◆ Sparse() [3/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( octave_idx_type  nr,
octave_idx_type  nc 
)
inlineexplicit

Definition at line 269 of file Sparse.h.

◆ Sparse() [4/14]

◆ Sparse() [5/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( const dim_vector dv,
octave_idx_type  nz 
)
inline

Definition at line 275 of file Sparse.h.

◆ Sparse() [6/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( octave_idx_type  nr,
octave_idx_type  nc,
octave_idx_type  nz 
)
inline

Definition at line 279 of file Sparse.h.

◆ Sparse() [7/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( const dim_vector dv,
octave_idx_type  nz,
T *  ptr,
octave_idx_type ridx,
octave_idx_type cidx,
const Alloc xallocator = Alloc () 
)
inline

Definition at line 290 of file Sparse.h.

◆ Sparse() [8/14]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc >::Sparse ( const PermMatrix a)
explicit

◆ Sparse() [9/14]

template<typename T , typename Alloc >
template<typename U >
Sparse< T, Alloc >::Sparse ( const Sparse< U > &  a)
inline

Definition at line 303 of file Sparse.h.

◆ Sparse() [10/14]

template<typename T , typename Alloc >
Sparse< T, Alloc >::Sparse ( const Sparse< T, Alloc > &  a)
inline

Definition at line 310 of file Sparse.h.

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

◆ Sparse() [11/14]

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

Definition at line 249 of file Sparse.cc.

References dim_vector::ndims().

◆ Sparse() [12/14]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc >::Sparse ( const Sparse< T, Alloc > &  a,
const dim_vector dv 
)

Definition at line 261 of file Sparse.cc.

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

◆ Sparse() [13/14]

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc >::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 
)

Definition at line 304 of file Sparse.cc.

References r.

◆ Sparse() [14/14]

◆ ~Sparse()

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc >::~Sparse ( void  )
virtual

Definition at line 708 of file Sparse.cc.

Member Function Documentation

◆ any_element_is_nan()

template<typename T , typename Alloc >
bool Sparse< T, Alloc >::any_element_is_nan ( void  ) const
inline

◆ array_value()

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

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

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 
)

Definition at line 2031 of file Sparse.cc.

◆ byte_size()

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

◆ cat()

◆ change_capacity()

◆ checkelem() [1/6]

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

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
inline

◆ checkelem() [3/6]

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

◆ checkelem() [4/6]

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

◆ checkelem() [5/6]

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

◆ checkelem() [6/6]

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

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)
inline

◆ cidx() [2/4]

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

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  )
inline

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::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(), SparseMatrix::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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_col_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_jc(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), SparseComplexMatrix::prod(), SparseMatrix::prod(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), and xpow().

◆ cidx() [4/4]

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

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
inline

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::SparseMatrix(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::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(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().

◆ columns()

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

◆ 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

Definition at line 735 of file Sparse.cc.

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

◆ data() [1/4]

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

◆ data() [2/4]

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

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  )
inline

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::SparseMatrix(), SparseComplexMatrix::abs(), SparseMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), SparseMatrix::all_elements_are_zero(), SparseComplexMatrix::all_integers(), SparseMatrix::all_integers(), SparseBoolMatrix::any(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), SparseMatrix::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::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(), SparseMatrix::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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_data(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::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(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), and xpow().

◆ data() [4/4]

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

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]

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

Definition at line 1419 of file Sparse.cc.

References current_liboctave_error_handler.

◆ diag()

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::diag ( octave_idx_type  k = 0) const

Definition at line 2492 of file Sparse.cc.

References abs(), d, elem, and n.

Referenced by SparseBoolMatrix::diag(), and MSparse< T >::diag().

◆ dim1()

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

◆ dim2()

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

◆ dims()

◆ elem() [1/6]

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

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
inline

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 
)
inline

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
inline

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
inline

Definition at line 512 of file Sparse.h.

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

◆ get_col_index()

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

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)
inline

Definition at line 355 of file Sparse.h.

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

◆ index() [1/2]

◆ index() [2/2]

◆ indices_ok()

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

◆ insert() [1/2]

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 
)

Definition at line 1125 of file Sparse.cc.

References octave_base_value::numel(), and ra_idx.

◆ insert() [2/2]

◆ ipermute()

template<typename T , typename Alloc >
Sparse<T, Alloc> Sparse< T, Alloc >::ipermute ( const Array< octave_idx_type > &  vec) const
inline

Definition at line 545 of file Sparse.h.

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

Referenced by SparseBoolMatrix::ipermute(), and MSparse< T >::ipermute().

◆ isempty()

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

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
inline

Definition at line 568 of file Sparse.h.

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

◆ make_unique()

◆ map() [1/3]

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

◆ map() [2/3]

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

Definition at line 746 of file Sparse.h.

◆ map() [3/3]

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

Definition at line 741 of file Sparse.h.

◆ maybe_compress()

◆ ndims()

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

◆ nil_rep()

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

Definition at line 57 of file Sparse.cc.

◆ nnz()

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

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::SparseMatrix(), SparseComplexMatrix::abs(), SparseMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), SparseMatrix::all_elements_are_zero(), SparseComplexMatrix::all_integers(), SparseMatrix::all_integers(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), SparseMatrix::any_element_is_nan(), Sparse< T, Alloc >::SparseRep::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::delete_elements(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), octave_sparse_matrix::index_vector(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), max(), min(), octave_base_sparse< T >::nnz(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::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
inline

◆ nzmax()

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

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

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

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
inline

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 
)
inline

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
inline

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)
inline

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
inline

Definition at line 519 of file Sparse.h.

References elem, and n.

◆ operator=()

template<typename T , typename Alloc >
Sparse< T, Alloc > & Sparse< T, Alloc >::operator= ( const Sparse< T, Alloc > &  a)

◆ permute()

template<typename T , typename Alloc >
OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const

◆ print_info()

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

Definition at line 3094 of file Sparse.cc.

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

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

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 
)

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

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 
)

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

Definition at line 759 of file Sparse.cc.

References n.

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

◆ reshape()

◆ resize() [1/2]

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

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)

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)
inline

◆ ridx() [2/4]

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

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  )
inline

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::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(), SparseMatrix::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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_row_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_ir(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::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(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), and xpow().

◆ ridx() [4/4]

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

Definition at line 594 of file Sparse.h.

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

◆ rows()

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

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(), SparseMatrix::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(), SparseMatrix::column(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), plus_or_minus(), SparseComplexMatrix::prod(), SparseMatrix::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(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), Sparse< T, Alloc >::xelem(), and xpow().

◆ 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

◆ 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

◆ squeeze()

template<typename T , typename Alloc >
Sparse<T, Alloc> Sparse< T, Alloc >::squeeze ( void  ) const
inline

Definition at line 373 of file Sparse.h.

Referenced by SparseBoolMatrix::squeeze(), and MSparse< T >::squeeze().

◆ test()

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

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
inline

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
inline

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
inline

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
inline

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
inline

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
inline

◆ transpose()

◆ xcidx() [1/2]

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

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)
inline

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)
inline

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
inline

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 
)
inline

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
inline

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
inline

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)
inline

Definition at line 590 of file Sparse.h.

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

◆ xridx() [2/2]

Member Data Documentation

◆ m_dimensions

◆ m_rep


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