Hi,

at a client we had some code doing some vector and matrix computations
written in Matlab
that I converted to pure perl and now  I am trying to convert it to use PDL.
This will me my first attempt to use PDL so I have some really basic questions.

1) How can I extend a pdl vector?
The perl code looks like this:
push @all, @new;

Using pdl those are both PDL vectors. $all and $new I just don't know
how to append the new list?


2) sorting element, I have this perl code:
my @sorted_ids = sort { $x->{distance}{$a} <=> $x->{distance}{$b} }  @ids;
but now instead of @ids I have $ids, a PDL.

Gabor

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

Reply via email to