in reply to Re: perl PDL question
in thread perl PDL question

Replace sumover with any. It is more appropriate for the context.

Replies are listed 'Best First'.
Re^3: perl PDL question
by nickschurch (Acolyte) on Nov 28, 2007 at 01:53 UTC
    The sumover part works, and produces the output array that is the appropriate indexes... brilliant!
    When I replace sumover($a==$b) with any($a==$b) I get an error though....
    perldl> $z = which(any($a == $b)); Can't call method "flat" without a package or object reference at /usr +/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PDL/Primitive. +pm line 1962, <STDIN> line 20.