Question: why LinearAlgebra:-RowDimension works on list?

From help it says

But in the following it works on list type. Why? Should have not given an error?

158332

restart;

158332

interface(warnlevel=4);
kernelopts('assertlevel'=2):

3

T:=[ [1,2],[3,4],[6,6]];
whattype(T);
type(T,Matrix);
LinearAlgebra:-RowDimension(T);

[[1, 2], [3, 4], [6, 6]]

list

false

3

T:=Matrix([[1,2],[3,4],[6,6]]);
whattype(T);
type(T,Matrix);
LinearAlgebra:-RowDimension(T);

T := Matrix(3, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 3, (2, 2) = 4, (3, 1) = 6, (3, 2) = 6})

Matrix

true

3

 

Download row_dim_june_13_2023.mw

Please Wait...