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() */
| 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) |
no test coverage detected