distanceL2 method

ColumnVectorDistance<SparseVector> distanceL2(
  1. SparseVector other
)
inherited

Computes the L2 (Euclidean) distance between this vector column and another vector.

Implementation

ColumnVectorDistance<T> distanceL2(T other) {
  return ColumnVectorDistance<T>(
    VectorDistanceExpression<T>(
      this,
      _encodeValueForQuery(other),
      VectorDistanceFunction.l2,
    ),
  );
}