hstack
Horizontally stacks a list of matrices into a single matrix.
This function combines multiple matrices in the list by aligning them side by side, effectively creating a single matrix that includes all input matrices as column blocks.
The resulting matrix will have the same number of rows as the matrices in the list, and the total number of columns will be the sum of the columns of all matrices in the list.
Preconditions:
The list must not be empty.
All matrices in the list must have the same number of rows.
Throws
If the matrices in the list have different row dimensions.