#include "Sparse.h"
Public Types | |
typedef std::allocator_traits< Alloc > | Alloc_traits |
typedef Alloc_traits::template rebind_traits< octave_idx_type > | idx_type_Alloc_traits |
typedef idx_type_Alloc_traits::pointer | idx_type_pointer |
typedef Alloc_traits::template rebind_traits< T > | T_Alloc_traits |
typedef T_Alloc_traits::pointer | T_pointer |
Public Attributes | |
idx_type_pointer | m_cidx |
octave::refcount< octave_idx_type > | m_count |
T_pointer | m_data |
octave_idx_type | m_ncols |
octave_idx_type | m_nrows |
octave_idx_type | m_nzmax |
idx_type_pointer | m_ridx |
Friends | |
template<typename U , typename A > | |
class | Sparse |
typedef std::allocator_traits<Alloc> Sparse< T, Alloc >::SparseRep::Alloc_traits |
typedef Alloc_traits::template rebind_traits<octave_idx_type> Sparse< T, Alloc >::SparseRep::idx_type_Alloc_traits |
typedef idx_type_Alloc_traits::pointer Sparse< T, Alloc >::SparseRep::idx_type_pointer |
typedef Alloc_traits::template rebind_traits<T> Sparse< T, Alloc >::SparseRep::T_Alloc_traits |
typedef T_Alloc_traits::pointer Sparse< T, Alloc >::SparseRep::T_pointer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 131 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_cidx, Sparse< T, Alloc >::SparseRep::m_data, Sparse< T, Alloc >::SparseRep::m_ridx, and Sparse< T, Alloc >::SparseRep::nnz().
Definition at line 187 of file Sparse.cc.
References isnan(), and Sparse< T, Alloc >::nnz().
Referenced by Sparse< T, Alloc >::any_element_is_nan().
|
inline |
Definition at line 172 of file Sparse.h.
Referenced by Sparse< T, Alloc >::cidx().
|
inline |
T Sparse< T, Alloc >::SparseRep::celem | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) | const |
void Sparse< T, Alloc >::SparseRep::change_length | ( | octave_idx_type | nz | ) |
Definition at line 145 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::change_capacity().
|
inline |
Definition at line 170 of file Sparse.h.
Referenced by Sparse< T, Alloc >::cidx(), and Sparse< T, Alloc >::xcidx().
|
inline |
|
inline |
|
inline |
Definition at line 168 of file Sparse.h.
Referenced by Sparse< T, Alloc >::ridx().
|
inline |
Definition at line 162 of file Sparse.h.
Referenced by Sparse< T, Alloc >::data(), Sparse< T, Alloc >::SparseRep::T_allocate(), Sparse< T, Alloc >::SparseRep::T_deallocate(), and Sparse< T, Alloc >::xdata().
T & Sparse< T, Alloc >::SparseRep::elem | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 66 of file Sparse.cc.
References Sparse< T, Alloc >::SparseRep::m_cidx, Sparse< T, Alloc >::SparseRep::m_data, Sparse< T, Alloc >::SparseRep::m_ncols, Sparse< T, Alloc >::SparseRep::m_nzmax, Sparse< T, Alloc >::SparseRep::m_ridx, and r.
Referenced by Sparse< T, Alloc >::xelem().
|
inline |
|
inline |
Definition at line 179 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::indices_ok().
|
inline |
void Sparse< T, Alloc >::SparseRep::maybe_compress | ( | bool | remove_zeros | ) |
Definition at line 120 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::maybe_compress().
|
inline |
Definition at line 152 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), and Sparse< T, Alloc >::nnz().
|
inline |
Definition at line 151 of file Sparse.h.
Referenced by Sparse< T, Alloc >::nzmax().
|
delete |
|
inline |
Definition at line 166 of file Sparse.h.
Referenced by Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::xridx().
|
inline |
|
inline |
Definition at line 191 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and len.
|
inline |
Definition at line 202 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and len.
|
friend |
idx_type_pointer Sparse< T, Alloc >::SparseRep::m_cidx |
Definition at line 73 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::SparseRep::elem(), and Sparse< T, Alloc >::xcidx().
octave::refcount<octave_idx_type> Sparse< T, Alloc >::SparseRep::m_count |
Definition at line 77 of file Sparse.h.
Referenced by Sparse< T, Alloc >::Sparse(), Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::operator=().
Definition at line 71 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::SparseRep::elem(), and Sparse< T, Alloc >::xdata().
octave_idx_type Sparse< T, Alloc >::SparseRep::m_ncols |
Definition at line 76 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::elem().
octave_idx_type Sparse< T, Alloc >::SparseRep::m_nrows |
octave_idx_type Sparse< T, Alloc >::SparseRep::m_nzmax |
Definition at line 74 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::elem().
idx_type_pointer Sparse< T, Alloc >::SparseRep::m_ridx |
Definition at line 72 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::SparseRep::elem(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::xridx().