GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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) | |
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 |
Definition at line 99 of file Sparse.h.
References Sparse< T >::SparseRep::c, copy_or_memcpy(), d, Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::nnz(), and Sparse< T >::SparseRep::r.
|
inline |
Definition at line 130 of file Sparse.h.
Referenced by Sparse< bool >::cidx().
|
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 | ) |
Definition at line 166 of file Sparse.cc.
References copy_or_memcpy(), d, and min().
Referenced by Sparse< bool >::change_capacity().
|
inline |
Definition at line 128 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), and Sparse< bool >::xcidx().
|
inline |
Definition at line 126 of file Sparse.h.
Referenced by Sparse< bool >::ridx().
|
inline |
Definition at line 120 of file Sparse.h.
References d.
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 83 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< bool >::xelem().
Definition at line 197 of file Sparse.cc.
References Sparse< T >::nnz(), and sparse_indices_ok().
Referenced by Sparse< bool >::indices_ok().
|
inline |
Definition at line 112 of file Sparse.h.
Referenced by Sparse< bool >::nzmax().
Definition at line 143 of file Sparse.cc.
References d.
Referenced by Sparse< bool >::maybe_compress().
|
inline |
Definition at line 114 of file Sparse.h.
Referenced by Sparse< bool >::nnz(), and Sparse< T >::SparseRep::SparseRep().
|
inline |
Definition at line 124 of file Sparse.h.
Referenced by Sparse< bool >::ridx(), and Sparse< bool >::xridx().
octave_idx_type* Sparse< T >::SparseRep::c |
Definition at line 68 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), Sparse< T >::SparseRep::elem(), Sparse< bool >::Sparse(), Sparse< T >::SparseRep::SparseRep(), and Sparse< bool >::xcidx().
octave_refcount<int> Sparse< T >::SparseRep::count |
Definition at line 72 of file Sparse.h.
Referenced by Sparse< bool >::Sparse().
T* Sparse< T >::SparseRep::d |
Definition at line 66 of file Sparse.h.
Referenced by Sparse< bool >::data(), Sparse< T >::SparseRep::elem(), Sparse< bool >::Sparse(), Sparse< T >::SparseRep::SparseRep(), and Sparse< bool >::xdata().
octave_idx_type Sparse< T >::SparseRep::ncols |
Definition at line 71 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 69 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem().
octave_idx_type* Sparse< T >::SparseRep::r |
Definition at line 67 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem(), Sparse< bool >::ridx(), Sparse< bool >::Sparse(), Sparse< T >::SparseRep::SparseRep(), and Sparse< bool >::xridx().