vstack
Vertically stacks a list of matrices into a single matrix.
This function combines all matrices in the list by aligning them vertically. Each matrix is appended below the previous one in the stack, forming a new matrix where the number of rows is the sum of all the rows in the input matrices, and the number of columns matches the column count of the first matrix in the list.
Throws an exception in the following cases:
If the list is empty.
If the matrices in the list have different column dimensions.
Receiver
A list of matrices to be vertically stacked.
Throws
If the matrices have mismatched column dimensions.