def bilinear(
a: _BufferType,
b: _BufferType,
metric_tensor: _BufferType,
/,
dtype: _FloatTypeName | _MiniFloatType | None = None,
*,
capabilities: Capability | int | None = ...,
stream: int | None = ...,
) -> float Similar to numpy.dot(a, metric_tensor @ b).
Parameters
a_BufferType | First vector. | |
|---|---|---|
b_BufferType | Second vector. | |
metric_tensor_BufferType | Matrix M defining the bilinear form. | |
dtype_FloatTypeName | _MiniFloatType | None | Input dtype to read every buffer as, overriding the one they report. | |
capabilitiesCapability | int | None | Capabilities to run within: every CPU one by default, or for packed operands the mask that packed them. | |
streamint | None | A GPU stream pointer, left None on the CPU. |