NDArray::lstsq
public static function lstsq(NDArray|array $a, NDArray|array $b): NDArray;
Performs the least-squares solution to a linear matrix equation Ax = b
,
where $a
is a given array and $b
is the target array.
Notes
tip
GPU SUPPORTED
This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.