knncolle
Collection of KNN methods in C++
|
Simple wrapper for an in-memory matrix. More...
#include <Matrix.hpp>
Public Member Functions | |
SimpleMatrix (size_t num_dimensions, Index_ num_observations, const Data_ *data) | |
Index_ | num_observations () const |
size_t | num_dimensions () const |
std::unique_ptr< MatrixExtractor< Data_ > > | new_extractor () const |
![]() |
Simple wrapper for an in-memory matrix.
This defines a simple column-major matrix of observations where the columns are observations and the rows are dimensions. It is compatible with the compile-time interface described in MockMatrix
.
Index_ | Integer type of the observation indices. |
Data_ | Numeric type of the data. |
|
inline |
num_dimensions | Number of dimensions. | |
num_observations | Number of observations. | |
[in] | data | Pointer to an array of length num_dim * num_obs , containing a column-major matrix of observation data. It is expected that the array will not be deallocated during the lifetime of this SimpleMatrix instance. |
|
inlinevirtual |
Implements knncolle::Matrix< Index_, Data_ >.
|
inlinevirtual |
Implements knncolle::Matrix< Index_, Data_ >.
|
inlinevirtual |
Implements knncolle::Matrix< Index_, Data_ >.