Saves the matrix mA in an array
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
Related: MatrixFromBuffer