MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / swap

Function swap

include/rabitqlib/third/Eigen/src/Core/DenseStorage.h:324–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 }
323 EIGEN_DEVICE_FUNC DenseStorage(Index, Index rows, Index cols) : m_rows(rows), m_cols(cols) {}
324 EIGEN_DEVICE_FUNC void swap(DenseStorage& other)
325 {
326 internal::plain_array_helper::swap(m_data, m_rows * m_cols, other.m_data, other.m_rows * other.m_cols);
327 numext::swap(m_rows,other.m_rows);
328 numext::swap(m_cols,other.m_cols);
329 }
330 EIGEN_DEVICE_FUNC Index rows() const {return m_rows;}
331 EIGEN_DEVICE_FUNC Index cols() const {return m_cols;}
332 EIGEN_DEVICE_FUNC void conservativeResize(Index, Index rows, Index cols) { m_rows = rows; m_cols = cols; }

Callers 2

swapMethod · 0.70
DenseStorage.hFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected