Does anyone have suggestions on how to make these
messages clearer? I'm taking a pass through errors now
and this particular one seems to confuse a lot of our
users.
The problem you're having is that you're passing an
array of vectors to to_matrix(). The only valid arguments
are either a matrix, a vector, a row vector, a 2D array
of real or a 2D array of int. An array of vectors doesn't
match any of those.
For a start, I think I'll replace "vector[1]" with just
"vector[]". That will at least make the type print out match
the way way types are defined in functions. I think vector[1]
is confusing with the declaration. So "int[2]" would look
like "int[,]".
- Bob