libcrn
3.9.5
A document image processing library
|
Lazy computation of a distance matrix. More...
#include <CRNLazyDistanceMatrix.h>
Public Member Functions | |
LazyDistanceMatrix (const std::vector< DATA > &d, DISTANCE &&dist) | |
LazyDistanceMatrix (const LazyDistanceMatrix &)=default | |
LazyDistanceMatrix (LazyDistanceMatrix &&)=default | |
LazyDistanceMatrix & | operator= (const LazyDistanceMatrix &)=delete |
LazyDistanceMatrix & | operator= (LazyDistanceMatrix &&)=delete |
size_t | GetRows () const noexcept |
Returns the number of rows. More... | |
size_t | GetCols () const noexcept |
Returns the number of columns. More... | |
double | At (size_t i, size_t j) |
Distance between two elements. More... | |
const SquareMatrixDouble & | GetDistanceMatrix () |
Access to the whole distance matrix. More... | |
Lazy computation of a distance matrix.
Computes the elements of the distance matrix only when needed.
Definition at line 38 of file CRNLazyDistanceMatrix.h.
|
inline |
[in] | d | the population |
[in] | dist | the distance function |
Definition at line 45 of file CRNLazyDistanceMatrix.h.
|
default |
|
default |
|
inline |
Distance between two elements.
[in] | i | first element index in population |
[in] | j | second element index in population |
Definition at line 72 of file CRNLazyDistanceMatrix.h.
|
inlinenoexcept |
Returns the number of columns.
Definition at line 64 of file CRNLazyDistanceMatrix.h.
|
inline |
Access to the whole distance matrix.
Definition at line 85 of file CRNLazyDistanceMatrix.h.
|
inlinenoexcept |
Returns the number of rows.
Definition at line 59 of file CRNLazyDistanceMatrix.h.
|
delete |
|
delete |