'Large Matrix Multiplication using PDL - Perl

I need to generate (40000 x 20000) matrix via SQL and perform matrix operation like A'A. Then I need to obtain Eigen value and Eigen Vectors.

Can you suggest me ways to implement this in Perl. (Maybe via PDL)

How can I multiply large matrix stored in file.?

Thank You



Solution 1:[1]

Using the latest PDL, you can assemble various pieces to achieve what you're aiming for:

If David is right and you are actually aiming to do least-squares fitting, PDL::LinearAlgebra has routines for that as well.

Solution 2:[2]

$PDL::BIGPDL=1; $c = sequence(60000, 60000); ## you need 32gb of ram and about 75gb of swap to do this.

$c * $d is different then $c x $d in PDL I believe there are modules for Eigen value or Eigen vector I have not used them yet tho...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ed.
Solution 2