in reply to mutliplying each element of a list by the same number
PDL makes this operation trivial.
#!/usr/bin/perl use strict; use warnings; use PDL; my $max = $ARGV[0]; my $ratio_list = pdl (0..$max); my $minutes_list = 10 * $ratio_list;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: mutliplying each element of a list by the same number
by etj (Deacon) on Jun 06, 2022 at 02:42 UTC | |
Re^2: mutliplying each element of a list by the same number
by wade (Pilgrim) on May 15, 2008 at 17:52 UTC | |
by moklevat (Priest) on May 15, 2008 at 19:07 UTC | |
by pc88mxer (Vicar) on May 15, 2008 at 20:15 UTC |
In Section
Seekers of Perl Wisdom