#include "Sparse.h"
Public Member Functions | |
SparseRep (const SparseRep &a) | |
SparseRep (octave_idx_type n) | |
SparseRep (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz=1) | |
SparseRep (void) | |
~SparseRep (void) | |
bool | any_element_is_nan (void) const |
octave_idx_type | ccidx (octave_idx_type i) const |
T | cdata (octave_idx_type i) const |
T | celem (octave_idx_type _r, octave_idx_type _c) const |
void | change_length (octave_idx_type nz) |
octave_idx_type & | cidx (octave_idx_type i) |
octave_idx_type | cridx (octave_idx_type i) const |
T & | data (octave_idx_type i) |
T & | elem (octave_idx_type _r, octave_idx_type _c) |
bool | indices_ok (void) const |
octave_idx_type | length (void) const |
void | maybe_compress (bool remove_zeros) |
octave_idx_type | nnz (void) const |
octave_idx_type & | ridx (octave_idx_type i) |
Public Attributes | |
octave_idx_type * | c |
octave::refcount< octave_idx_type > | count |
T * | d |
octave_idx_type | ncols |
octave_idx_type | nrows |
octave_idx_type | nzmx |
octave_idx_type * | r |
Private Member Functions | |
SparseRep & | operator= (const SparseRep &a) |
|
inline |
|
inline |
|
inline |
Definition at line 90 of file Sparse.h.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, d, Sparse< T >::SparseRep::nnz(), Sparse< T >::SparseRep::r, and r.
|
inline |
bool Sparse< T >::SparseRep::any_element_is_nan | ( | void | ) | const |
Definition at line 182 of file Sparse.cc.
References d, octave::math::isnan(), and Sparse< T >::nnz().
Referenced by Sparse< T >::any_element_is_nan().
|
inline |
Definition at line 121 of file Sparse.h.
Referenced by Sparse< T >::cidx().
|
inline |
T Sparse< T >::SparseRep::celem | ( | octave_idx_type | _r, |
octave_idx_type | _c | ||
) | const |
Definition at line 107 of file Sparse.cc.
Referenced by Sparse< T >::xelem().
void Sparse< T >::SparseRep::change_length | ( | octave_idx_type | nz | ) |
Definition at line 142 of file Sparse.cc.
Referenced by Sparse< T >::change_capacity().
|
inline |
Definition at line 119 of file Sparse.h.
Referenced by Sparse< T >::cidx(), and Sparse< T >::xcidx().
|
inline |
|
inline |
Definition at line 111 of file Sparse.h.
References d.
Referenced by Sparse< T >::data(), and Sparse< T >::xdata().
T & Sparse< T >::SparseRep::elem | ( | octave_idx_type | _r, |
octave_idx_type | _c | ||
) |
Definition at line 66 of file Sparse.cc.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::ncols, Sparse< T >::SparseRep::nzmx, and Sparse< T >::SparseRep::r.
Referenced by Sparse< T >::xelem().
bool Sparse< T >::SparseRep::indices_ok | ( | void | ) | const |
Definition at line 175 of file Sparse.cc.
References Sparse< T >::nnz(), r, and sparse_indices_ok().
Referenced by Sparse< T >::indices_ok().
|
inline |
Definition at line 103 of file Sparse.h.
Referenced by Sparse< T >::nzmax().
void Sparse< T >::SparseRep::maybe_compress | ( | bool | remove_zeros | ) |
Definition at line 118 of file Sparse.cc.
Referenced by Sparse< T >::maybe_compress().
|
inline |
Definition at line 105 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::SparseRep(), and Sparse< T >::nnz().
|
inline |
Definition at line 115 of file Sparse.h.
References r.
Referenced by Sparse< T >::ridx(), and Sparse< T >::xridx().
octave_idx_type* Sparse< T >::SparseRep::c |
Definition at line 65 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), Sparse< T >::SparseRep::SparseRep(), Sparse< T >::cidx(), Sparse< T >::SparseRep::elem(), and Sparse< T >::xcidx().
octave::refcount<octave_idx_type> Sparse< T >::SparseRep::count |
Definition at line 69 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), and Sparse< T >::operator=().
T* Sparse< T >::SparseRep::d |
Definition at line 63 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), Sparse< T >::SparseRep::SparseRep(), Sparse< T >::data(), Sparse< T >::SparseRep::elem(), and Sparse< T >::xdata().
octave_idx_type Sparse< T >::SparseRep::ncols |
Definition at line 68 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), and Sparse< T >::SparseRep::elem().
octave_idx_type Sparse< T >::SparseRep::nrows |
octave_idx_type Sparse< T >::SparseRep::nzmx |
Definition at line 66 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem().
octave_idx_type* Sparse< T >::SparseRep::r |
Definition at line 64 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), Sparse< T >::SparseRep::SparseRep(), Sparse< T >::SparseRep::elem(), Sparse< T >::ridx(), and Sparse< T >::xridx().