def angular(
a: _BufferType,
b: _BufferType,
/,
dtype: Literal['uint1', 'int4', 'uint4', 'int64', 'int32', 'int16', 'int8', 'uint64', 'uint32', 'uint16', 'uint8'] | _FloatTypeName | _MiniFloatType | None = None,
*,
out: _BufferType | None = None,
out_dtype: _FloatTypeName | _MiniFloatType | None = None,
capabilities: Capability | int | None = ...,
stream: int | None = ...,
) -> float | Tensor | None
Similar to scipy.spatial.distance.cosine. Two vectors give a scalar. Matrices pair row i of
a with row i of b, a single row pairing with every row of the other, into a new Tensor of
one result per pair, or into out, returning None.
Parameters