Matrix functions work internally on arrays and return an array (or a number, in the case of M_DETERM).
M_DETERM