You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/stdlib/linalg.rst
+2-13
Original file line number
Diff line number
Diff line change
@@ -823,25 +823,14 @@ Linear algebra functions in Julia are largely implemented by calling functions f
823
823
824
824
Construct a diagonal matrix and place ``v`` on the ``k``\ th diagonal.
825
825
826
-
.. function:: scale(A, b)
827
-
scale(b, A)
828
-
829
-
.. Docstring generated from Julia source
830
-
831
-
Scale an array ``A`` by a scalar ``b``\ , returning a new array.
832
-
833
-
If ``A`` is a matrix and ``b`` is a vector, then ``scale(A,b)`` scales each column ``i`` of ``A`` by ``b[i]`` (similar to ``A*diagm(b)``\ ), while ``scale(b,A)`` scales each row ``i`` of ``A`` by ``b[i]`` (similar to ``diagm(b)*A``\ ), returning a new array.
834
-
835
-
Note: for large ``A``\ , ``scale`` can be much faster than ``A .* b`` or ``b .* A``\ , due to the use of BLAS.
836
-
837
826
.. function:: scale!(A, b)
838
827
scale!(b, A)
839
828
840
829
.. Docstring generated from Julia source
841
830
842
-
Scale an array ``A`` by a scalar ``b``\ , similar to :func:`scale` but overwriting ``A`` in-place.
831
+
Scale an array ``A`` by a scalar ``b`` overwriting ``A`` in-place.
843
832
844
-
If ``A`` is a matrix and ``b`` is a vector, then ``scale!(A,b)`` scales each column ``i`` of ``A`` by ``b[i]`` (similar to ``A*diagm(b)``\ ), while ``scale!(b,A)`` scales each row ``i`` of ``A`` by ``b[i]`` (similar to ``diagm(b)*A``\ ), again operating in-place on ``A``\ .
833
+
If ``A`` is a matrix and ``b`` is a vector, then ``scale!(A,b)`` scales each column ``i`` of ``A`` by ``b[i]`` (similar to ``A*Diagonal(b)``\ ), while ``scale!(b,A)`` scales each row ``i`` of ``A`` by ``b[i]`` (similar to ``Diagonal(b)*A``\ ), again operating in-place on ``A``\ .
0 commit comments