Skip to content

Commit 811fe45

Browse files
committed
Merge pull request #16085 from pkofod/fixscaldoc
Fix #15572 by improving BLAS.scal and BLAS.scal! docstrings
2 parents ade5a90 + 8ff8eee commit 811fe45

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

base/linalg/blas.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ end
9696
"""
9797
scal!(n, a, X, incx)
9898
99-
Overwrite `X` with `a*X`. Returns `X`.
99+
Overwrite `X` with `a*X` for the first `n` elements of array `X` with stride `incx`. Returns `X`.
100100
"""
101101
function scal! end
102102

103103
"""
104104
scal(n, a, X, incx)
105105
106-
Returns `a*X`.
106+
Returns `X` scaled by `a` for the first `n` elements of array `X` with stride `incx`.
107107
"""
108108
function scal end
109109

doc/stdlib/arrays.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1001,3 +1001,4 @@ dense counterparts. The following functions are specific to sparse arrays.
10011001
# perform sparse wizardry...
10021002
end
10031003
end
1004+

doc/stdlib/linalg.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1347,13 +1347,13 @@ Usually a function has 4 methods defined, one each for ``Float64``,
13471347

13481348
.. Docstring generated from Julia source
13491349
1350-
Overwrite ``X`` with ``a*X``\ . Returns ``X``\ .
1350+
Overwrite ``X`` with ``a*X`` for the first ``n`` elements of array ``X`` with stride ``incx``\ . Returns ``X``\ .
13511351

13521352
.. function:: scal(n, a, X, incx)
13531353

13541354
.. Docstring generated from Julia source
13551355
1356-
Returns ``a*X``\ .
1356+
Returns ``X`` scaled by ``a`` for the first ``n`` elements of array ``X`` with stride ``incx``\ .
13571357

13581358
.. function:: ger!(alpha, x, y, A)
13591359

0 commit comments

Comments
 (0)