 linalg(deprecated)/copyinto - Maple Help

Home : Support : Online Help : linalg(deprecated)/copyinto

linalg(deprecated)

 copyinto
 move entries from one matrix into another Calling Sequence copyinto(A, B, m, n) Parameters

 A, B - matrices m, n - non-negative integers Description

 • Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Copy], instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The function copyinto(A, B, m, n) copies the entries of the matrix A into the matrix B beginning at index position $\left[m,n\right]$, so ${B}_{m,n}$ is assigned ${A}_{1,1}$. This function and linalg[extend] are used to create new matrices from old ones.
 • The command with(linalg,copyinto) allows the use of the abbreviated form of this command. Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Copy], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(2,2,\left[1,2,3,4\right]\right)$
 ${A}{≔}\left[\begin{array}{cc}{1}& {2}\\ {3}& {4}\end{array}\right]$ (1)
 > $B≔\mathrm{extend}\left(A,2,2,0\right)$
 ${B}{≔}\left[\begin{array}{cccc}{1}& {2}& {0}& {0}\\ {3}& {4}& {0}& {0}\\ {0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\end{array}\right]$ (2)
 > $\mathrm{copyinto}\left(A,B,3,3\right)$
 $\left[\begin{array}{cccc}{1}& {2}& {0}& {0}\\ {3}& {4}& {0}& {0}\\ {0}& {0}& {1}& {2}\\ {0}& {0}& {3}& {4}\end{array}\right]$ (3)