DiSMEC++
|
This is an almost verbatim copy of the SparseFeatures::InnerIterator provided by Eigen. More...
#include <fast_sparse_row_iter.h>
Public Types | |
using | Scalar = SparseFeatures::Scalar |
using | Index = SparseFeatures::Index |
using | StorageIndex = SparseFeatures::StorageIndex |
Public Member Functions | |
FastSparseRowIter (const SparseFeatures &mat, Index row) | |
FastSparseRowIter & | operator++ () |
const Scalar & | value () const |
Scalar & | valueRef () |
int | index () const |
int | outer () const |
int | row () const |
int | col () const |
operator bool () const | |
Protected Attributes | |
const Scalar * | m_values |
const StorageIndex * | m_indices |
const Index | m_outer |
Index | m_id |
Index | m_end |
This is an almost verbatim copy of the SparseFeatures::InnerIterator provided by Eigen.
The only difference is that we do not check whether the matrix is compressed in the constructor, since we already know this. This improves performance slightly.
Definition at line 19 of file fast_sparse_row_iter.h.
using dismec::FastSparseRowIter::Index = SparseFeatures::Index |
Definition at line 23 of file fast_sparse_row_iter.h.
using dismec::FastSparseRowIter::Scalar = SparseFeatures::Scalar |
Definition at line 22 of file fast_sparse_row_iter.h.
using dismec::FastSparseRowIter::StorageIndex = SparseFeatures::StorageIndex |
Definition at line 24 of file fast_sparse_row_iter.h.
|
inline |
Definition at line 25 of file fast_sparse_row_iter.h.
|
inline |
Definition at line 40 of file fast_sparse_row_iter.h.
References index().
|
inline |
Definition at line 37 of file fast_sparse_row_iter.h.
References m_id, and m_indices.
Referenced by col().
|
inlineexplicit |
Definition at line 42 of file fast_sparse_row_iter.h.
|
inline |
Definition at line 32 of file fast_sparse_row_iter.h.
References m_id.
|
inline |
Definition at line 38 of file fast_sparse_row_iter.h.
References m_outer.
|
inline |
Definition at line 39 of file fast_sparse_row_iter.h.
References m_outer.
Referenced by FastSparseRowIter().
|
inline |
Definition at line 34 of file fast_sparse_row_iter.h.
|
inline |
Definition at line 35 of file fast_sparse_row_iter.h.
|
protected |
Definition at line 49 of file fast_sparse_row_iter.h.
Referenced by FastSparseRowIter(), and operator bool().
|
protected |
Definition at line 48 of file fast_sparse_row_iter.h.
Referenced by FastSparseRowIter(), index(), operator bool(), operator++(), value(), and valueRef().
|
protected |
Definition at line 46 of file fast_sparse_row_iter.h.
Referenced by index().
|
protected |
Definition at line 47 of file fast_sparse_row_iter.h.
|
protected |
Definition at line 45 of file fast_sparse_row_iter.h.
Referenced by value(), and valueRef().