10 template <
typename T>
class Matrix;
21 ::std::unique_ptr<size_t[]> _mask;
25 void copy(
const IndexMask &other)
noexcept;
32 IndexMask(::std::unique_ptr<
size_t[]> mask,
size_t size);
66 template <
typename Container,
typename T,
typename CompareFunction = ::std::greater<T>>
70#include "CNum/DataStructs/Matrix/IndexMask.tpp"
IndexMask(IndexMask &&other) noexcept
Move constructor.
::CNum::DataStructs::Matrix< T > matrix_apply_mask(const ::CNum::DataStructs::Matrix< T > &m) const
Apply an index mask to a Matrix.
IndexMask & operator=(const IndexMask &other) noexcept
Copy equals operator.
::CNum::DataStructs::Matrix< T > matrix_apply_mask_col_wise(const ::CNum::DataStructs::Matrix< T > &m) const
Apply an index mask to a Matrix column wise.
static IndexMask argsort(const Container &container)
Create an index mask.
Definition IndexMask.h:3
IndexMask & operator=(IndexMask &&other) noexcept
Move equals operator.
IndexMask(::std::unique_ptr< size_t[]> mask, size_t size)
Constructor.
IndexMask(const IndexMask &other) noexcept
Copy constructor.
2d array abstraction
Definition Matrix.h:43
The data structures used in CNum.
Definition ConcurrentQueue.h:8