Hi everyone,

This time using PDL 2.4.5


perldl> $a = zeroes(3,3);

perldl> p $a

[
 [0 0 0]
 [0 0 0]
 [0 0 0]
]

perldl> $a(1,1) = 1;

perldl> p $a

[
 [0 0 0]
 [0 0 0]
 [0 0 0]
]

perldl> $a(1,1)++;

perldl> p $a

[
 [0 0 0]
 [0 1 0]
 [0 0 0]
]



While I am surprised that the $a(1,1)++ syntax works but then I am also
surprised that $a(1,1) = 1 does not do anything nor does it complain.

Gabor

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to