Expand description
Matrix and array concatenation operations
This module provides language-compatible matrix concatenation operations. Supports both horizontal concatenation [A, B] and vertical concatenation [A; B].
Functionsยง
- create_
matrix_ from_ values - Create a matrix from a 2D array of Values with proper concatenation semantics This handles the case where matrix elements can be variables, not just literals
- hcat_
matrices - Horizontally concatenate two matrices [A, B] In language: C = [A, B] creates a matrix with A and B side by side
- hcat_
values - Concatenate values horizontally - handles mixed scalars and matrices
- vcat_
matrices - Vertically concatenate two matrices [A; B] In language: C = [A; B] creates a matrix with A on top and B below
- vcat_
values - Concatenate values vertically - handles mixed scalars and matrices