* \brief Accesses a single entry, performs a search for the specific entry. * This is required by the \code AccessFlag::CwiseRead \endcode, * needed so that a sparse matrix can be used * \param row * \param col * \param batch * \return */
| 133 | * \return |
| 134 | */ |
| 135 | __device__ Scalar coeff(Index row, Index col, Index batch, Index /*linear*/) const |
| 136 | { |
| 137 | Index linear = internal::SparseMatrixIndexEvaluator<_SparseFlags>::coordsToLinear(sparsity_, row, col, batch); |
| 138 | if (linear >= 0) |
| 139 | return A_.getRawCoeff(linear); |
| 140 | else |
| 141 | return Scalar(0); |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * \brief Converts from the linear index back to row, column and batch index. |
nothing calls this directly
no test coverage detected