manhattan_distance
Module: strata.neighbors • Kind: function
Source: strata/neighbors/distance.mojo
def manhattan_distance[dtype_x: DType, dtype_y: DType = dtype_x]( X: Matrix[dtype_x], row_x: Int, Y: Matrix[dtype_y], row_y: Int,) -> Float64from strata.neighbors import manhattan_distanceCompute the Manhattan ( / taxicab / cityblock) distance between row X[row_x] and row Y[row_y].
Returns: Float64 — Float64: Manhattan distance.