Am 19.11.2015 um 17:41 schrieb Allin Cottrell:
There's a newish function in git, not yet documented. I'd
appreciate any
comments as to whether it's worth keeping.
The mkarray() function creates an array of a specified type in extenso,
that is, by specification of a number of elements (as many as you like).
Examples:
strings S = mkarray("1 A", "2 B", "3 C", "4 D")
matrices M = mkarray(I(3), zeros(n,1), qform(x,A))
The functionality is great, I have been hoping for something like this.
OTOH, if array() didn't already exist, to me it would feel more natural
to swap the meanings of array() and mkarray() like this:
matrices M = array(I(3), zeros(n,1), qform(x,A))
matrices M2 = mkarray(4)
No idea how to get out of the backwards-compatibility problem though.
cheers,
sven