mlx.core.linalg.solve

目录

mlx.core.linalg.solve#

solve(a: array, b: array, *, stream: None | Stream | Device = None) array#

Compute the solution to a system of linear equations AX = B.

参数:
  • a (array) -- Input array.

  • b (array) -- Input array.

  • stream (Stream, optional) -- Stream or device. Defaults to None in which case the default stream of the default device is used.

返回:

The unique solution to the system AX = B.

返回类型:

array