Question: invalid latex for empty matrix

Maple uses \begin{array}...\end{array} for the latex of a Matrix, which is all good. But for an empty matrix, it does not generate the column specification c or and so the latex when compiled gives an error. Here is an example


#which gives


Compare to 




Because the c is missing in the first example, this generates an error



>lualatex foo.tex
This is LuaHBTeX, Version 1.13.2 (TeX Live 2021)
 restricted system commands enabled.
LaTeX2e <2021-11-15>
 L3 programming layer <2021-11-12>
Document Class: book 2021/10/04 v1.4n Standard LaTeX document class
For additional information on amsmath, use the `?' option.
(./foo.aux) (/usr/local/texlive/2021/texmf-dist/tex/latex/base/ts1cmr.fd)
! Missing # inserted in alignment preamble.
<to be read again>
l.6 \left[\begin{array}{}


Adding the `c` fixes the Latex.

This came up with my code generated an empty  matrix from some computation.

May be this could be corrected for future version of Maple?

Thank you.

Maple 2021.2 on windows 10.  

Please Wait...