The next i got something like
use PDL;
my $u = pdl [1,2,3,4];
my $dim = 4;
for(my $i=0; $i<$dim; $i++)
{
print $u->flat->index($i), "\n";
}
Also, how can I convert [1,2,3,4]to piddle $u, can I return a list (or list of lists for a matrix) from $u?
arrac source
share