 Replicate - Maple Help

ArrayTools

 Replicate
 Array replication Calling Sequence Replicate(A, replicationsInDim1, replicationsInDim2, ...) Parameters

 A - Matrix, Vector, or Array replicationsInDimN - integer Description

 • The Replicate command replicates an Array a given number of times in each specified dimension to produce a larger Array containing copies of the data from A.
 • Replication is not limited to the number of dimensions of the original Array.  If a higher dimension is specified, the Array will be copied into that dimension.
 • This function is part of the ArrayTools package, so it can be used in the short form Replicate(..) only after executing the command with(ArrayTools).  However, it can always be accessed through the long form of the command by using ArrayTools[Replicate](..). Examples

 > $\mathrm{with}\left(\mathrm{ArrayTools}\right):$
 > $\mathrm{Replicate}\left(\mathrm{Array}\left(\left[a,b,c\right]\right),3\right)$
 $\left[\begin{array}{ccccccccc}{a}& {b}& {c}& {a}& {b}& {c}& {a}& {b}& {c}\end{array}\right]$ (1)
 > $\mathrm{Replicate}\left(\mathrm{Array}\left(\left[a,b,c\right]\right),1,3\right)$
 $\left[\begin{array}{ccc}{a}& {a}& {a}\\ {b}& {b}& {b}\\ {c}& {c}& {c}\end{array}\right]$ (2)
 > $\mathrm{Replicate}\left(\mathrm{Array}\left(\left[\left[a,b\right],\left[c,d\right]\right]\right),2,2\right)$
 $\left[\begin{array}{cccc}{a}& {b}& {a}& {b}\\ {c}& {d}& {c}& {d}\\ {a}& {b}& {a}& {b}\\ {c}& {d}& {c}& {d}\end{array}\right]$ (3)