You need to say "use PDL::NiceSlice;" at the top of your script. The
nice slicing syntax is implemented via a source filter (that
preprocesses your code before Perl ever gets to it). The source
filter module must be included explicitly in each file of your program.
Cheers,
Craig
On May 23, 2007, at 2:11 PM, Saurabh Singhvi wrote:
Hi all,
how do I specify a row in perl code when using PDL??
if $M is a 3x3 matrix and I write
$M->(1)
it should give 2nd column and if I write
$M->(:,1)
then it should give me the 2nd row, atleast that's how it works out
in PDL
however, it doesn't seem to be working.
though perl is not giving any syntax errors, it doesn't work. I get
an error saying
Not a CODE reference at xyz line.
Please tell me how I can use this operation in perl code.
thanks
Saurabh
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl