MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / swap

Function swap

include/Eigen/Eigen/src/SparseCore/SparseVector.h:311–315  ·  view source on GitHub ↗

Swaps the values of \c *this and \a other. * Overloaded for performance: this version performs a \em shallow swap by swapping pointers and attributes only. * \sa SparseMatrixBase::swap() */

Source from the content-addressed store, hash-verified

309 * \sa SparseMatrixBase::swap()
310 */
311 inline void swap(SparseVector& other)
312 {
313 std::swap(m_size, other.m_size);
314 m_data.swap(other.m_data);
315 }
316
317 template<int OtherOptions>
318 inline void swap(SparseMatrix<Scalar,OtherOptions,StorageIndex>& other)

Callers 15

permute_symm_to_fullsymmFunction · 0.70
permute_symm_to_symmFunction · 0.70
SparseVector.hFile · 0.70
swapMethod · 0.70
reserveInnerVectorsMethod · 0.70
swapMethod · 0.70
SparseMatrixClass · 0.70
pivotLMethod · 0.50
pruneLMethod · 0.50
factorizeMethod · 0.50
JacobiSVD.hFile · 0.50
allocateMethod · 0.50

Calls 2

swapMethod · 0.45
outerSizeMethod · 0.45

Tested by

no test coverage detected