knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
Public Member Functions | List of all members
knncolle::SimpleMatrix< Dim_, Index_, Data_ > Class Template Reference

Simple wrapper for an in-memory matrix. More...

#include <MockMatrix.hpp>

Public Member Functions

 SimpleMatrix (Dim_ num_dimensions, Index_ num_observations, const Data_ *data)
 

Detailed Description

template<typename Dim_, typename Index_, typename Data_>
class knncolle::SimpleMatrix< Dim_, Index_, 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.

Template Parameters
Dim_Integer type for the dimensions.
Index_Integer type for the observation indices.
Data_Floating-point type for the data.

Constructor & Destructor Documentation

◆ SimpleMatrix()

template<typename Dim_ , typename Index_ , typename Data_ >
knncolle::SimpleMatrix< Dim_, Index_, Data_ >::SimpleMatrix ( Dim_  num_dimensions,
Index_  num_observations,
const Data_ *  data 
)
inline
Parameters
num_dimensionsNumber of dimensions.
num_observationsNumber of observations.
[in]dataPointer 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.

The documentation for this class was generated from the following file: