16 template <
typename T,
typename indexT,
bool columnMajor>
31 vals = &mat.vals[mat.outerPtr[vec]];
32 indices = &mat.innerIdx[mat.outerPtr[vec]];
33 endPtr = &mat.innerIdx[mat.outerPtr[vec + 1]];
41 template <
typename T,
typename indexT,
bool columnMajor>
49 indices = vec.indexPtr();
50 endPtr = vec.indexPtr() + vec.
nonZeros();
60 template <
typename T,
typename indexT,
bool columnMajor>
66 if (indices == endPtr) {
76 template <
typename T,
typename indexT,
bool columnMajor>
77 bool SparseMatrix<T, indexT, 1, columnMajor>::InnerIterator::operator==(
const InnerIterator &other) {
78 return (vals == other.vals && indices == other.index);
82 template <
typename T,
typename indexT,
bool columnMajor>
83 bool SparseMatrix<T, indexT, 1, columnMajor>::InnerIterator::operator!=(
const InnerIterator &other) {
84 return (vals != other.vals || indices != other.index);
88 template <
typename T,
typename indexT,
bool columnMajor>
89 bool SparseMatrix<T, indexT, 1, columnMajor>::InnerIterator::operator<(
const InnerIterator &other) {
90 return (vals < other.vals && indices < other.index);
94 template <
typename T,
typename indexT,
bool columnMajor>
95 bool SparseMatrix<T, indexT, 1, columnMajor>::InnerIterator::operator>(
const InnerIterator &other) {
96 return (vals > other.vals && indices > other.index);
100 template <
typename T,
typename indexT,
bool columnMajor>
101 T &SparseMatrix<T, indexT, 1, columnMajor>::InnerIterator::operator*() {
108 template <
typename T,
typename indexT,
bool columnMajor>
114 template <
typename T,
typename indexT,
bool columnMajor>
120 template <
typename T,
typename indexT,
bool columnMajor>
130 template <
typename T,
typename indexT,
bool columnMajor>
140 template <
typename T,
typename indexT,
bool columnMajor>
146 template <
typename T,
typename indexT,
bool columnMajor>
void coeff(T newValue)
Definition: IVCSC_Iterator_Methods.hpp:113
T value()
Definition: IVCSC_Iterator_Methods.hpp:101
indexT row()
Definition: IVCSC_Iterator_Methods.hpp:119
indexT col()
Definition: IVCSC_Iterator_Methods.hpp:129
indexT outerDim()
Definition: IVCSC_Iterator_Methods.hpp:95
indexT getIndex()
Definition: IVCSC_Iterator_Methods.hpp:107
InnerIterator()
Definition: IVCSC_Iterator.hpp:57
Definition: IVCSC_Vector.hpp:25
uint32_t nonZeros()
Definition: IVCSC_Vector_Methods.hpp:165
Definition: CSC_SparseMatrix.hpp:24
indexT * getOuterPointers() const
Definition: CSC_Methods.hpp:57
Definition: IVCSC_SparseMatrix.hpp:29