PDL treats coordinates in the intuitive way you are seeking.
#!/usr/bin/perl use strict; use warnings; use PDL; my $origin = pdl (2,3); my $offset = pdl (4,5); my $interesting_cell = $origin + $offset; print $interesting_cell; # [6 8]
In reply to Re: Perly way of handling coordinates?
by moklevat
in thread Perly way of handling coordinates?
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |