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

Function swap

include/Eigen/src/SparseCore/SparseVector.h:277–280  ·  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

275 * \sa SparseMatrixBase::swap()
276 */
277 inline void swap(SparseVector& other) {
278 std::swap(m_size, other.m_size);
279 m_data.swap(other.m_data);
280 }
281 friend EIGEN_DEVICE_FUNC void swap(SparseVector& a, SparseVector& b) { a.swap(b); }
282
283 template <int OtherOptions>

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