* \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 */
| 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. |
no test coverage detected