mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-08 18:16:41 +08:00
Use @ matrix multiplication syntax to document matrix-matrix multiplication (#1793)
Co-authored-by: Nick Thompson <nicholas_a_thompson@apple.com>
This commit is contained in:
parent
72146fc4cd
commit
0cea88bcc5
@ -199,7 +199,7 @@ void init_linalg(nb::module_& parent_module) {
|
||||
in which case the default stream of the default device is used.
|
||||
|
||||
Returns:
|
||||
tuple(array, array): The ``Q`` and ``R`` matrices.
|
||||
tuple(array, array): ``Q`` and ``R`` matrices such that ``Q @ R = a``.
|
||||
|
||||
Example:
|
||||
>>> A = mx.array([[2., 3.], [1., 2.]])
|
||||
@ -310,8 +310,8 @@ void init_linalg(nb::module_& parent_module) {
|
||||
|
||||
Returns:
|
||||
array: If ``upper = False``, it returns a lower triangular ``L`` matrix such
|
||||
that ``dot(L, L.T) = a``. If ``upper = True``, it returns an upper triangular
|
||||
``U`` matrix such that ``dot(U.T, U) = a``.
|
||||
that ``L @ L.T = a``. If ``upper = True``, it returns an upper triangular
|
||||
``U`` matrix such that ``U.T @ U = a``.
|
||||
)pbdoc");
|
||||
m.def(
|
||||
"cholesky_inv",
|
||||
|
Loading…
Reference in New Issue
Block a user