Combine (say) p matrices, each of dimension n x r, into an n x p x r array.

combine_into_array(mat, ...)

Arguments

mat

First matrix to combine into an array. Alternatively, a list of matrices to combine into an array.

...

Additional matrices to combine into an array. These additional arguments will be ignored if mat is a list.