GNU Octave  8.1.0
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 (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)
 
 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 PermMatrix &a)
 
 MSparse (const Sparse< T > &a)
 
template<typename U >
 MSparse (const Sparse< U > &a)
 
 MSparse (octave_idx_type n, octave_idx_type m)
 
 MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
 MSparse (octave_idx_type r, octave_idx_type c, T val)
 
 MSparse (void)
 
 ~MSparse (void)=default
 
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)
 
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 (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
 
MSparse< T > & insert (const Sparse< T > &a, const Array< octave_idx_type > &indx)
 
MSparse< T > & insert (const Sparse< T > &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, const Array< octave_idx_type > &idx)
 
OCTAVE_API Sparse< T, Alloc > & insert (const Sparse< T, Alloc > &a, octave_idx_type r, octave_idx_type c)
 
MSparse< T > ipermute (const Array< octave_idx_type > &vec) const
 
bool isempty (void) const
 
bool issquare (void) const
 
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
 
MSparse< T > & operator= (const MSparse< T > &a)
 
MSparse< T > permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
OCTAVE_API void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_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
 
MSparse< T > reshape (const dim_vector &new_dims) const
 
OCTAVE_API void resize (const dim_vector &dv)
 
OCTAVE_API void resize (octave_idx_type r, octave_idx_type c)
 
OCTAVE_API void resize1 (octave_idx_type n)
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_typeridx (void)
 
octave_idx_typeridx (void) const
 
octave_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
 
MSparse< T > squeeze (void) const
 
bool test (F fcn) const
 
bool test_all (bool(&fcn)(const T &)) const
 
bool test_all (bool(&fcn)(T)) const
 
bool test_all (F fcn) const
 
bool test_any (bool(&fcn)(const T &)) const
 
bool test_any (bool(&fcn)(T)) const
 
bool test_any (F fcn) const
 
MSparse< T > transpose (void) const
 
octave_idx_typexcidx (octave_idx_type i)
 
octave_idx_typexcidx (void)
 
T & xdata (octave_idx_type i)
 
T * xdata (void)
 
T & xelem (const Array< octave_idx_type > &ra_idx)
 
xelem (const Array< octave_idx_type > &ra_idx) const
 
T & xelem (octave_idx_type i, octave_idx_type j)
 
xelem (octave_idx_type i, octave_idx_type j) const
 
T & xelem (octave_idx_type n)
 
xelem (octave_idx_type n) const
 
octave_idx_typexridx (octave_idx_type i)
 
octave_idx_typexridx (void)
 

Static Public Member Functions

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

Protected Member Functions

void make_unique (void)
 

Protected Attributes

dim_vector m_dimensions
 
Sparse< T, Alloc >::SparseRep * m_rep
 

Static Private Member Functions

static OCTAVE_API Sparse< T, Alloc >::SparseRep * nil_rep (void)
 

Detailed Description

template<typename T>
class MSparse< T >

Definition at line 43 of file MSparse.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 52 of file Sparse.h.

Constructor & Destructor Documentation

◆ MSparse() [1/11]

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

Definition at line 49 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 51 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 53 of file MSparse.h.

◆ MSparse() [4/11]

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

Definition at line 56 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 58 of file MSparse.h.

◆ MSparse() [6/11]

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

Definition at line 60 of file MSparse.h.

◆ MSparse() [7/11]

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

Definition at line 63 of file MSparse.h.

◆ MSparse() [8/11]

template<typename T >
MSparse< T >::MSparse ( 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 
)
inline

Definition at line 65 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 70 of file MSparse.h.

◆ MSparse() [10/11]

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

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

◆ ~MSparse()

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

Member Function Documentation

◆ any_element_is_nan()

bool Sparse< T, Alloc >::any_element_is_nan ( void  ) const
inlineinherited

Definition at line 751 of file Sparse.h.

◆ array_value()

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

Definition at line 652 of file Sparse.cc.

◆ assign() [1/4]

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

Definition at line 630 of file Sparse.cc.

◆ assign() [2/4]

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

Definition at line 634 of file Sparse.cc.

◆ assign() [3/4]

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

Definition at line 624 of file Sparse.cc.

◆ assign() [4/4]

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

Definition at line 627 of file Sparse.cc.

◆ byte_size()

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

Definition at line 364 of file Sparse.h.

◆ cat()

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

Definition at line 650 of file Sparse.cc.

◆ change_capacity()

void Sparse< T, Alloc >::change_capacity ( octave_idx_type  nz)
inlineinherited

Definition at line 556 of file Sparse.h.

◆ checkelem() [1/6]

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

Definition at line 446 of file Sparse.h.

◆ checkelem() [2/6]

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

Definition at line 502 of file Sparse.h.

◆ checkelem() [3/6]

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

Definition at line 435 of file Sparse.h.

◆ checkelem() [4/6]

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

Definition at line 494 of file Sparse.h.

◆ checkelem() [5/6]

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

Definition at line 424 of file Sparse.h.

◆ checkelem() [6/6]

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

Definition at line 486 of file Sparse.h.

◆ cidx() [1/4]

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

Definition at line 597 of file Sparse.h.

◆ cidx() [2/4]

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

Definition at line 605 of file Sparse.h.

◆ cidx() [3/4]

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

Definition at line 596 of file Sparse.h.

◆ cidx() [4/4]

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

Definition at line 607 of file Sparse.h.

◆ cols()

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

Definition at line 352 of file Sparse.h.

◆ columns()

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

Definition at line 353 of file Sparse.h.

◆ compute_index()

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

Definition at line 376 of file Sparse.cc.

◆ data() [1/4]

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

Definition at line 575 of file Sparse.h.

◆ data() [2/4]

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

Definition at line 579 of file Sparse.h.

◆ data() [3/4]

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

Definition at line 574 of file Sparse.h.

◆ data() [4/4]

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

Definition at line 581 of file Sparse.h.

◆ delete_elements() [1/3]

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

Definition at line 611 of file Sparse.cc.

◆ delete_elements() [2/3]

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

Definition at line 615 of file Sparse.cc.

◆ delete_elements() [3/3]

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

Definition at line 613 of file Sparse.cc.

◆ diag()

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

Definition at line 111 of file MSparse.h.

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

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

◆ dim1()

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

Definition at line 348 of file Sparse.h.

◆ dim2()

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

Definition at line 349 of file Sparse.h.

◆ dims()

dim_vector Sparse< T, Alloc >::dims ( void  ) const
inlineinherited

Definition at line 371 of file Sparse.h.

◆ elem() [1/6]

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

Definition at line 468 of file Sparse.h.

◆ elem() [2/6]

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

Definition at line 516 of file Sparse.h.

◆ elem() [3/6]

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

Definition at line 462 of file Sparse.h.

◆ elem() [4/6]

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

Definition at line 514 of file Sparse.h.

◆ elem() [5/6]

T& Sparse< T, Alloc >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 456 of file Sparse.h.

◆ elem() [6/6]

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

Definition at line 512 of file Sparse.h.

◆ get_col_index()

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

Definition at line 356 of file Sparse.h.

◆ get_row_index()

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

Definition at line 355 of file Sparse.h.

◆ index() [1/2]

OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::index ( const octave::idx_vector i,
bool  resize_ok = false 
) const
inherited

Definition at line 618 of file Sparse.cc.

◆ index() [2/2]

OCTAVE_API Sparse< T, Alloc > Sparse< T, Alloc >::index ( const octave::idx_vector i,
const octave::idx_vector j,
bool  resize_ok = false 
) const
inherited

Definition at line 621 of file Sparse.cc.

◆ indices_ok()

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

Definition at line 749 of file Sparse.h.

◆ insert() [1/4]

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

Definition at line 92 of file MSparse.h.

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

◆ insert() [2/4]

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

Definition at line 86 of file MSparse.h.

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

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

◆ insert() [3/4]

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

Definition at line 566 of file Sparse.cc.

◆ insert() [4/4]

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

Definition at line 564 of file Sparse.cc.

◆ ipermute()

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

Definition at line 108 of file MSparse.h.

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

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

◆ isempty()

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

Definition at line 570 of file Sparse.h.

◆ issquare()

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

Definition at line 568 of file Sparse.h.

◆ make_unique()

void Sparse< T, Alloc >::make_unique ( void  )
inlineprotectedinherited

Definition at line 234 of file Sparse.h.

◆ map() [1/3]

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

Definition at line 685 of file Sparse.h.

◆ map() [2/3]

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

Definition at line 124 of file MSparse.h.

◆ map() [3/3]

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

Definition at line 119 of file MSparse.h.

◆ maybe_compress()

Sparse<T, Alloc> Sparse< T, Alloc >::maybe_compress ( bool  remove_zeros = false)
inlineinherited

Definition at line 531 of file Sparse.h.

◆ ndims()

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

Definition at line 609 of file Sparse.h.

◆ nil_rep()

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

Definition at line 255 of file Sparse.cc.

◆ nnz()

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

Actual number of nonzero terms.

Definition at line 339 of file Sparse.h.

◆ numel()

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

Definition at line 343 of file Sparse.h.

◆ nzmax()

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

Amount of storage for nonzero elements.

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

Definition at line 336 of file Sparse.h.

◆ operator()() [1/6]

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

Definition at line 481 of file Sparse.h.

◆ operator()() [2/6]

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

Definition at line 526 of file Sparse.h.

◆ operator()() [3/6]

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

Definition at line 476 of file Sparse.h.

◆ operator()() [4/6]

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

Definition at line 521 of file Sparse.h.

◆ operator()() [5/6]

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

Definition at line 471 of file Sparse.h.

◆ operator()() [6/6]

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

Definition at line 519 of file Sparse.h.

◆ operator=()

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

Definition at line 80 of file MSparse.h.

References Sparse< T, Alloc >::operator=().

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

◆ permute()

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

Definition at line 105 of file MSparse.h.

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

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

◆ print_info()

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

Definition at line 638 of file Sparse.cc.

◆ range_error() [1/6]

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

Definition at line 391 of file Sparse.cc.

◆ range_error() [2/6]

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

Definition at line 389 of file Sparse.cc.

◆ range_error() [3/6]

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

Definition at line 386 of file Sparse.cc.

◆ range_error() [4/6]

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

Definition at line 384 of file Sparse.cc.

◆ range_error() [5/6]

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

Definition at line 381 of file Sparse.cc.

◆ range_error() [6/6]

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

Definition at line 379 of file Sparse.cc.

◆ reshape()

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

Definition at line 102 of file MSparse.h.

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

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

◆ resize() [1/2]

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

Definition at line 554 of file Sparse.cc.

◆ resize() [2/2]

OCTAVE_API void Sparse< T, Alloc >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 552 of file Sparse.cc.

◆ resize1()

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

Definition at line 550 of file Sparse.cc.

◆ ridx() [1/4]

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

Definition at line 584 of file Sparse.h.

◆ ridx() [2/4]

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

Definition at line 592 of file Sparse.h.

◆ ridx() [3/4]

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

Definition at line 583 of file Sparse.h.

◆ ridx() [4/4]

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

Definition at line 594 of file Sparse.h.

◆ rows()

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

Definition at line 351 of file Sparse.h.

◆ sort() [1/2]

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

Definition at line 643 of file Sparse.cc.

◆ sort() [2/2]

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

Definition at line 641 of file Sparse.cc.

◆ squeeze()

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

Definition at line 100 of file MSparse.h.

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

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

◆ test()

bool Sparse< T, Alloc >::test ( fcn) const
inlineinherited

Definition at line 656 of file Sparse.h.

◆ test_all() [1/3]

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

Definition at line 680 of file Sparse.h.

◆ test_all() [2/3]

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

Definition at line 677 of file Sparse.h.

◆ test_all() [3/3]

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

Definition at line 667 of file Sparse.h.

◆ test_any() [1/3]

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

Definition at line 674 of file Sparse.h.

◆ test_any() [2/3]

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

Definition at line 671 of file Sparse.h.

◆ test_any() [3/3]

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

Definition at line 663 of file Sparse.h.

◆ transpose()

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

Definition at line 98 of file MSparse.h.

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

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

◆ xcidx() [1/2]

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

Definition at line 603 of file Sparse.h.

◆ xcidx() [2/2]

octave_idx_type* Sparse< T, Alloc >::xcidx ( void  )
inlineinherited

Definition at line 602 of file Sparse.h.

◆ xdata() [1/2]

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

Definition at line 577 of file Sparse.h.

◆ xdata() [2/2]

T* Sparse< T, Alloc >::xdata ( void  )
inlineinherited

Definition at line 576 of file Sparse.h.

◆ xelem() [1/6]

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

Definition at line 415 of file Sparse.h.

◆ xelem() [2/6]

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

Definition at line 418 of file Sparse.h.

◆ xelem() [3/6]

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

Definition at line 409 of file Sparse.h.

◆ xelem() [4/6]

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

Definition at line 410 of file Sparse.h.

◆ xelem() [5/6]

T& Sparse< T, Alloc >::xelem ( octave_idx_type  n)
inlineinherited

Definition at line 395 of file Sparse.h.

◆ xelem() [6/6]

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

Definition at line 402 of file Sparse.h.

◆ xridx() [1/2]

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

Definition at line 590 of file Sparse.h.

◆ xridx() [2/2]

octave_idx_type* Sparse< T, Alloc >::xridx ( void  )
inlineinherited

Definition at line 589 of file Sparse.h.

Member Data Documentation

◆ m_dimensions

dim_vector Sparse< T, Alloc >::m_dimensions
protectedinherited

Definition at line 251 of file Sparse.h.

◆ m_rep

Sparse<T, Alloc>::SparseRep* Sparse< T, Alloc >::m_rep
protectedinherited

Definition at line 249 of file Sparse.h.


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