Hello, 2 questions about arrays:
(C1) test:make_array('fixnum,3,2)$
(C2) test[2,1]:1$
(C3) test;
(D3) {Array: #2A((0 0) (0 0) (0 1))}
(C4) arrays;
(D4) []
(C5) arrayinfo(test);
(D5) [declared, 2, [2, 1]]
the array named test ist declared. so why is it not listed in the list of arrays?
(C6) foo(array,row,col):=array[row,col]$
(C7) foo(test,2,1);
(D7) 1
foo works when not compiled, but not when compiled. can someone explain?
(C8) compile(foo);
Compiling gazonk0.lsp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=2, Space=3, Speed=2
Finished compiling gazonk0.lsp.
(D8) [foo]
(C9) foo(test,2,1);
Maxima encountered a Lisp error:
not a valid array reference to #2A((0 0) (0 0) (0 1)) ???
Thank you for an answer.
Volker van Nek