#include "Sparse.h"
Public Member Functions | |
SparseRep (void) | |
SparseRep (octave_idx_type n) | |
SparseRep (octave_idx_type nr, octave_idx_type nc, octave_idx_type nz=0) | |
SparseRep (const SparseRep &a) | |
~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< int > | 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 |
|
inline |
Definition at line 177 of file Sparse.cc.
References d, i, octave::math::isnan(), and Sparse< T >::nnz().
Referenced by Sparse< bool >::any_element_is_nan().
|
inline |
|
inline |
T Sparse< T >::SparseRep::celem | ( | octave_idx_type | _r, |
octave_idx_type | _c | ||
) | const |
void Sparse< T >::SparseRep::change_length | ( | octave_idx_type | nz | ) |
|
inline |
Definition at line 116 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), and Sparse< bool >::xcidx().
|
inline |
|
inline |
Definition at line 108 of file Sparse.h.
Referenced by Sparse< bool >::data(), and Sparse< bool >::xdata().
T & Sparse< T >::SparseRep::elem | ( | octave_idx_type | _r, |
octave_idx_type | _c | ||
) |
Definition at line 64 of file Sparse.cc.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, i, Sparse< T >::SparseRep::ncols, Sparse< T >::SparseRep::nzmx, and Sparse< T >::SparseRep::r.
Referenced by Sparse< bool >::xelem().
Definition at line 170 of file Sparse.cc.
References c, Sparse< T >::nnz(), and sparse_indices_ok().
Referenced by Sparse< bool >::indices_ok().
|
inline |
Definition at line 100 of file Sparse.h.
Referenced by Sparse< bool >::nzmax().
|
inline |
|
inline |
Definition at line 112 of file Sparse.h.
References i.
Referenced by Sparse< bool >::ridx(), and Sparse< bool >::xridx().
octave_idx_type* Sparse< T >::SparseRep::c |
Definition at line 64 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), Sparse< T >::SparseRep::elem(), Sparse< bool >::Sparse(), and Sparse< bool >::xcidx().
octave::refcount<int> Sparse< T >::SparseRep::count |
Definition at line 68 of file Sparse.h.
Referenced by Sparse< bool >::Sparse().
T* Sparse< T >::SparseRep::d |
Definition at line 62 of file Sparse.h.
Referenced by Sparse< bool >::data(), Sparse< T >::SparseRep::elem(), Sparse< bool >::Sparse(), and Sparse< bool >::xdata().
octave_idx_type Sparse< T >::SparseRep::ncols |
Definition at line 67 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem(), and Sparse< bool >::Sparse().
octave_idx_type Sparse< T >::SparseRep::nrows |
octave_idx_type Sparse< T >::SparseRep::nzmx |
Definition at line 65 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem().
octave_idx_type* Sparse< T >::SparseRep::r |
Definition at line 63 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem(), Sparse< bool >::ridx(), Sparse< bool >::Sparse(), and Sparse< bool >::xridx().