|
Deterministic Gaussian Sampling
|
helper class to calculate squared euclidean distance between all linear combinations of two vector sets More...
#include <squared_euclidean_distance_utils.h>
Public Member Functions | |
| SquaredEuclideanDistanceUtils (size_t L, size_t M, size_t N) | |
| virtual double | getDistance (size_t xi, size_t yi) const =0 |
| size_t | getL () const |
| size_t | getM () const |
| size_t | getN () const |
| virtual void | calculateDistance (const gsl_matrix *x, const gsl_matrix *y)=0 |
| calculate all squared euclidean distance between vectors contained as columns in x and y | |
Static Protected Member Functions | |
| static gsl_matrix | convToMatrix (const gsl_vector *v, size_t N) noexcept |
| convert an gsl_vector to a N column gsl_matrix | |
Protected Attributes | |
| size_t | L |
| size_t | M |
| size_t | N |
helper class to calculate squared euclidean distance between all linear combinations of two vector sets
|
pure virtual |
calculate all squared euclidean distance between vectors contained as columns in x and y
| x | LxN Matrix with L vectors of size N |
| y | MxN Matrix with M vectors of size M |
Implemented in SquaredEuclideanDistance_LL_matrix_optimized, SquaredEuclideanDistance_LL_matrix, SquaredEuclideanDistance_LL_vectorized, SquaredEuclideanDistance_LL_vectorized_optimized, SquaredEuclideanDistance_LM_matrix, and SquaredEuclideanDistance_LM_matrix_optimized.
|
inlinestaticprotectednoexcept |
convert an gsl_vector to a N column gsl_matrix
| v | vector to be converted |
| N | number of columns |