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

Function makeExclusiveUse

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

* \brief Checks if the underlying data is used by an other matrix expression and if so, * copies the data so that this matrix is the exclusive user of that data. * \b Note: The data is tested, the sparsity pattern might still be shared! * * This method has no effect if \ref isExclusiveUse is already true. * * Postcondition: isExclusiveUse() == true */

Source from the content-addressed store, hash-verified

267 * Postcondition: <code>isExclusiveUse() == true</code>
268 */
269 void makeExclusiveUse()
270 {
271 if (isExclusiveUse()) return;
272 A_ = A_.deepClone();
273 assert(isExclusiveUse());
274 }
275
276 /**
277 * \brief Performs a deep clone of the matrix.

Callers 1

SparseMatrix.hFile · 0.70

Calls 2

isExclusiveUseFunction · 0.70
deepCloneMethod · 0.45

Tested by

no test coverage detected