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

#include "MSparse.h"

Inheritance diagram for MSparse< T >:
Collaboration diagram for MSparse< T >:

Public Types

typedef T element_type
 

Public Member Functions

 MSparse (void)
 
 MSparse (octave_idx_type n, octave_idx_type m)
 
 MSparse (const dim_vector &dv, octave_idx_type nz=0)
 
 MSparse (const MSparse< T > &a)
 
 MSparse (const MSparse< T > &a, const dim_vector &dv)
 
 MSparse (const Sparse< T > &a)
 
template<typename U >
 MSparse (const Sparse< U > &a)
 
 MSparse (const Array< T > &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)
 
 MSparse (octave_idx_type r, octave_idx_type c, T val)
 
 MSparse (const PermMatrix &a)
 
 MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
 ~MSparse (void)=default
 
bool any_element_is_nan (void) const
 
Array< T > array_value (void) const
 
void assign (const idx_vector &i, const Sparse< T > &rhs)
 
void assign (const idx_vector &i, const idx_vector &j, const Sparse< T > &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)
 
T & checkelem (octave_idx_type n)
 
T & checkelem (octave_idx_type i, octave_idx_type j)
 
T & checkelem (const Array< octave_idx_type > &ra_idx)
 
checkelem (octave_idx_type n) const
 
checkelem (octave_idx_type i, octave_idx_type j) const
 
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
 
octave_idx_type columns (void) const
 
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
T * data (void)
 
T & data (octave_idx_type i)
 
data (octave_idx_type i) const
 
T * data (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)
 
MSparse< T > diag (octave_idx_type k=0) const
 
octave_idx_type dim1 (void) const
 
octave_idx_type dim2 (void) const
 
dim_vector dims (void) const
 
T & elem (octave_idx_type n)
 
T & elem (octave_idx_type i, octave_idx_type j)
 
T & elem (const Array< octave_idx_type > &ra_idx)
 
elem (octave_idx_type n) const
 
elem (octave_idx_type i, octave_idx_type j) const
 
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)
 
Sparse< T > index (const idx_vector &i, bool resize_ok=false) const
 
Sparse< T > index (const idx_vector &i, const idx_vector &j, bool resize_ok=false) const
 
bool indices_ok (void) const
 
MSparse< T > & insert (const Sparse< T > &a, octave_idx_type r, octave_idx_type c)
 
MSparse< T > & insert (const Sparse< T > &a, const Array< octave_idx_type > &indx)
 
MSparse< T > ipermute (const Array< octave_idx_type > &vec) const
 
bool is_empty (void) const
 
bool is_square (void) const
 
bool isempty (void) const
 
bool issquare (void) const
 
octave_idx_type length (void) const
 
template<typename U >
MSparse< U > map (U(&fcn)(T)) const
 
template<typename U >
MSparse< U > map (U(&fcn)(const T &)) const
 
template<typename U , typename F >
Sparse< U > map (F fcn) const
 
Sparse< T > maybe_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
 
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...
 
T & operator() (octave_idx_type n)
 
T & operator() (octave_idx_type i, octave_idx_type j)
 
T & operator() (const Array< octave_idx_type > &ra_idx)
 
operator() (octave_idx_type n) const
 
operator() (octave_idx_type i, octave_idx_type j) const
 
operator() (const Array< octave_idx_type > &ra_idx) const
 
MSparse< T > & operator= (const MSparse< T > &a)
 
MSparse< T > permute (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, octave_idx_type n) const
 
OCTAVE_NORETURN T & range_error (const char *fcn, octave_idx_type n)
 
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 i, octave_idx_type j)
 
OCTAVE_NORETURN T range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN T & range_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
MSparse< T > 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
 
octave_idx_type rows (void) const
 
Sparse< T > sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Sparse< T > sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
MSparse< T > squeeze (void) const
 
template<typename F , bool zero>
bool test (F fcn) const
 
template<typename F >
bool test_all (F fcn) const
 
bool test_all (bool(&fcn)(T)) const
 
bool test_all (bool(&fcn)(const T &)) const
 
template<typename F >
bool test_any (F fcn) const
 
bool test_any (bool(&fcn)(T)) const
 
bool test_any (bool(&fcn)(const T &)) const
 
MSparse< T > transpose (void) const
 
octave_idx_typexcidx (void)
 
octave_idx_typexcidx (octave_idx_type i)
 
T * xdata (void)
 
T & xdata (octave_idx_type i)
 
T & xelem (octave_idx_type n)
 
xelem (octave_idx_type n) const
 
T & xelem (octave_idx_type i, octave_idx_type j)
 
xelem (octave_idx_type i, octave_idx_type j) const
 
T & xelem (const Array< octave_idx_type > &ra_idx)
 
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< T > cat (int dim, octave_idx_type n, const Sparse< T > *sparse_list)
 

Public Attributes

dim_vector dimensions
 
Sparse< T >::SparseReprep
 

Protected Member Functions

void make_unique (void)
 

Detailed Description

template<typename T>
class MSparse< T >

Definition at line 38 of file MSparse.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 51 of file Sparse.h.

Constructor & Destructor Documentation

◆ MSparse() [1/11]

template<typename T>
MSparse< T >::MSparse ( void  )
inline

Definition at line 43 of file MSparse.h.

◆ MSparse() [2/11]

template<typename T>
MSparse< T >::MSparse ( octave_idx_type  n,
octave_idx_type  m 
)
inline

Definition at line 45 of file MSparse.h.

◆ MSparse() [3/11]

template<typename T>
MSparse< T >::MSparse ( const dim_vector dv,
octave_idx_type  nz = 0 
)
inline

Definition at line 47 of file MSparse.h.

◆ MSparse() [4/11]

template<typename T>
MSparse< T >::MSparse ( const MSparse< T > &  a)
inline

Definition at line 50 of file MSparse.h.

◆ MSparse() [5/11]

template<typename T>
MSparse< T >::MSparse ( const MSparse< T > &  a,
const dim_vector dv 
)
inline

Definition at line 52 of file MSparse.h.

◆ MSparse() [6/11]

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

Definition at line 54 of file MSparse.h.

◆ MSparse() [7/11]

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

Definition at line 57 of file MSparse.h.

◆ MSparse() [8/11]

template<typename T>
MSparse< T >::MSparse ( const Array< T > &  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 59 of file MSparse.h.

◆ MSparse() [9/11]

template<typename T>
MSparse< T >::MSparse ( octave_idx_type  r,
octave_idx_type  c,
val 
)
inlineexplicit

Definition at line 64 of file MSparse.h.

◆ MSparse() [10/11]

template<typename T>
MSparse< T >::MSparse ( const PermMatrix a)
inlineexplicit

Definition at line 67 of file MSparse.h.

◆ MSparse() [11/11]

template<typename T>
MSparse< T >::MSparse ( octave_idx_type  r,
octave_idx_type  c,
octave_idx_type  num_nz 
)
inline

Definition at line 69 of file MSparse.h.

◆ ~MSparse()

template<typename T>
MSparse< T >::~MSparse ( void  )
default

Member Function Documentation

◆ any_element_is_nan()

template<typename T>
bool Sparse< T >::any_element_is_nan ( void  ) const
inlineinherited

Definition at line 663 of file Sparse.h.

◆ array_value()

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

◆ assign() [1/2]

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

Definition at line 1824 of file Sparse.cc.

◆ assign() [2/2]

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

Definition at line 1976 of file Sparse.cc.

◆ byte_size()

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

◆ capacity()

template<typename T>
octave_idx_type Sparse< T >::capacity ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

Synonymous with nzmax().

Definition at line 237 of file Sparse.h.

◆ cat()

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

Definition at line 2577 of file Sparse.cc.

Referenced by octave::single_type_concat().

◆ change_capacity()

template<typename T>
void Sparse< T >::change_capacity ( octave_idx_type  nz)
inlineinherited

Definition at line 462 of file Sparse.h.

Referenced by Sparse< bool >::Sparse().

◆ checkelem() [1/6]

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

Definition at line 330 of file Sparse.h.

◆ checkelem() [2/6]

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

Definition at line 342 of file Sparse.h.

◆ checkelem() [3/6]

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

Definition at line 353 of file Sparse.h.

◆ checkelem() [4/6]

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

Definition at line 393 of file Sparse.h.

◆ checkelem() [5/6]

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

Definition at line 401 of file Sparse.h.

◆ checkelem() [6/6]

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

Definition at line 409 of file Sparse.h.

◆ cidx() [1/4]

◆ cidx() [2/4]

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

Definition at line 509 of file Sparse.h.

◆ cidx() [3/4]

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

Definition at line 517 of file Sparse.h.

◆ cidx() [4/4]

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

Definition at line 519 of file Sparse.h.

◆ cols()

◆ columns()

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

◆ compute_index()

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

Definition at line 713 of file Sparse.cc.

◆ data() [1/4]

◆ data() [2/4]

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

Definition at line 487 of file Sparse.h.

◆ data() [3/4]

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

Definition at line 491 of file Sparse.h.

◆ data() [4/4]

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

Definition at line 493 of file Sparse.h.

◆ delete_elements() [1/3]

template<typename T >
void Sparse< T >::delete_elements ( const idx_vector i)
inherited

Definition at line 1148 of file Sparse.cc.

◆ delete_elements() [2/3]

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

Definition at line 1368 of file Sparse.cc.

◆ delete_elements() [3/3]

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

Definition at line 1249 of file Sparse.cc.

◆ diag()

template<typename T>
MSparse<T> MSparse< T >::diag ( octave_idx_type  k = 0) const
inline

Definition at line 105 of file MSparse.h.

Referenced by SparseMatrix::diag(), and SparseComplexMatrix::diag().

◆ dim1()

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

Definition at line 255 of file Sparse.h.

◆ dim2()

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

Definition at line 256 of file Sparse.h.

◆ dims()

template<typename T>
dim_vector Sparse< T >::dims ( void  ) const
inlineinherited

◆ elem() [1/6]

template<typename T>
T& Sparse< T >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 363 of file Sparse.h.

Referenced by Sparse< bool >::checkelem(), Sparse< bool >::elem(), and quotient().

◆ elem() [2/6]

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

Definition at line 369 of file Sparse.h.

◆ elem() [3/6]

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

Definition at line 375 of file Sparse.h.

◆ elem() [4/6]

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

Definition at line 419 of file Sparse.h.

◆ elem() [5/6]

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

Definition at line 421 of file Sparse.h.

◆ elem() [6/6]

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

Definition at line 423 of file Sparse.h.

◆ get_col_index()

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

Definition at line 263 of file Sparse.h.

◆ get_row_index()

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

Definition at line 262 of file Sparse.h.

◆ index() [1/2]

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

Definition at line 1380 of file Sparse.cc.

Referenced by Sparse< bool >::assign(), and SparseBoolMatrix::index().

◆ index() [2/2]

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

Definition at line 1580 of file Sparse.cc.

◆ indices_ok()

◆ insert() [1/2]

template<typename T>
MSparse<T>& MSparse< T >::insert ( const Sparse< T > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 80 of file MSparse.h.

Referenced by SparseMatrix::insert(), and SparseComplexMatrix::insert().

◆ insert() [2/2]

template<typename T>
MSparse<T>& MSparse< T >::insert ( const Sparse< T > &  a,
const Array< octave_idx_type > &  indx 
)
inline

Definition at line 86 of file MSparse.h.

◆ ipermute()

template<typename T>
MSparse<T> MSparse< T >::ipermute ( const Array< octave_idx_type > &  vec) const
inline

Definition at line 102 of file MSparse.h.

Referenced by SparseComplexMatrix::ipermute(), and SparseMatrix::ipermute().

◆ is_empty()

template<typename T>
bool Sparse< T >::is_empty ( void  ) const
inlineinherited

Definition at line 481 of file Sparse.h.

◆ is_square()

template<typename T>
bool Sparse< T >::is_square ( void  ) const
inlineinherited

Definition at line 475 of file Sparse.h.

◆ isempty()

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

Definition at line 478 of file Sparse.h.

Referenced by Sparse< bool >::cat().

◆ issquare()

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

Definition at line 472 of file Sparse.h.

◆ length()

template<typename T>
octave_idx_type Sparse< T >::length ( void  ) const
inlineinherited

Definition at line 253 of file Sparse.h.

◆ make_unique()

template<typename T>
void Sparse< T >::make_unique ( void  )
inlineprotectedinherited

Definition at line 137 of file Sparse.h.

◆ map() [1/3]

template<typename T>
template<typename U >
MSparse<U> MSparse< T >::map ( U(&)(T)  fcn) const
inline

Definition at line 113 of file MSparse.h.

◆ map() [2/3]

template<typename T>
template<typename U >
MSparse<U> MSparse< T >::map ( U(&)(const T &)  fcn) const
inline

Definition at line 118 of file MSparse.h.

◆ map() [3/3]

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

Definition at line 597 of file Sparse.h.

◆ maybe_compress()

◆ mex_get_data()

template<typename T>
void* Sparse< T >::mex_get_data ( void  ) const
inlineinherited

Definition at line 542 of file Sparse.h.

◆ mex_get_ir()

template<typename T>
octave_idx_type* Sparse< T >::mex_get_ir ( void  ) const
inlineinherited

Definition at line 544 of file Sparse.h.

◆ mex_get_jc()

template<typename T>
octave_idx_type* Sparse< T >::mex_get_jc ( void  ) const
inlineinherited

Definition at line 549 of file Sparse.h.

◆ ndims()

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

Definition at line 521 of file Sparse.h.

◆ nelem()

template<typename T>
octave_idx_type Sparse< T >::nelem ( void  ) const
inlineinherited

Definition at line 250 of file Sparse.h.

◆ nnz()

◆ numel()

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

◆ nzmax()

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

Amount of storage for nonzero elements.

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

Definition at line 232 of file Sparse.h.

Referenced by dmperm_internal(), and save_mat5_binary_element().

◆ operator()() [1/6]

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

Definition at line 378 of file Sparse.h.

◆ operator()() [2/6]

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

Definition at line 383 of file Sparse.h.

◆ operator()() [3/6]

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

Definition at line 388 of file Sparse.h.

◆ operator()() [4/6]

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

Definition at line 426 of file Sparse.h.

◆ operator()() [5/6]

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

Definition at line 428 of file Sparse.h.

◆ operator()() [6/6]

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

Definition at line 433 of file Sparse.h.

◆ operator=()

template<typename T>
MSparse<T>& MSparse< T >::operator= ( const MSparse< T > &  a)
inline

Definition at line 74 of file MSparse.h.

Referenced by SparseMatrix::operator=(), and SparseComplexMatrix::operator=().

◆ permute()

template<typename T>
MSparse<T> MSparse< T >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const
inline

Definition at line 99 of file MSparse.h.

Referenced by SparseComplexMatrix::permute(), and SparseMatrix::permute().

◆ print_info()

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

Definition at line 3000 of file Sparse.cc.

◆ range_error() [1/6]

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

Definition at line 736 of file Sparse.cc.

◆ range_error() [2/6]

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

Definition at line 743 of file Sparse.cc.

◆ range_error() [3/6]

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

Definition at line 750 of file Sparse.cc.

◆ range_error() [4/6]

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

Definition at line 758 of file Sparse.cc.

◆ range_error() [5/6]

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

Definition at line 765 of file Sparse.cc.

◆ range_error() [6/6]

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

Definition at line 789 of file Sparse.cc.

◆ reshape()

template<typename T>
MSparse<T> MSparse< T >::reshape ( const dim_vector new_dims) const
inline

Definition at line 96 of file MSparse.h.

Referenced by SparseComplexMatrix::reshape(), and SparseMatrix::reshape().

◆ resize() [1/2]

template<typename T >
void Sparse< T >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

◆ resize() [2/2]

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

Definition at line 938 of file Sparse.cc.

◆ resize1()

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

Definition at line 919 of file Sparse.cc.

◆ ridx() [1/4]

◆ ridx() [2/4]

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

Definition at line 496 of file Sparse.h.

◆ ridx() [3/4]

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

Definition at line 504 of file Sparse.h.

◆ ridx() [4/4]

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

Definition at line 506 of file Sparse.h.

◆ rows()

◆ sort() [1/2]

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

Definition at line 2231 of file Sparse.cc.

Referenced by dmsolve_permute(), and octinternal_do_mul_colpm_sm().

◆ sort() [2/2]

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

Definition at line 2297 of file Sparse.cc.

◆ squeeze()

template<typename T>
MSparse<T> MSparse< T >::squeeze ( void  ) const
inline

Definition at line 94 of file MSparse.h.

Referenced by SparseComplexMatrix::squeeze(), and SparseMatrix::squeeze().

◆ test()

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

Definition at line 568 of file Sparse.h.

◆ test_all() [1/3]

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

Definition at line 579 of file Sparse.h.

◆ test_all() [2/3]

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

Definition at line 589 of file Sparse.h.

◆ test_all() [3/3]

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

Definition at line 592 of file Sparse.h.

◆ test_any() [1/3]

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

Definition at line 575 of file Sparse.h.

◆ test_any() [2/3]

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

Definition at line 583 of file Sparse.h.

◆ test_any() [3/3]

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

Definition at line 586 of file Sparse.h.

◆ transpose()

template<typename T>
MSparse<T> MSparse< T >::transpose ( void  ) const
inline

Definition at line 92 of file MSparse.h.

Referenced by SparseMatrix::transpose(), and SparseComplexMatrix::transpose().

◆ xcidx() [1/2]

◆ xcidx() [2/2]

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

Definition at line 515 of file Sparse.h.

◆ xdata() [1/2]

◆ xdata() [2/2]

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

Definition at line 489 of file Sparse.h.

◆ xelem() [1/6]

template<typename T>
T& Sparse< T >::xelem ( octave_idx_type  n)
inlineinherited

Definition at line 301 of file Sparse.h.

Referenced by elem_xpow().

◆ xelem() [2/6]

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

Definition at line 308 of file Sparse.h.

◆ xelem() [3/6]

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

Definition at line 315 of file Sparse.h.

◆ xelem() [4/6]

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

Definition at line 316 of file Sparse.h.

◆ xelem() [5/6]

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

Definition at line 321 of file Sparse.h.

◆ xelem() [6/6]

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

Definition at line 324 of file Sparse.h.

◆ xridx() [1/2]

◆ xridx() [2/2]

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

Definition at line 502 of file Sparse.h.

Member Data Documentation

◆ dimensions

template<typename T>
dim_vector Sparse< T >::dimensions
inherited

Definition at line 157 of file Sparse.h.

Referenced by Sparse< bool >::Sparse().

◆ rep

template<typename T>
Sparse<T>::SparseRep* Sparse< T >::rep
inherited

Definition at line 155 of file Sparse.h.

Referenced by Sparse< bool >::Sparse().


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