Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 7d5f71c

Browse files
committed
update doc for copy!. fixes JuliaLang#4689
1 parent 59a4083 commit 7d5f71c

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

doc/stdlib/base.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4719,6 +4719,15 @@ C Interface
47194719
Copy ``N`` elements from a source array to a destination, starting at offset ``so``
47204720
in the source and ``do`` in the destination.
47214721

4722+
.. function:: copy!(dest, src)
4723+
4724+
Copy all elements from collection ``src`` to array ``dest``.
4725+
4726+
.. function:: copy!(dest, do, src, so, N)
4727+
4728+
Copy ``N`` elements from collection ``src`` starting at offset ``so``, to
4729+
array ``dest`` starting at offset ``do``.
4730+
47224731
.. function:: pointer(a[, index])
47234732

47244733
Get the native address of an array element. Be careful to ensure that a julia

doc/stdlib/linalg.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,6 @@ Usually a function has 4 methods defined, one each for ``Float64``,
427427

428428
.. currentmodule:: Base
429429

430-
.. function:: copy!(n, X, incx, Y, incy)
431-
432-
Copy ``n`` elements of array ``X`` with stride ``incx`` to array
433-
``Y`` with stride ``incy``. Returns ``Y``.
434-
435430
.. function:: dot(n, X, incx, Y, incy)
436431

437432
Dot product of two vectors consisting of ``n`` elements of array
@@ -443,6 +438,11 @@ The following functions are defined within the ``Base.LinAlg.BLAS`` module.
443438

444439
.. currentmodule:: Base.LinAlg.BLAS
445440

441+
.. function:: blascopy!(n, X, incx, Y, incy)
442+
443+
Copy ``n`` elements of array ``X`` with stride ``incx`` to array
444+
``Y`` with stride ``incy``. Returns ``Y``.
445+
446446
.. function:: nrm2(n, X, incx)
447447

448448
2-norm of a vector consisting of ``n`` elements of array ``X`` with

0 commit comments

Comments
 (0)