MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / swap

Method swap

include/Eigen/src/SparseCore/SparseMatrix.h:824–831  ·  view source on GitHub ↗

Swaps the content of two sparse matrices of the same type. * This is a fast operation that simply swaps the underlying pointers and parameters. */

Source from the content-addressed store, hash-verified

822 /** Swaps the content of two sparse matrices of the same type.
823 * This is a fast operation that simply swaps the underlying pointers and parameters. */
824 inline void swap(SparseMatrix& other) {
825 // EIGEN_DBG_SPARSE(std::cout << "SparseMatrix:: swap\n");
826 std::swap(m_outerIndex, other.m_outerIndex);
827 std::swap(m_innerSize, other.m_innerSize);
828 std::swap(m_outerSize, other.m_outerSize);
829 std::swap(m_innerNonZeros, other.m_innerNonZeros);
830 m_data.swap(other.m_data);
831 }
832 /** Free-function swap. */
833 friend EIGEN_DEVICE_FUNC void swap(SparseMatrix& a, SparseMatrix& b) { a.swap(b); }
834

Callers 13

SparseMatrixMethod · 0.95
SparseMatrixClass · 0.95
SparseProduct.hFile · 0.45
swapFunction · 0.45
SparseVector.hFile · 0.45
SparseVectorFunction · 0.45
SparseMatrix.hFile · 0.45
runMethod · 0.45
runMethod · 0.45
JacobiSVD.hFile · 0.45
computeSVDofMMethod · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected