MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / swap

Function swap

dependency/densecrf/include/Eigen/src/SparseCore/SparseVector.h:287–291  ·  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

285 * \sa SparseMatrixBase::swap()
286 */
287 inline void swap(SparseVector& other)
288 {
289 std::swap(m_size, other.m_size);
290 m_data.swap(other.m_data);
291 }
292
293 template<int OtherOptions>
294 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
CompressedStorageClass · 0.70
reallocateMethod · 0.70
reserveInnerVectorsMethod · 0.70
swapMethod · 0.70
SparseMatrixClass · 0.70
pivotLMethod · 0.50
pruneLMethod · 0.50
factorizeMethod · 0.50

Calls 2

swapMethod · 0.45
outerSizeMethod · 0.45

Tested by

no test coverage detected