|
CNum 0.2.1
CPU-optimized ML library for C++
|
A list of indecies representing a subset or ordering of data. More...
#include <IndexMask.h>
Public Member Functions | |
| IndexMask ()=delete | |
| IndexMask (::std::unique_ptr< size_t[]> mask, size_t size) | |
| Constructor. | |
| IndexMask (const IndexMask &other) noexcept | |
| Copy constructor. | |
| IndexMask & | operator= (const IndexMask &other) noexcept |
| Copy equals operator. | |
| IndexMask (IndexMask &&other) noexcept | |
| Move constructor. | |
| IndexMask & | operator= (IndexMask &&other) noexcept |
| Move equals operator. | |
| template<typename T> | |
| ::CNum::DataStructs::Matrix< T > | matrix_apply_mask (const ::CNum::DataStructs::Matrix< T > &m) const |
| Apply an index mask to a Matrix. | |
| template<typename T> | |
| ::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. | |
| template<typename T> | |
| ::CNum::DataStructs::Matrix< T > | matrix_apply_mask (const ::CNum::DataStructs::Matrix< T > &m) const |
| template<typename T> | |
| ::CNum::DataStructs::Matrix< T > | matrix_apply_mask_col_wise (const ::CNum::DataStructs::Matrix< T > &m) const |
Static Public Member Functions | |
| template<typename Container, typename T, typename CompareFunction = ::std::greater<T>> | |
| static IndexMask | argsort (const Container &container) |
| Create an index mask. | |
A list of indecies representing a subset or ordering of data.
The index mask at its core is a list of indeces that can be used to reorder and get subsets of datasets.
|
delete |
| CNum::DataStructs::IndexMask::IndexMask | ( | ::std::unique_ptr< size_t[]> | mask, |
| size_t | size ) |
Constructor.
|
noexcept |
Copy constructor.
|
noexcept |
Move constructor.
|
static |
Create an index mask.
| Container | an STL container or a Matrix |
| T | The data type stored in Container |
| CompareFunction | The function used to sort (greater by default) |
| ::CNum::DataStructs::Matrix< T > CNum::DataStructs::IndexMask::matrix_apply_mask | ( | const ::CNum::DataStructs::Matrix< T > & | m | ) | const |
| ::CNum::DataStructs::Matrix< T > CNum::DataStructs::IndexMask::matrix_apply_mask | ( | const ::CNum::DataStructs::Matrix< T > & | m | ) | const |
| ::CNum::DataStructs::Matrix< T > CNum::DataStructs::IndexMask::matrix_apply_mask_col_wise | ( | const ::CNum::DataStructs::Matrix< T > & | m | ) | const |
| ::CNum::DataStructs::Matrix< T > CNum::DataStructs::IndexMask::matrix_apply_mask_col_wise | ( | const ::CNum::DataStructs::Matrix< T > & | m | ) | const |
Copy equals operator.
Move equals operator.