ClikaRT::ops::cdist
function
cdist()
Pairwise L_p distance between every ROW pair of two matrices.
(B?, M, K) x (B?, N, K) -> (B?, M, N); the optional leading batch dims broadcast.
Parameters
a: rows[.., M, K].b: rows[.., N, K](same trailingK).p: the norm degree, an int or floatScalar, kind-preserved; default 2.
Returns: the distance matrix [.., M, N].
Throws
ClikaRT::Error: (INVALID_ARGUMENT) when the trailingKs disagree.
Declared in ClikaRT/compute/ops.h, line 2647