Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions

Sparse< T > Class Template Reference

#include "Sparse.h"

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

List of all members.

Classes

class  SparseRep

Public Types

typedef T element_type

Public Member Functions

 Sparse (void)
 Sparse (octave_idx_type n)
 Sparse (octave_idx_type nr, octave_idx_type nc, T val)
template<class U >
 Sparse (const Sparse< U > &a)
 Sparse (const Sparse< T > &a)
 Sparse (const dim_vector &dv, octave_idx_type nz)
 Sparse (const dim_vector &dv)
 Sparse (const Sparse< T > &a, const dim_vector &dv)
 Sparse (octave_idx_type nr, octave_idx_type nc)
 Sparse (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz)
 Sparse (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)
 Sparse (const Array< T > &a)
 Sparse (const PermMatrix &a)
virtual ~Sparse (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)
Sparse< 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 i, octave_idx_type j)
T & elem (const Array< octave_idx_type > &ra_idx)
T & elem (octave_idx_type n)
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, const idx_vector &j, bool resize_ok=false) const
Sparse< T > index (const idx_vector &i, bool resize_ok=false) const
bool indices_ok (void) const
Sparse< T > & insert (const Sparse< T > &a, octave_idx_type r, octave_idx_type c)
Sparse< T > & insert (const Sparse< T > &a, const Array< octave_idx_type > &idx)
Sparse< 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 >
Sparse< U > map (U(&fcn)(T)) const
template<class U >
Sparse< 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)
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
octave_idx_type numel (void) const
octave_idx_type nzmax (void) const
T & operator() (const Array< octave_idx_type > &ra_idx)
T & operator() (octave_idx_type i, octave_idx_type j)
T & operator() (octave_idx_type n)
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
Sparse< T > & operator= (const Sparse< T > &a)
Sparse< 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
range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
T & range_error (const char *fcn, octave_idx_type i, octave_idx_type j)
T & range_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
Sparse< T > reshape (const dim_vector &new_dims) const
void resize (const dim_vector &dv)
void resize (octave_idx_type r, octave_idx_type c)
void resize1 (octave_idx_type n)
octave_idx_typeridx (void)
octave_idx_type ridx (octave_idx_type i) const
octave_idx_typeridx (void) const
octave_idx_typeridx (octave_idx_type i)
octave_idx_type rows (void) const
Sparse< T > sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
Sparse< T > sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
Sparse< T > squeeze (void) const
Sparse< T > transpose (void) const
octave_idx_typexcidx (void)
octave_idx_typexcidx (octave_idx_type i)
T & xdata (octave_idx_type i)
T * xdata (void)
xelem (const Array< octave_idx_type > &ra_idx) const
xelem (octave_idx_type i, octave_idx_type j) const
T & xelem (octave_idx_type i, octave_idx_type j)
T & xelem (const Array< octave_idx_type > &ra_idx)
T & xelem (octave_idx_type n)
xelem (octave_idx_type n) 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)

Private Member Functions

Sparse< T >::SparseRepnil_rep (void) const

Detailed Description

template<class T>
class Sparse< T >

Definition at line 50 of file Sparse.h.


Member Typedef Documentation

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

Definition at line 55 of file Sparse.h.


Constructor & Destructor Documentation

template<class T>
Sparse< T >::Sparse ( void   )  [inline]

Definition at line 178 of file Sparse.h.

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

template<class T>
Sparse< T >::Sparse ( octave_idx_type  n  )  [inline, explicit]

Definition at line 184 of file Sparse.h.

template<class T>
Sparse< T >::Sparse ( octave_idx_type  nr,
octave_idx_type  nc 
) [inline, explicit]

Definition at line 188 of file Sparse.h.

template<class T>
Sparse< T >::Sparse ( octave_idx_type  nr,
octave_idx_type  nc,
val 
) [explicit]
template<class T>
Sparse< T >::Sparse ( const dim_vector dv,
octave_idx_type  nz 
) [inline]

Definition at line 194 of file Sparse.h.

template<class T>
Sparse< T >::Sparse ( octave_idx_type  nr,
octave_idx_type  nc,
octave_idx_type  nz 
) [inline]

Definition at line 198 of file Sparse.h.

template<class T>
Sparse< T >::Sparse ( const PermMatrix a  )  [explicit]
template<class T>
template<class U >
Sparse< T >::Sparse ( const Sparse< U > &  a  )  [inline]

Definition at line 208 of file Sparse.h.

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

Definition at line 219 of file Sparse.h.

template<class T>
Sparse< T >::Sparse ( const dim_vector dv  ) 
template<class T>
Sparse< T >::Sparse ( const Sparse< T > &  a,
const dim_vector dv 
)
template<class T>
Sparse< T >::Sparse ( 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 
)
template<class T>
Sparse< T >::Sparse ( const Array< T > &  a  ) 
template<class T >
Sparse< T >::~Sparse ( void   )  [virtual]

Definition at line 670 of file Sparse.cc.

References Sparse< T >::SparseRep::count, and Sparse< T >::rep.


Member Function Documentation

template<class T >
Array< T > Sparse< T >::array_value ( void   )  const
template<class T>
void Sparse< T >::assign ( const idx_vector i,
const idx_vector j,
const Sparse< T > &  rhs 
)
template<class T>
void Sparse< T >::assign ( const idx_vector i,
const Sparse< T > &  rhs 
)
template<class T>
size_t Sparse< T >::byte_size ( void   )  const [inline]
template<class T>
octave_idx_type Sparse< T >::capacity ( void   )  const [inline]
template<class T>
Sparse< T > Sparse< T >::cat ( int  dim,
octave_idx_type  n,
const Sparse< T > *  sparse_list 
) [static]
template<class T>
void Sparse< T >::change_capacity ( octave_idx_type  nz  )  [inline]
template<class T>
T& Sparse< T >::checkelem ( octave_idx_type  n  )  [inline]

Definition at line 323 of file Sparse.h.

template<class T>
T& Sparse< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) [inline]

Definition at line 334 of file Sparse.h.

template<class T>
T& Sparse< T >::checkelem ( const Array< octave_idx_type > &  ra_idx  )  [inline]

Definition at line 345 of file Sparse.h.

template<class T>
T Sparse< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const [inline]

Definition at line 388 of file Sparse.h.

template<class T>
T Sparse< T >::checkelem ( octave_idx_type  n  )  const [inline]

Definition at line 380 of file Sparse.h.

template<class T>
T Sparse< T >::checkelem ( const Array< octave_idx_type > &  ra_idx  )  const [inline]

Definition at line 396 of file Sparse.h.

template<class T>
octave_idx_type* Sparse< T >::cidx ( void   )  [inline]

Definition at line 479 of file Sparse.h.

Referenced by SparseComplexMatrix::abs(), Sparse< T >::array_value(), octave_sparse_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_bool_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), Sparse< T >::delete_elements(), Sparse< T >::diag(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), 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_complex_matrix::load_binary(), octave_sparse_bool_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), SparseBoolMatrix::operator!(), operator<<(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), SparseBoolMatrix::operator==(), plus_or_minus(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), Sparse< T >::reshape(), row_norms(), octave_sparse_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_bool_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(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), x_el_div(), and xpow().

template<class T>
octave_idx_type& Sparse< T >::cidx ( octave_idx_type  i  )  [inline]

Definition at line 480 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::cidx ( octave_idx_type  i  )  const [inline]

Definition at line 484 of file Sparse.h.

template<class T>
octave_idx_type* Sparse< T >::cidx ( void   )  const [inline]

Definition at line 486 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::cols ( void   )  const [inline]

Definition at line 263 of file Sparse.h.

Referenced by Sparse< T >::array_value(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), chol2inv(), SparseMatrix::concat(), SparseComplexMatrix::concat(), SparseBoolMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), Sparse< T >::diag(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), imag(), Sparse< T >::insert(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), operator<<(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), SparseBoolMatrix::operator==(), plus_or_minus(), product(), qrsolve(), quotient(), read_sparse_matrix(), real(), Sparse< T >::reshape(), Sparse< T >::resize1(), 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(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), octave_sparse_bool_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), x_el_div(), and xpow().

template<class T>
octave_idx_type Sparse< T >::columns ( void   )  const [inline]
template<class T >
octave_idx_type Sparse< T >::compute_index ( const Array< octave_idx_type > &  ra_idx  )  const
template<class T>
T* Sparse< T >::data ( void   )  [inline]

Definition at line 461 of file Sparse.h.

Referenced by SparseMatrix::abs(), SparseComplexMatrix::abs(), SparseBoolMatrix::any(), Sparse< T >::array_value(), octave_sparse_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_bool_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), Sparse< T >::delete_elements(), Sparse< T >::diag(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), 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_complex_matrix::load_binary(), octave_sparse_bool_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), SparseBoolMatrix::operator!(), operator-(), operator<<(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), SparseBoolMatrix::operator==(), plus_or_minus(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), Sparse< T >::reshape(), row_norms(), octave_sparse_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_bool_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(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), x_el_div(), and xpow().

template<class T>
T& Sparse< T >::data ( octave_idx_type  i  )  [inline]

Definition at line 462 of file Sparse.h.

template<class T>
T Sparse< T >::data ( octave_idx_type  i  )  const [inline]

Definition at line 466 of file Sparse.h.

template<class T>
T* Sparse< T >::data ( void   )  const [inline]

Definition at line 468 of file Sparse.h.

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

Definition at line 1332 of file Sparse.cc.

References idx_vector::colon, and Sparse< T >::delete_elements().

template<class T >
void Sparse< T >::delete_elements ( const idx_vector i,
const idx_vector j 
)
template<class T >
Sparse< T > Sparse< T >::diag ( octave_idx_type  k = 0  )  const
template<class T>
octave_idx_type Sparse< T >::dim1 ( void   )  const [inline]
template<class T>
octave_idx_type Sparse< T >::dim2 ( void   )  const [inline]
template<class T>
dim_vector Sparse< T >::dims ( void   )  const [inline]
template<class T>
T& Sparse< T >::elem ( octave_idx_type  n  )  [inline]
template<class T>
T& Sparse< T >::elem ( octave_idx_type  i,
octave_idx_type  j 
) [inline]

Definition at line 361 of file Sparse.h.

template<class T>
T& Sparse< T >::elem ( const Array< octave_idx_type > &  ra_idx  )  [inline]

Definition at line 367 of file Sparse.h.

template<class T>
T Sparse< T >::elem ( octave_idx_type  n  )  const [inline]

Definition at line 406 of file Sparse.h.

template<class T>
T Sparse< T >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const [inline]

Definition at line 408 of file Sparse.h.

template<class T>
T Sparse< T >::elem ( const Array< octave_idx_type > &  ra_idx  )  const [inline]

Definition at line 410 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::get_col_index ( octave_idx_type  k  )  [inline]

Definition at line 267 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::get_row_index ( octave_idx_type  k  )  [inline]

Definition at line 266 of file Sparse.h.

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

Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.

Definition at line 1067 of file Sparse.cc.

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

template<class T>
Sparse<T> Sparse< T >::ipermute ( const Array< octave_idx_type > &  vec  )  const [inline]
template<class T>
bool Sparse< T >::is_empty ( void   )  const [inline]

Definition at line 457 of file Sparse.h.

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

template<class T>
bool Sparse< T >::is_square ( void   )  const [inline]

Definition at line 455 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::length ( void   )  const [inline]

Definition at line 257 of file Sparse.h.

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

template<class T>
void Sparse< T >::make_unique ( void   )  [inline, protected]

Definition at line 146 of file Sparse.h.

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

template<class T>
template<class U , class F >
Sparse<U> Sparse< T >::map ( fcn  )  const [inline]

Definition at line 528 of file Sparse.h.

template<class T>
template<class U >
Sparse<U> Sparse< T >::map ( U(&)(const T &)  fcn  )  const [inline]

Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.

Definition at line 589 of file Sparse.h.

template<class T>
template<class U >
Sparse<U> Sparse< T >::map ( U(&)(T)  fcn  )  const [inline]

Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.

Definition at line 584 of file Sparse.h.

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

Definition at line 508 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 [inline]

Definition at line 510 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 [inline]

Definition at line 512 of file Sparse.h.

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

template<class T>
octave_idx_type Sparse< T >::ndims ( void   )  const [inline]
template<class T>
octave_idx_type Sparse< T >::nelem ( void   )  const [inline]

Definition at line 256 of file Sparse.h.

template<class T>
Sparse<T>::SparseRep* Sparse< T >::nil_rep ( void   )  const [inline, private]

Definition at line 170 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::nnz ( void   )  const [inline]
template<class T>
octave_idx_type Sparse< T >::numel ( void   )  const [inline]
template<class T>
octave_idx_type Sparse< T >::nzmax ( void   )  const [inline]
template<class T>
T Sparse< T >::operator() ( octave_idx_type  n  )  const [inline]

Definition at line 418 of file Sparse.h.

template<class T>
T& Sparse< T >::operator() ( octave_idx_type  n  )  [inline]

Definition at line 375 of file Sparse.h.

template<class T>
T& Sparse< T >::operator() ( const Array< octave_idx_type > &  ra_idx  )  [inline]

Definition at line 377 of file Sparse.h.

template<class T>
T& Sparse< T >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) [inline]

Definition at line 376 of file Sparse.h.

template<class T>
T Sparse< T >::operator() ( const Array< octave_idx_type > &  ra_idx  )  const [inline]

Definition at line 420 of file Sparse.h.

template<class T>
T Sparse< T >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const [inline]

Definition at line 419 of file Sparse.h.

template<class T>
Sparse< T > & Sparse< T >::operator= ( const Sparse< T > &  a  ) 
template<class T >
Sparse< T > Sparse< T >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const
template<class T >
void Sparse< T >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
template<class T >
T Sparse< T >::range_error ( const char fcn,
const Array< octave_idx_type > &  ra_idx 
) const

Definition at line 757 of file Sparse.cc.

References Array< T >::length().

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

Definition at line 721 of file Sparse.cc.

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

Definition at line 738 of file Sparse.cc.

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

Definition at line 729 of file Sparse.cc.

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

Definition at line 747 of file Sparse.cc.

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

Definition at line 782 of file Sparse.cc.

References Array< T >::length().

template<class T >
Sparse< T > Sparse< T >::reshape ( const dim_vector new_dims  )  const
template<class T >
void Sparse< T >::resize ( const dim_vector dv  ) 

Definition at line 916 of file Sparse.cc.

References dim_vector::length(), and Sparse< T >::resize().

template<class T >
void Sparse< T >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
template<class T >
void Sparse< T >::resize1 ( octave_idx_type  n  ) 
template<class T>
octave_idx_type Sparse< T >::ridx ( octave_idx_type  i  )  const [inline]

Definition at line 475 of file Sparse.h.

template<class T>
octave_idx_type& Sparse< T >::ridx ( octave_idx_type  i  )  [inline]

Definition at line 471 of file Sparse.h.

template<class T>
octave_idx_type* Sparse< T >::ridx ( void   )  [inline]

Definition at line 470 of file Sparse.h.

Referenced by SparseComplexMatrix::abs(), SparseBoolMatrix::any(), Sparse< T >::array_value(), octave_sparse_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_bool_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), Sparse< T >::delete_elements(), Sparse< T >::diag(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), 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_complex_matrix::load_binary(), octave_sparse_bool_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), SparseBoolMatrix::operator!(), operator<<(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), SparseBoolMatrix::operator==(), plus_or_minus(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), real(), Sparse< T >::reshape(), row_norms(), octave_sparse_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_bool_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(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), x_el_div(), and xpow().

template<class T>
octave_idx_type* Sparse< T >::ridx ( void   )  const [inline]

Definition at line 477 of file Sparse.h.

template<class T>
octave_idx_type Sparse< T >::rows ( void   )  const [inline]

Definition at line 262 of file Sparse.h.

Referenced by Sparse< T >::array_value(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), chol2inv(), SparseMatrix::concat(), SparseComplexMatrix::concat(), SparseBoolMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), Sparse< T >::diag(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::insert(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), SparseBoolMatrix::operator==(), plus_or_minus(), product(), qrsolve(), quotient(), read_sparse_matrix(), real(), Sparse< T >::reshape(), Sparse< T >::resize(), Sparse< T >::resize1(), row_norms(), Sparse< T >::sort(), Sparse< T >::Sparse(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), octave_sparse_bool_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), x_el_div(), and xpow().

template<class T >
Sparse< T > Sparse< T >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
template<class T >
Sparse< T > Sparse< T >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
template<class T>
Sparse<T> Sparse< T >::squeeze ( void   )  const [inline]
template<class T >
Sparse< T > Sparse< T >::transpose ( void   )  const
template<class T>
octave_idx_type& Sparse< T >::xcidx ( octave_idx_type  i  )  [inline]

Definition at line 482 of file Sparse.h.

template<class T>
octave_idx_type* Sparse< T >::xcidx ( void   )  [inline]
template<class T>
T& Sparse< T >::xdata ( octave_idx_type  i  )  [inline]

Definition at line 464 of file Sparse.h.

template<class T>
T* Sparse< T >::xdata ( void   )  [inline]
template<class T>
T& Sparse< T >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) [inline]

Definition at line 310 of file Sparse.h.

template<class T>
T Sparse< T >::xelem ( octave_idx_type  n  )  const [inline]

Definition at line 304 of file Sparse.h.

template<class T>
T Sparse< T >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const [inline]

Definition at line 311 of file Sparse.h.

template<class T>
T& Sparse< T >::xelem ( const Array< octave_idx_type > &  ra_idx  )  [inline]

Definition at line 313 of file Sparse.h.

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

template<class T>
T Sparse< T >::xelem ( const Array< octave_idx_type > &  ra_idx  )  const [inline]

Definition at line 316 of file Sparse.h.

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

template<class T>
T& Sparse< T >::xelem ( octave_idx_type  n  )  [inline]

Definition at line 298 of file Sparse.h.

Referenced by elem_xpow(), and qrsolve().

template<class T>
octave_idx_type* Sparse< T >::xridx ( void   )  [inline]
template<class T>
octave_idx_type& Sparse< T >::xridx ( octave_idx_type  i  )  [inline]

Definition at line 473 of file Sparse.h.


Member Data Documentation

template<class T>
dim_vector Sparse< T >::dimensions
template<class T>
Sparse<T>::SparseRep* Sparse< T >::rep

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines