 linalg(deprecated)/augment - Help

linalg(deprecated)

 augment
 join two or more matrices together horizontally
 concat
 a synonym for augment

 Calling Sequence augment(A, B, ...) concat(A, B, ...)

Parameters

 A, B, ... - matrices or vectors

Description

 • Important: The linalg package has been deprecated. Use the superseding command, LinearAlgebra[Matrix], instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The function augment joins two or more matrices or vectors together horizontally. A vector is interpreted as a column vector. The matrices and vectors must have the same number of rows.
 • The command with(linalg,augment) allows the use of the abbreviated form of this command.

Examples

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

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $a≔\mathrm{matrix}\left(\left[\left[1,2\right],\left[2,3\right]\right]\right)$
 ${a}{≔}\left[\begin{array}{cc}{1}& {2}\\ {2}& {3}\end{array}\right]$ (1)
 > $b≔\mathrm{matrix}\left(2,3,\left[3,4,5,6,7,8\right]\right)$
 ${b}{≔}\left[\begin{array}{ccc}{3}& {4}& {5}\\ {6}& {7}& {8}\end{array}\right]$ (2)
 > $\mathrm{augment}\left(a,b\right)$
 $\left[\begin{array}{ccccc}{1}& {2}& {3}& {4}& {5}\\ {2}& {3}& {6}& {7}& {8}\end{array}\right]$ (3)
 > $v≔\mathrm{vector}\left(2,\left[1,2\right]\right)$
 ${v}{≔}\left[\begin{array}{cc}{1}& {2}\end{array}\right]$ (4)
 > $\mathrm{concat}\left(v,b,v\right)$
 $\left[\begin{array}{ccccc}{1}& {3}& {4}& {5}& {1}\\ {2}& {6}& {7}& {8}& {2}\end{array}\right]$ (5)