knncolle
Collection of KNN methods in C++
|
Simple wrapper for an in-memory matrix. More...
#include <MockMatrix.hpp>
Public Member Functions | |
SimpleMatrix (Dim_ num_dimensions, Index_ num_observations, const Data_ *data) | |
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
.
Dim_ | Integer type for the dimensions. |
Index_ | Integer type for the observation indices. |
Data_ | Floating-point type for 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. |