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