Home | History | Annotate | Download | only in SparseCore

Lines Matching refs:Index

40     Index   m_outerSize;
41 Index m_innerSize;
42 Index m_nnz;
43 Index* m_outerIndex;
44 Index* m_innerIndices;
49 inline Index rows() const { return IsRowMajor ? m_outerSize : m_innerSize; }
50 inline Index cols() const { return IsRowMajor ? m_innerSize : m_outerSize; }
51 inline Index innerSize() const { return m_innerSize; }
52 inline Index outerSize() const { return m_outerSize; }
61 inline const Index* innerIndexPtr() const { return m_innerIndices; }
62 inline Index* innerIndexPtr() { return m_innerIndices; }
64 inline const Index* outerIndexPtr() const { return m_outerIndex; }
65 inline Index* outerIndexPtr() { return m_outerIndex; }
68 inline Scalar coeff(Index row, Index col) const
70 const Index outer = IsRowMajor ? row : col;
71 const Index inner = IsRowMajor ? col : row;
73 Index start = m_outerIndex[outer];
74 Index end = m_outerIndex[outer+1];
82 const Index* r = std::lower_bound(&m_innerIndices[start],&m_innerIndices[end-1],inner);
83 const Index id = r-&m_innerIndices[0];
87 inline Scalar& coeffRef(Index row, Index col)
89 const Index outer = IsRowMajor ? row : col;
90 const Index inner = IsRowMajor ? col : row;
92 Index start = m_outerIndex[outer];
93 Index end = m_outerIndex[outer+1];
96 Index* r = std::lower_bound(&m_innerIndices[start],&m_innerIndices[end],inner);
97 const Index id = r-&m_innerIndices[0];
106 inline Index nonZeros() const { return m_nnz; }
108 inline MappedSparseMatrix(Index rows, Index cols, Index nnz, Index* outerIndexPtr, Index* innerIndexPtr, Scalar* valuePtr)
121 InnerIterator(const MappedSparseMatrix& mat, Index outer)
134 inline Index index() const { return m_matrix.innerIndexPtr()[m_id]; }
135 inline Index row() const { return IsRowMajor ? m_outer : index(); }
136 inline Index col() const { return IsRowMajor ? index() : m_outer; }
142 const Index m_outer;
143 Index m_id;
144 const Index m_start;
145 const Index m_end;
152 ReverseInnerIterator(const MappedSparseMatrix& mat, Index outer)
165 inline Index index() const { return m_matrix.innerIndexPtr()[m_id-1]; }
166 inline Index row() const { return IsRowMajor ? m_outer : index(); }
167 inline Index col() const { return IsRowMajor ? index() : m_outer; }
173 const Index m_outer;
174 Index m_id;
175 const Index m_start;
176 const Index m_end;