LinearAlgebra
Copy
construct a copy of a Matrix or Vector
Calling Sequence
Parameters
Description
Examples
Copy(MV)
MV
-
Matrix or Vector to copy
The Copy(MV) command returns an identical copy of its argument, MV. Because this copy is not simply another reference to MV, changes to MV or to the copy do not affect the other.
with⁡LinearAlgebra:
v≔Vectorrow⁡1,2,3,datatype=float8,attributes=blue
v≔1.2.3.
w≔Copy⁡v
w≔1.2.3.
attributes⁡w
blue
w1≔10:
v1
1.
M≔Matrix⁡1,2,3,4,5,6,scan=triangularupper,shape=triangularupper
M≔123045006
N≔Matrix⁡M
N≔123045006
MatrixOptions⁡M
shape=triangularupper,datatype=anything,storage=triangularupper,order=Fortran_order
MatrixOptions⁡N
shape=,datatype=anything,storage=rectangular,order=Fortran_order
P≔Copy⁡M
P≔123045006
MatrixOptions⁡P
See Also
Matrix
Vector
Download Help Document