copies the contents of the vector x to the vector y.
- To use COPY, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following arguments must be given:
|y||input/output symbol||vector; the symbol value is modified in place|
- COPY[x,y] is equivalent to y=x.
Examplesopen allclose all
Basic Examples (1)
Load the BLAS package:
Assign a vector to y:
A real vector :
A complex vector:
An arbitrary-precision vector:
A symbolic vector:
Properties & Relations (1)
COPY[x,w] is equivalent to w=x:
Possible Issues (2)
If the second argument is not a symbol, an error message is issued:
If the output symbol has been initialized to a vector, the input and output must have the same length:
To avoid this error, clear the existing output symbol.