#8 add sumover in PDL::Complex

closed
nobody
None
5
2009-04-29
2006-10-22
Anonymous
No

There is no sumover function in PDL::Complex. Here is a
sample:

use PDL::Ufunc;
sub Csumover {
my $c = shift;
return dims($c) > 1 ?
PDL::Ufunc::sumover($c->xchg(0,1)) : $c;
}

To export it add Csumover to the loop that exports pure
Perl
functions : for (qw(Ctan Catan ... Csumover)) {
pp_add_exported '',
$_; }

Discussion

  • Chris Marshall
    Chris Marshall
    2009-04-29

    • status: open --> closed
     
  • Chris Marshall
    Chris Marshall
    2009-04-29

    This artifact has been marked as a duplicate of artifact 2784040 with reason:
    consolidating request for complex type support