Module concatenation

Module concatenation 

Source
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