MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / coeff

Function coeff

extensions/include/cuMat/src/SparseMatrix.h:135–142  ·  view source on GitHub ↗

* \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 */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

getRawCoeffMethod · 0.80

Tested by

no test coverage detected