login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #169 Print empty two dimensional array (i.e. Matrix, TwonDimensionalArray ...) revision 6 of 6

1 2 3 4 5 6
Editor: test1
Time: 2016/09/26 13:32:26 GMT+0
Note:

added:

From test1 Mon Sep 26 13:32:26 +0000 2016
From: test1
Date: Mon, 26 Sep 2016 13:32:26 +0000
Subject: 
Message-ID: <20160926133226+0000@axiom-wiki.newsynthesis.org>

Status: open => closed 


Submitted by : (unknown) at: 2007-11-17T22:01:39-08:00 (17 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

Empty one dimensional arrays are printed but no empty two dimensional array in console.

Text Mode
empty Matrix not printed

fricas
(1) -> )set output algebra on
 
fricas
)set output tex off

fricas
empty()$Vector(INT)
(1) []
Type: Vector(Integer)
fricas
empty()$Matrix(INT)
(2) []
Type: Matrix(Integer)

LaTeX mode
empty Matrix causes error

fricas
)set output algebra off
 
fricas
)set output tex on

fricas
empty()$Vector(INT)

\label{eq1}\left[ \right](1)
Type: Vector(Integer)
fricas
empty()$Matrix(INT)

\label{eq2}\left[ \right](2)
Type: Matrix(Integer)

property change --kratt6, Thu, 23 Jun 2005 06:32:24 -0500 reply
Category: general => Axiom User Interface

I investigated a little further:
fricas
)se ou tex off
 
fricas
)se ou al on
(matrix [[1,2]])::OUTFORM pretend SEX
(5) (MATRIX () (ROW 1 2))
Type: SExpression?
fricas
(empty()$Matrix INT)::OUTFORM pretend SEX
(6) (BRACKET (AGGLST))
Type: SExpression?

fricas
matrix []
(7) matrix
Type: Symbol

could be equivalent to empty()$Matrix INT. On the other hand, the interpreter has no way to determine the type of this matrix, so the error is probably OK.

fricas
matrix [[]]
(8) matrix NONE
Type: Symbol

does indeed not make any sense at all.

Status: open => closed