Project

General

Profile

Design #920

Empty matrix: warning, error, or empty matrix?

Added by Anna Maria Bigatti over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Incomplete function
Target version:
Start date:
08 Sep 2016
Due date:
% Done:

10%

Estimated time:

Description

Currenty matrix([[]]) returns matrix(QQ, [[]]) (1 row, 0 cols) and matrix([]) gives error (I've just made a "better" error for this case).
This asymmetry is not good.
I think in CoCoA-5 (as opposed to CoCoALib) we could have matrix([[]]) returning an empty matrix (0 rows and cols) instead of an error.

Also available in: Atom PDF