kmeans
A C++ library for k-means
Loading...
Searching...
No Matches
Public Member Functions | List of all members
kmeans::SimpleMatrix< Data_, Index_, Dim_ > Class Template Reference

A simple matrix of observations. More...

#include <SimpleMatrix.hpp>

Public Member Functions

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

Detailed Description

template<typename Data_, typename Index_, typename Dim_ = int>
class kmeans::SimpleMatrix< Data_, Index_, Dim_ >

A simple matrix of observations.

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
Data_Floating-point type for the data.
Index_Integer type for the observation indices.
Dim_Integer type for the dimensions.

Constructor & Destructor Documentation

◆ SimpleMatrix()

template<typename Data_ , typename Index_ , typename Dim_ = int>
kmeans::SimpleMatrix< Data_, Index_, Dim_ >::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: