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

Function index

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

* \brief Converts from the linear index back to row, column and batch index. * Requirement of \c AccessFlags::WriteCwise * \param index the linear index * \param row the row index (output) * \param col the column index (output) * \param batch the batch index (output) */

Source from the content-addressed store, hash-verified

150 * \param batch the batch index (output)
151 */
152 __device__ void index(Index index, Index& row, Index& col, Index& batch) const
153 {
154 return internal::SparseMatrixIndexEvaluator<_SparseFlags>::linearToCoords(sparsity_, index, row, col, batch);
155 }
156
157 /**
158 * \brief Access to the linearized coefficient, write-only.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected