Am 11.08.2021 um 17:29 schrieb Allin Cottrell:
Please formulate this as a feature for msplitby(). Right now that
function offers very general control over splitting but as you say
it's not convenient for certain simple cases, and it probably should
offer choice of dimension. A revised but backward-compatible signature
might be:
feature request is what you meant, I guess. Will do.
matrices msplitby (matrix M, <vector-or-scalar> by, bool alt)
where @alt would switch to column-wise splitting and scalar @by would
give the chunk size, provided the relevant dimension is divisible by @by.
Yes,
that's what I had in mind, too.
BTW splitting a matrix by columns will be much faster then by rows;
Right, that's one reason why I found the current status a bit surprising.
thanks
sven