danbaron
29-06-2010, 07:35
[font=courier new][size=8pt]I ran the following Perl program.
On my computer, it took 288.103 seconds, to fill a 1000 x 1000 matrix with random doubles,
and then to invert it.
Perl 5.10.1
PDL 2.4.6
http://www.perl.org/
You have to install "PDL" (Perl Data Language), separately. It is not included in the Perl distribution.
http://pdl.perl.org/
use PDL;
my $t = times();
$a = zeroes(double, 1000, 1000);
$a = random($a);
$a = inv($a);
$t = times() - $t;
print $t;
my $dump = <STDIN>;
# Output = 288.103 (seconds)
[font=courier new][size=8pt]PDL, in Perl, corresponds to, NumPy, in Python.
Look at the link below, to see the results of a similar program, written in Python.
According to this test, PDL, is amazingly slow, compared to, NumPy.
(I feel bad for PDL, but, what can I do?)
:oops: :x :grrrr:
Dan
http://community.thinbasic.com/index.php?topic=3485.msg25776;topicseen#msg25776
On my computer, it took 288.103 seconds, to fill a 1000 x 1000 matrix with random doubles,
and then to invert it.
Perl 5.10.1
PDL 2.4.6
http://www.perl.org/
You have to install "PDL" (Perl Data Language), separately. It is not included in the Perl distribution.
http://pdl.perl.org/
use PDL;
my $t = times();
$a = zeroes(double, 1000, 1000);
$a = random($a);
$a = inv($a);
$t = times() - $t;
print $t;
my $dump = <STDIN>;
# Output = 288.103 (seconds)
[font=courier new][size=8pt]PDL, in Perl, corresponds to, NumPy, in Python.
Look at the link below, to see the results of a similar program, written in Python.
According to this test, PDL, is amazingly slow, compared to, NumPy.
(I feel bad for PDL, but, what can I do?)
:oops: :x :grrrr:
Dan
http://community.thinbasic.com/index.php?topic=3485.msg25776;topicseen#msg25776