#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 Alloc_traits::template rebind_traits<octave_idx_type> Sparse< T, Alloc >::SparseRep::idx_type_Alloc_traits |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 128 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().
bool Sparse< T, Alloc >::SparseRep::any_element_is_nan | ( | ) | const |
Definition at line 186 of file Sparse.cc.
References Sparse< T, Alloc >::nnz().
Referenced by Sparse< T, Alloc >::any_element_is_nan().
|
inline |
Definition at line 169 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 |
Definition at line 107 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::xelem().
void Sparse< T, Alloc >::SparseRep::change_length | ( | octave_idx_type | nz | ) |
Definition at line 144 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::change_capacity().
|
inline |
Definition at line 167 of file Sparse.h.
Referenced by Sparse< T, Alloc >::cidx(), and Sparse< T, Alloc >::xcidx().
|
inline |
|
inline |
|
inline |
Definition at line 165 of file Sparse.h.
Referenced by Sparse< T, Alloc >::ridx().
|
inline |
Definition at line 159 of file Sparse.h.
Referenced by Sparse< T, Alloc >::data(), Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::xdata().
T & Sparse< T, Alloc >::SparseRep::elem | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 65 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, and Sparse< T, Alloc >::SparseRep::m_ridx.
Referenced by Sparse< T, Alloc >::xelem().
|
inline |
|
inline |
Definition at line 178 of file Sparse.cc.
References Sparse< T, Alloc >::nnz(), and sparse_indices_ok().
Referenced by Sparse< T, Alloc >::indices_ok().
|
inline |
void Sparse< T, Alloc >::SparseRep::maybe_compress | ( | bool | remove_zeros | ) |
Definition at line 119 of file Sparse.cc.
Referenced by Sparse< T, Alloc >::maybe_compress().
|
inline |
Definition at line 149 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), and Sparse< T, Alloc >::nnz().
|
inline |
Definition at line 148 of file Sparse.h.
Referenced by Sparse< T, Alloc >::nzmax().
|
delete |
|
inline |
Definition at line 163 of file Sparse.h.
Referenced by Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::xridx().
|
inline |
idx_type_pointer Sparse< T, Alloc >::SparseRep::m_cidx |
Definition at line 70 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::cidx(), 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 74 of file Sparse.h.
Referenced by Sparse< T, Alloc >::Sparse(), Sparse< T, Alloc >::Sparse(), and Sparse< T, Alloc >::operator=().
Definition at line 68 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::data(), 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 73 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 71 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::elem().
idx_type_pointer Sparse< T, Alloc >::SparseRep::m_ridx |
Definition at line 69 of file Sparse.h.
Referenced by Sparse< T, Alloc >::SparseRep::SparseRep(), Sparse< T, Alloc >::SparseRep::elem(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::xridx().