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

Function isExclusiveUse

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

* \brief Checks if the this matrix has exclusive use to the underlying data, i.e. no other matrix expression shares the data. * \b Note: The data is tested, the sparsity pattern might still be shared! * This allows to check if this matrix is used in other expressions because that increments the internal reference counter. * If the internal reference counter is one, the matrix is nowher

Source from the content-addressed store, hash-verified

253 * \return
254 */
255 CUMAT_STRONG_INLINE bool isExclusiveUse() const
256 {
257 return A_.dataPointer().getCounter() == 1;
258 }
259
260 /**
261 * \brief Checks if the underlying data is used by an other matrix expression and if so,

Callers 1

makeExclusiveUseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected