Adaptor for passing a matrix by reference to template functions that take a callable distance function. More...
#include <dissimilarity.h>
Public Member Functions | |
matrix_distance (const dissimilarity_matrix &m) | |
double | operator() (size_t i, size_t j) |
Public Attributes | |
const dissimilarity_matrix & | mat |
Adaptor for passing a matrix by reference to template functions that take a callable distance function.
Avoids copying distance matrix.
Definition at line 99 of file dissimilarity.h.
matrix_distance | ( | const dissimilarity_matrix & | m ) | [inline] |
Definition at line 101 of file dissimilarity.h.
double operator() | ( | size_t | i, |
size_t | j | ||
) | [inline] |
Definition at line 102 of file dissimilarity.h.
const dissimilarity_matrix& mat |
Definition at line 100 of file dissimilarity.h.