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

Function direct

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

* \brief Returns a wrapper class for direct coefficient access. * If this wrapper is used, a call to \ref coeff(Index row, Index col, Index batch, Index linear) const * will use the linear index instead of the regular row-column-batch index. This avoids * the search for the matching coefficient in this sparse matrix. * * The use case is the following optimization: *

Source from the content-addressed store, hash-verified

228 * \return a wrapper to trigger the direct-read optimization
229 */
230 internal::SparseMatrixDirectAccess<const Type> direct() const
231 {
232 return internal::SparseMatrixDirectAccess<const Type>(this);
233 }
234
235 //----------------------------------
236 // EVALUATION

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected