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