Basic Examples (3)
Augment a matrix on the left with a list, one entry per row:
Display in matrix form to see the leading column:
Augment with a constant scalar. The same value is prepended to every row:
Scope (3)
Use the operator form for pipeline composition:
MatrixAugmentLeft works with non-numeric matrices:
The operator form composes naturally with itself, allowing successive left augmentations within functional pipelines:
Applications (4)
Row Labeling and Ordering (1)
Use MatrixAugmentLeft to append row identifiers to a data matrix by left augmentation, enabling recovery of original row positions after reordering:
The operator form provides a direct alternative to transposition-based constructions for row labeling.
Time-Stamped Trajectories (1)
Use MatrixAugmentLeft to construct a time-stamped trajectory matrix, where each row is a state observation and the leading column carries the sample time:
Cofactor Sign Tables (1)
Construct a cofactor sign table for Laplace expansion by prepending the row-wise cofactor signs:
Boundary Extension via Augmentation (1)
Use MatrixAugmentLeft to extend a matrix by replicating its boundary values via left augmentation:
This prepends the first column to the matrix, illustrating how augmentation can be used to construct simple boundary extensions.
Properties and Relations (5)
MatrixAugmentLeft is equivalent to a block construction using ArrayFlatten with a threaded column vector prepended:
MatrixAugmentLeft is equivalent to a construction via outer transposition using Transpose and Prepend:
MatrixAugmentLeft is equivalent to a row-wise construction using MapThread with Prepend:
MatrixAugmentLeft can also be expressed using Join along the second level after promoting the vector to a one-column matrix:
ResourceFunction["PrependColumn"] can also be used for this task:
Unlike PrependColumn, MatrixAugmentLeft also provides an operator form suited for compositional workflows.
Possible Issues (1)
A length mismatch between the matrix and the vector generates a dimension error:
Neat Examples (3)
Build a labeled correlation matrix where the leading column contains the variable names. Each row i shows variable xi followed by its correlations with all variables:
Construct the bordered Hessian for the quadratic objective
under the linear constraint gTX=c. The sign of the bordered determinant determines the type of constrained extremum:
A negative bordered determinant indicates that the constrained critical point is a maximum of f on the constraint manifold, consistent with second-order sufficient conditions for constrained optimization.
Use MatrixAugmentLeft together with rotations to construct boundary extensions of a matrix. Each side is obtained by directional augmentation, enabling consistent neighborhood structure without explicit padding functions:
This constructs a boundary-extended matrix by applying directional augmentations. Each boundary is generated by rotating the matrix and reusing left-augmentation, yielding a full extension that preserves local structure.