MCPcopy Create free account
hub / github.com/Derious/cuMPC / swap

Method swap

dependence/eigen-3.4.0/Eigen/src/SparseCore/SparseMatrix.h:737–745  ·  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

735 /** Swaps the content of two sparse matrices of the same type.
736 * This is a fast operation that simply swaps the underlying pointers and parameters. */
737 inline void swap(SparseMatrix& other)
738 {
739 //EIGEN_DBG_SPARSE(std::cout << "SparseMatrix:: swap\n");
740 std::swap(m_outerIndex, other.m_outerIndex);
741 std::swap(m_innerSize, other.m_innerSize);
742 std::swap(m_outerSize, other.m_outerSize);
743 std::swap(m_innerNonZeros, other.m_innerNonZeros);
744 m_data.swap(other.m_data);
745 }
746
747 /** Sets *this to the identity matrix.
748 * This function also turns the matrix into compressed mode, and drop any reserved memory. */

Callers 11

SparseProduct.hFile · 0.45
swapFunction · 0.45
SparseVector.hFile · 0.45
assignDiagonalMethod · 0.45
SparseMatrix.hFile · 0.45
runMethod · 0.45
runMethod · 0.45
JacobiSVD.hFile · 0.45
computeSVDofMMethod · 0.45
deflationMethod · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected