Lines Matching refs:Index
77 Index m_innerSize;
82 inline Index rows() const { return IsRowMajor ? outerSize() : m_innerSize; }
83 inline Index cols() const { return IsRowMajor ? m_innerSize : outerSize(); }
84 inline Index innerSize() const { return m_innerSize; }
85 inline Index outerSize() const { return convert_index(m_data.size()); }
86 inline Index innerNonZeros(Index j) const { return m_data[j].size(); }
94 inline Scalar coeff(Index row, Index col) const
96 const Index outer = IsRowMajor ? row : col;
97 const Index inner = IsRowMajor ? col : row;
105 inline Scalar& coeffRef(Index row, Index col)
107 const Index outer = IsRowMajor ? row : col;
108 const Index inner = IsRowMajor ? col : row;
117 for (Index j=0; j<outerSize(); ++j)
122 Index nonZeros() const
124 Index res = 0;
125 for (Index j=0; j<outerSize(); ++j)
132 void reserve(Index reserveSize = 1000)
136 Index reserveSizePerVector = (std::max)(reserveSize/outerSize(),Index(4));
137 for (Index j=0; j<outerSize(); ++j)
145 inline void startVec(Index /*outer*/) {}
152 inline Scalar& insertBack(Index row, Index col)
158 inline Scalar& insertBackByOuterInner(Index outer, Index inner)
160 eigen_assert(outer<Index(m_data.size()) && inner<m_innerSize && "out of range");
167 inline Scalar& insert(Index row, Index col)
169 const Index outer = IsRowMajor ? row : col;
170 const Index inner = IsRowMajor ? col : row;
172 Index startId = 0;
173 Index id = static_cast<Index>(m_data[outer].size()) - 1;
193 for (Index j=0; j<outerSize(); ++j)
199 void resize(Index rows, Index cols)
201 const Index outerSize = IsRowMajor ? rows : cols;
204 if (Index(m_data.size()) != outerSize)
210 void resizeAndKeepData(Index rows, Index cols)
212 const Index outerSize = IsRowMajor ? rows : cols;
213 const Index innerSize = IsRowMajor ? cols : rows;
235 EIGEN_DEPRECATED inline DynamicSparseMatrix(Index rows, Index cols)
284 EIGEN_DEPRECATED void startFill(Index reserveSize = 1000)
299 EIGEN_DEPRECATED Scalar& fill(Index row, Index col)
301 const Index outer = IsRowMajor ? row : col;
302 const Index inner = IsRowMajor ? col : row;
311 EIGEN_DEPRECATED Scalar& fillrand(Index row, Index col)
330 InnerIterator(const DynamicSparseMatrix& mat, Index outer)
334 inline Index row() const { return IsRowMajor ? m_outer : Base::index(); }
335 inline Index col() const { return IsRowMajor ? Base::index() : m_outer; }
336 inline Index outer() const { return m_outer; }
339 const Index m_outer;
347 ReverseInnerIterator(const DynamicSparseMatrix& mat, Index outer)
351 inline Index row() const { return IsRowMajor ? m_outer : Base::index(); }
352 inline Index col() const { return IsRowMajor ? Base::index() : m_outer; }
353 inline Index outer() const { return m_outer; }
356 const Index m_outer;
381 Scalar coeff(Index row, Index col) const { return m_matrix->coeff(row,col); }
383 Index nonZerosEstimate() const { return m_matrix->nonZeros(); }