14.1 MAT Operator

This prefix operator is used to represent n × m matrices. MAT has n arguments interpreted as rows of the matrix, each of which is a list of m expressions representing elements in that row. For example, the matrix

(          )
  a   b  c
  d   e f

would be written as mat((a,b,c),(d,e,f)).

Note that the single column matrix

( x  )

becomes mat((x),(y)). The inside parentheses are required to distinguish it from the single row matrix

(      )
  x  y

that would be written as mat((x,y)).