add code comments for deepSwap

avx_docs
xutianbing 8 years ago
parent c7f96de12e
commit 5de5453d15

@ -458,6 +458,10 @@ public:
/**
* @code
* swap(this, b)
* example: swap two Matrices
* MatrixPtr cpuA = std::make_shared<CpuMatrix>(height, width);
* MatrixPtr cpuB = std::make_shared<CpuMatrix>(height, width);
* cpuA->deepSwap(*cpuB);
* @endcode
*/
void deepSwap(BaseMatrixT& b);

Loading…
Cancel
Save