\returns the value of the matrix at position \a i, \a j * This function returns Scalar(0) if the element is an explicit \em zero */
| 215 | /** \returns the value of the matrix at position \a i, \a j |
| 216 | * This function returns Scalar(0) if the element is an explicit \em zero */ |
| 217 | inline Scalar coeff(Index row, Index col) const |
| 218 | { |
| 219 | eigen_assert(row>=0 && row<rows() && col>=0 && col<cols()); |
| 220 | |
| 221 | const Index outer = IsRowMajor ? row : col; |
| 222 | const Index inner = IsRowMajor ? col : row; |
| 223 | Index end = m_innerNonZeros ? m_outerIndex[outer] + m_innerNonZeros[outer] : m_outerIndex[outer+1]; |
| 224 | return m_data.atInRange(m_outerIndex[outer], end, inner); |
| 225 | } |
| 226 | |
| 227 | /** \returns a non-const reference to the value of the matrix at position \a i, \a j |
| 228 | * |
no test coverage detected