GNU Octave  3.8.0
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<class 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)
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
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<class U >
MSparse< U > map (U(&fcn)(T)) const
template<class U >
MSparse< U > map (U(&fcn)(const T &)) const
template<class U , class F >
Sparse< U > map (F fcn) const
Sparse< T > maybe_compress (bool remove_zeros=false)
voidmex_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
octave_idx_type numel (void) const
octave_idx_type nzmax (void) const
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
range_error (const char *fcn, octave_idx_type n) const
T & range_error (const char *fcn, octave_idx_type n)
range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
T & range_error (const char *fcn, octave_idx_type i, octave_idx_type j)
range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
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<class F , bool zero>
bool test (F fcn) const
template<class F >
bool test_all (F fcn) const
bool test_all (bool(&fcn)(T)) const
bool test_all (bool(&fcn)(const T &)) const
template<class 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<class T>
class MSparse< T >

Definition at line 40 of file MSparse.h.

Member Typedef Documentation

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

Definition at line 55 of file Sparse.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file MSparse.h.

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

Definition at line 47 of file MSparse.h.

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

Definition at line 49 of file MSparse.h.

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

Definition at line 52 of file MSparse.h.

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

Definition at line 54 of file MSparse.h.

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

Definition at line 56 of file MSparse.h.

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

Definition at line 59 of file MSparse.h.

template<class 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 61 of file MSparse.h.

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

Definition at line 66 of file MSparse.h.

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

Definition at line 69 of file MSparse.h.

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

Definition at line 71 of file MSparse.h.

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

Definition at line 74 of file MSparse.h.

Member Function Documentation

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

Definition at line 2651 of file Sparse.cc.

Referenced by Sparse< T >::assign(), and binmap().

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

Definition at line 248 of file Sparse.h.

Referenced by octave_base_sparse< SparseComplexMatrix >::capacity().

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

Definition at line 329 of file Sparse.h.

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

Definition at line 340 of file Sparse.h.

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

Definition at line 351 of file Sparse.h.

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

Definition at line 410 of file Sparse.h.

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

Definition at line 418 of file Sparse.h.

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

Definition at line 426 of file Sparse.h.

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

Definition at line 530 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 531 of file Sparse.h.

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

Definition at line 539 of file Sparse.h.

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

Definition at line 541 of file Sparse.h.

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

Definition at line 265 of file Sparse.h.

Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), chol2inv(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fluinc(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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(), qrsolve(), 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(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseQR::SparseQR_rep::SparseQR_rep(), 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(), x_el_div(), and xpow().

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

Definition at line 698 of file Sparse.cc.

References current_liboctave_error_handler, and Array< T >::length().

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

Definition at line 508 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), Sparse< T >::delete_elements(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 509 of file Sparse.h.

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

Definition at line 513 of file Sparse.h.

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

Definition at line 515 of file Sparse.h.

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

Definition at line 1359 of file Sparse.cc.

References idx_vector::colon.

template<class T >
void Sparse< T >::delete_elements ( const idx_vector i,
const idx_vector j 
)
inherited
template<class T>
MSparse<T> MSparse< T >::diag ( octave_idx_type  k = 0) const
inline

Reimplemented from Sparse< T >.

Reimplemented in SparseComplexMatrix, and SparseMatrix.

Definition at line 107 of file MSparse.h.

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

Definition at line 261 of file Sparse.h.

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

Definition at line 262 of file Sparse.h.

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

Definition at line 367 of file Sparse.h.

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

Definition at line 373 of file Sparse.h.

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

Definition at line 436 of file Sparse.h.

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

Definition at line 438 of file Sparse.h.

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

Definition at line 440 of file Sparse.h.

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

Definition at line 269 of file Sparse.h.

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

Definition at line 268 of file Sparse.h.

template<class T >
Sparse< T > Sparse< T >::index ( const idx_vector i,
bool  resize_ok = false 
) const
inherited
template<class T >
Sparse< T > Sparse< T >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok = false 
) const
inherited
template<class T>
bool Sparse< T >::indices_ok ( void  ) const
inlineinherited
template<class T>
MSparse<T>& MSparse< T >::insert ( const Sparse< T > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inline

Reimplemented from Sparse< T >.

Definition at line 82 of file MSparse.h.

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

Reimplemented from Sparse< T >.

Definition at line 88 of file MSparse.h.

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

Reimplemented from Sparse< T >.

Reimplemented in SparseMatrix, and SparseComplexMatrix.

Definition at line 104 of file MSparse.h.

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

Definition at line 504 of file Sparse.h.

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

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

Definition at line 502 of file Sparse.h.

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

Definition at line 259 of file Sparse.h.

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

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

Definition at line 147 of file Sparse.h.

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

Reimplemented from Sparse< T >.

Definition at line 115 of file MSparse.h.

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

Reimplemented from Sparse< T >.

Definition at line 120 of file MSparse.h.

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

Definition at line 619 of file Sparse.h.

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

Definition at line 564 of file Sparse.h.

Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_data().

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

Definition at line 566 of file Sparse.h.

Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_ir().

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

Definition at line 571 of file Sparse.h.

Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_jc().

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

Definition at line 258 of file Sparse.h.

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

Definition at line 253 of file Sparse.h.

Referenced by Sparse< T >::assign(), elem_xpow(), and octave_sparse_matrix::index_vector().

template<class T>
octave_idx_type Sparse< T >::nzmax ( void  ) const
inlineinherited
template<class T>
T& Sparse< T >::operator() ( octave_idx_type  n)
inlineinherited

Definition at line 393 of file Sparse.h.

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

Definition at line 398 of file Sparse.h.

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

Definition at line 403 of file Sparse.h.

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

Definition at line 456 of file Sparse.h.

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

Definition at line 457 of file Sparse.h.

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

Definition at line 462 of file Sparse.h.

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

Definition at line 76 of file MSparse.h.

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

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

Reimplemented from Sparse< T >.

Reimplemented in SparseMatrix, and SparseComplexMatrix.

Definition at line 101 of file MSparse.h.

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

Definition at line 2869 of file Sparse.cc.

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

Definition at line 723 of file Sparse.cc.

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

Definition at line 731 of file Sparse.cc.

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

Definition at line 740 of file Sparse.cc.

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

Definition at line 750 of file Sparse.cc.

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

Definition at line 760 of file Sparse.cc.

References Array< T >::length().

template<class 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 >::length().

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

Reimplemented from Sparse< T >.

Reimplemented in SparseMatrix, and SparseComplexMatrix.

Definition at line 98 of file MSparse.h.

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

Definition at line 920 of file Sparse.cc.

References dim_vector::length().

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

Definition at line 902 of file Sparse.cc.

References gripe_invalid_resize(), and max().

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

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

Definition at line 517 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), SparseBoolMatrix::sum(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().

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

Definition at line 518 of file Sparse.h.

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

Definition at line 526 of file Sparse.h.

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

Definition at line 528 of file Sparse.h.

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

Definition at line 264 of file Sparse.h.

Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), chol2inv(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fluinc(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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(), qrsolve(), 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(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseQR::SparseQR_rep::SparseQR_rep(), 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(), x_el_div(), and xpow().

template<class T >
Sparse< T > Sparse< T >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited
template<class T >
Sparse< T > Sparse< T >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited
template<class T>
MSparse<T> MSparse< T >::squeeze ( void  ) const
inline

Reimplemented from Sparse< T >.

Reimplemented in SparseMatrix, and SparseComplexMatrix.

Definition at line 96 of file MSparse.h.

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

Definition at line 590 of file Sparse.h.

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

Definition at line 601 of file Sparse.h.

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

Definition at line 611 of file Sparse.h.

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

Definition at line 614 of file Sparse.h.

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

Definition at line 597 of file Sparse.h.

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

Definition at line 605 of file Sparse.h.

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

Definition at line 608 of file Sparse.h.

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

Reimplemented from Sparse< T >.

Reimplemented in SparseComplexMatrix, and SparseMatrix.

Definition at line 94 of file MSparse.h.

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

template<class T>
octave_idx_type* Sparse< T >::xcidx ( void  )
inlineinherited
template<class T>
octave_idx_type& Sparse< T >::xcidx ( octave_idx_type  i)
inlineinherited

Definition at line 537 of file Sparse.h.

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

Definition at line 511 of file Sparse.h.

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

Definition at line 301 of file Sparse.h.

Referenced by elem_xpow(), and qrsolve().

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

Definition at line 307 of file Sparse.h.

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

Definition at line 313 of file Sparse.h.

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

Definition at line 314 of file Sparse.h.

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

Definition at line 319 of file Sparse.h.

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

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

Definition at line 322 of file Sparse.h.

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

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

Definition at line 524 of file Sparse.h.

Member Data Documentation

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

Definition at line 167 of file Sparse.h.

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

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

Definition at line 165 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: