Skip to main content

NDArray::outer

public static function outer(NDArray|array $a, NDArray|array $b): NDArray;

Computes the outer product of two vectors, which results in a higher-dimensional array with dimensions calculated from the input arrays' dimensions.


Notes

tip

GPU SUPPORTED

This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.