GNU Octave
4.0.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 |
|
inline |
Definition at line 98 of file Sparse.h.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::nnz(), and Sparse< T >::SparseRep::r.
|
inline |
|
inline |
Definition at line 129 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 159 of file Sparse.cc.
Referenced by Sparse< bool >::change_capacity().
|
inline |
Definition at line 127 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), and Sparse< bool >::xcidx().
|
inline |
Definition at line 125 of file Sparse.h.
Referenced by Sparse< bool >::ridx().
|
inline |
Definition at line 119 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 75 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 190 of file Sparse.cc.
References Sparse< T >::nnz(), and sparse_indices_ok().
Referenced by Sparse< bool >::indices_ok().
|
inline |
Definition at line 111 of file Sparse.h.
Referenced by Sparse< bool >::nzmax().
Definition at line 135 of file Sparse.cc.
References d.
Referenced by Sparse< bool >::maybe_compress().
|
inline |
Definition at line 113 of file Sparse.h.
Referenced by Sparse< bool >::nnz(), and Sparse< T >::SparseRep::SparseRep().
|
inline |
Definition at line 123 of file Sparse.h.
Referenced by Sparse< bool >::ridx(), and Sparse< bool >::xridx().
octave_idx_type* Sparse< T >::SparseRep::c |
Definition at line 67 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 71 of file Sparse.h.
Referenced by Sparse< bool >::Sparse().
T* Sparse< T >::SparseRep::d |
Definition at line 65 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 70 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 68 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem().
octave_idx_type* Sparse< T >::SparseRep::r |
Definition at line 66 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::elem(), Sparse< bool >::ridx(), Sparse< bool >::Sparse(), Sparse< T >::SparseRep::SparseRep(), and Sparse< bool >::xridx().