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

#include "MSparse.h"

Inheritance diagram for MSparse< T >:
Inheritance graph
[legend]
Collaboration diagram for MSparse< T >:
Collaboration graph
[legend]

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

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

Definition at line 56 of file Sparse.h.

Constructor & Destructor Documentation

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

Definition at line 43 of file MSparse.h.

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

Definition at line 45 of file MSparse.h.

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

Definition at line 47 of file MSparse.h.

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

Definition at line 50 of file MSparse.h.

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

Definition at line 52 of file MSparse.h.

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

Definition at line 54 of file MSparse.h.

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

Definition at line 57 of file MSparse.h.

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.

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

Definition at line 64 of file MSparse.h.

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

Definition at line 67 of file MSparse.h.

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.

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

Definition at line 72 of file MSparse.h.

Member Function Documentation

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

Definition at line 698 of file Sparse.h.

template<typename T >
Array< T > Sparse< T >::array_value ( void  ) const
inherited
template<typename T>
void Sparse< T >::assign ( const idx_vector i,
const Sparse< T > &  rhs 
)
inherited
template<typename T>
void Sparse< T >::assign ( const idx_vector i,
const idx_vector j,
const Sparse< T > &  rhs 
)
inherited
template<typename T>
size_t Sparse< T >::byte_size ( void  ) const
inlineinherited
template<typename T>
octave_idx_type Sparse< T >::capacity ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

Synonymous with nzmax().

Definition at line 250 of file Sparse.h.

template<typename T>
Sparse< T > Sparse< T >::cat ( int  dim,
octave_idx_type  n,
const Sparse< T > *  sparse_list 
)
staticinherited
template<typename T>
void Sparse< T >::change_capacity ( octave_idx_type  nz)
inlineinherited
template<typename T>
T& Sparse< T >::checkelem ( octave_idx_type  n)
inlineinherited

Definition at line 342 of file Sparse.h.

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

Definition at line 353 of file Sparse.h.

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

Definition at line 364 of file Sparse.h.

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

Definition at line 423 of file Sparse.h.

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

Definition at line 431 of file Sparse.h.

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

Definition at line 439 of file Sparse.h.

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

Definition at line 543 of file Sparse.h.

Referenced by SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat_binary_data(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 544 of file Sparse.h.

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

Definition at line 552 of file Sparse.h.

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

Definition at line 554 of file Sparse.h.

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

Definition at line 272 of file Sparse.h.

Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::insert(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), real(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().

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

Definition at line 710 of file Sparse.cc.

References current_liboctave_error_handler, Array< T >::numel(), ra_idx, and retval.

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

Definition at line 521 of file Sparse.h.

Referenced by SparseMatrix::abs(), SparseComplexMatrix::abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator-(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat5_element_length(), save_mat_binary_data(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 522 of file Sparse.h.

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

Definition at line 526 of file Sparse.h.

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

Definition at line 528 of file Sparse.h.

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

Definition at line 1366 of file Sparse.cc.

References idx_vector::colon, and current_liboctave_error_handler.

template<typename T >
void Sparse< T >::delete_elements ( const idx_vector i,
const idx_vector j 
)
inherited
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().

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

Definition at line 268 of file Sparse.h.

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

Definition at line 269 of file Sparse.h.

template<typename T>
dim_vector Sparse< T >::dims ( void  ) const
inlineinherited
template<typename T>
T& Sparse< T >::elem ( octave_idx_type  n)
inlineinherited
template<typename T>
T& Sparse< T >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 380 of file Sparse.h.

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

Definition at line 386 of file Sparse.h.

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

Definition at line 449 of file Sparse.h.

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

Definition at line 451 of file Sparse.h.

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

Definition at line 453 of file Sparse.h.

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

Definition at line 276 of file Sparse.h.

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

Definition at line 275 of file Sparse.h.

template<typename T >
Sparse< T > Sparse< T >::index ( const idx_vector i,
bool  resize_ok = false 
) const
inherited
template<typename T >
Sparse< T > Sparse< T >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok = false 
) const
inherited
template<typename T>
bool Sparse< T >::indices_ok ( void  ) const
inlineinherited
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().

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.

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

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

Definition at line 517 of file Sparse.h.

Referenced by Sparse< T >::cat(), and LuAminusSigmaB().

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

Definition at line 515 of file Sparse.h.

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

Definition at line 266 of file Sparse.h.

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

Definition at line 150 of file Sparse.h.

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

Definition at line 113 of file MSparse.h.

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.

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

Definition at line 632 of file Sparse.h.

template<typename T>
Sparse<T> Sparse< T >::maybe_compress ( bool  remove_zeros = false)
inlineinherited
template<typename T>
void* Sparse< T >::mex_get_data ( void  ) const
inlineinherited

Definition at line 577 of file Sparse.h.

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

Definition at line 579 of file Sparse.h.

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

Definition at line 584 of file Sparse.h.

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

Definition at line 556 of file Sparse.h.

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

Definition at line 263 of file Sparse.h.

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

Actual number of nonzero terms.

Definition at line 253 of file Sparse.h.

Referenced by Sparse< T >::SparseRep::any_element_is_nan(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), conj(), Sparse< T >::delete_elements(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gccolamd(), Gcolamd(), Gsymbfact(), imag(), octave_sparse_matrix::index_vector(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::insert(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), MatrixType::MatrixType(), max(), min(), operator-(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), real(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), Sparse< bool >::Sparse(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().

template<typename T>
octave_idx_type Sparse< T >::numel ( void  ) const
inlineinherited
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 245 of file Sparse.h.

Referenced by dmperm_internal(), read_sparse_matrix(), and save_mat5_binary_element().

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

Definition at line 406 of file Sparse.h.

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

Definition at line 411 of file Sparse.h.

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

Definition at line 416 of file Sparse.h.

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

Definition at line 469 of file Sparse.h.

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

Definition at line 470 of file Sparse.h.

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

Definition at line 475 of file Sparse.h.

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

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

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.

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

Definition at line 733 of file Sparse.cc.

References fcn.

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

Definition at line 740 of file Sparse.cc.

References fcn.

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

Definition at line 747 of file Sparse.cc.

References fcn.

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

Definition at line 755 of file Sparse.cc.

References fcn.

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

Definition at line 762 of file Sparse.cc.

References Array< T >::numel(), ra_idx, and string.

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

Definition at line 786 of file Sparse.cc.

References Array< T >::numel(), ra_idx, and string.

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

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

Definition at line 936 of file Sparse.cc.

References dv, and dim_vector::ndims().

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

Definition at line 917 of file Sparse.cc.

References octave::err_invalid_resize(), and max().

Referenced by Sparse< T >::index().

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

Definition at line 530 of file Sparse.h.

Referenced by SparseComplexMatrix::abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat_binary_data(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseBoolMatrix::sum(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 531 of file Sparse.h.

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

Definition at line 539 of file Sparse.h.

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

Definition at line 541 of file Sparse.h.

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

Definition at line 271 of file Sparse.h.

Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::insert(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), real(), row_norms(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().

template<typename T >
Sparse< T > Sparse< T >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited
template<typename T >
Sparse< T > Sparse< T >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited
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().

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

Definition at line 603 of file Sparse.h.

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

Definition at line 614 of file Sparse.h.

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

Definition at line 624 of file Sparse.h.

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

Definition at line 627 of file Sparse.h.

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

Definition at line 610 of file Sparse.h.

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

Definition at line 618 of file Sparse.h.

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

Definition at line 621 of file Sparse.h.

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

Definition at line 92 of file MSparse.h.

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

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

Definition at line 549 of file Sparse.h.

Referenced by SparseBoolMatrix::any(), mxArray_sparse::as_octave_value(), atan2(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), Gsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T >::index(), octave_sparse_matrix::load_binary(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), SparseMatrix::max(), SparseComplexMatrix::max(), max(), SparseMatrix::min(), SparseComplexMatrix::min(), min(), octinternal_do_mul_colpm_sm(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), SparseBoolMatrix::sum(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().

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

Definition at line 550 of file Sparse.h.

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

Definition at line 524 of file Sparse.h.

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

Definition at line 319 of file Sparse.h.

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

Definition at line 326 of file Sparse.h.

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

Definition at line 327 of file Sparse.h.

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

Definition at line 332 of file Sparse.h.

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

Definition at line 335 of file Sparse.h.

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

Definition at line 537 of file Sparse.h.

Member Data Documentation

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

Definition at line 170 of file Sparse.h.

Referenced by Sparse< T >::operator=(), and Sparse< T >::Sparse().

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

Definition at line 168 of file Sparse.h.

Referenced by Sparse< T >::operator=(), Sparse< T >::Sparse(), and Sparse< bool >::Sparse().


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