#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) | |
SparseRep (const SparseRep &a) | |
SparseRep (octave_idx_type nr, octave_idx_type nc) | |
~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) |
Definition at line 62 of file Sparse.h.
Sparse< T >::SparseRep::SparseRep | ( | void | ) | [inline] |
Sparse< T >::SparseRep::SparseRep | ( | octave_idx_type | n | ) | [inline] |
Sparse< T >::SparseRep::SparseRep | ( | octave_idx_type | nr, | |
octave_idx_type | nc | |||
) | [inline] |
Sparse< T >::SparseRep::SparseRep | ( | octave_idx_type | nr, | |
octave_idx_type | nc, | |||
octave_idx_type | nz | |||
) | [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.
Sparse< T >::SparseRep::~SparseRep | ( | void | ) | [inline] |
octave_idx_type Sparse< T >::SparseRep::ccidx | ( | octave_idx_type | i | ) | const [inline] |
Definition at line 129 of file Sparse.h.
Referenced by Sparse< bool >::cidx().
T Sparse< T >::SparseRep::cdata | ( | octave_idx_type | i | ) | const [inline] |
T Sparse< T >::SparseRep::celem | ( | octave_idx_type | _r, | |
octave_idx_type | _c | |||
) | const |
Definition at line 132 of file Sparse.cc.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::nzmx, and Sparse< T >::SparseRep::r.
Referenced by Sparse< bool >::xelem().
void Sparse< T >::SparseRep::change_length | ( | octave_idx_type | nz | ) |
Definition at line 166 of file Sparse.cc.
References Sparse< T >::SparseRep::c, copy_or_memcpy(), Sparse< T >::SparseRep::d, min(), Sparse< T >::SparseRep::ncols, Sparse< T >::SparseRep::nzmx, and Sparse< T >::SparseRep::r.
Referenced by Sparse< bool >::change_capacity(), Sparse< T >::SparseRep::maybe_compress(), and Sparse< T >::resize().
octave_idx_type& Sparse< T >::SparseRep::cidx | ( | octave_idx_type | i | ) | [inline] |
Definition at line 127 of file Sparse.h.
Referenced by Sparse< bool >::cidx(), and Sparse< bool >::xcidx().
octave_idx_type Sparse< T >::SparseRep::cridx | ( | octave_idx_type | i | ) | const [inline] |
Definition at line 125 of file Sparse.h.
Referenced by Sparse< bool >::ridx().
T& Sparse< T >::SparseRep::data | ( | octave_idx_type | i | ) | [inline] |
Definition at line 119 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 >::SparseRep::c, Sparse< T >::SparseRep::ncols, Sparse< T >::SparseRep::nnz(), Sparse< T >::SparseRep::nrows, Sparse< T >::SparseRep::r, and sparse_indices_ok().
Referenced by Sparse< bool >::indices_ok().
octave_idx_type Sparse< T >::SparseRep::length | ( | void | ) | const [inline] |
Definition at line 111 of file Sparse.h.
Referenced by Sparse< bool >::nzmax().
Definition at line 143 of file Sparse.cc.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::change_length(), Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::ncols, and Sparse< T >::SparseRep::r.
Referenced by Sparse< bool >::maybe_compress().
octave_idx_type Sparse< T >::SparseRep::nnz | ( | void | ) | const [inline] |
Definition at line 113 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::indices_ok(), Sparse< bool >::nnz(), Sparse< T >::resize(), and Sparse< T >::SparseRep::SparseRep().
octave_idx_type& Sparse< T >::SparseRep::ridx | ( | octave_idx_type | i | ) | [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 68 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::celem(), Sparse< T >::SparseRep::change_length(), Sparse< bool >::cidx(), Sparse< T >::SparseRep::elem(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::SparseRep::maybe_compress(), Sparse< T >::print_info(), Sparse< T >::resize(), 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< T >::insert(), Sparse< T >::operator=(), Sparse< T >::print_info(), Sparse< bool >::Sparse(), and Sparse< T >::~Sparse().
T* Sparse< T >::SparseRep::d |
Definition at line 66 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::celem(), Sparse< T >::SparseRep::change_length(), Sparse< bool >::data(), Sparse< T >::SparseRep::elem(), Sparse< T >::SparseRep::maybe_compress(), Sparse< T >::print_info(), 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::change_length(), Sparse< T >::SparseRep::elem(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::SparseRep::maybe_compress(), Sparse< T >::print_info(), Sparse< T >::resize(), and Sparse< bool >::Sparse().
octave_idx_type Sparse< T >::SparseRep::nrows |
Definition at line 70 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::indices_ok(), Sparse< T >::print_info(), and Sparse< T >::resize().
octave_idx_type Sparse< T >::SparseRep::nzmx |
Definition at line 69 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::celem(), Sparse< T >::SparseRep::change_length(), Sparse< T >::SparseRep::elem(), and Sparse< T >::print_info().
octave_idx_type* Sparse< T >::SparseRep::r |
Definition at line 67 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::celem(), Sparse< T >::SparseRep::change_length(), Sparse< T >::SparseRep::elem(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::SparseRep::maybe_compress(), Sparse< T >::print_info(), Sparse< bool >::ridx(), Sparse< bool >::Sparse(), Sparse< T >::SparseRep::SparseRep(), and Sparse< bool >::xridx().