in reply to Memory Efficient Sparse Matrix Handling

Just today I sped up a C++ program significantly by using the ublas sparse matrices.

If memory is an issue, and even sparse matrix implementations in Perl don't help, I think it's not too bold of me to recommend another library and programming language. (Maybe you can even out-source the matrix operations with Inline::CPP, but I've never tried that; the module looks a bit out-of-date...).

  • Comment on Re: Memory Efficient Sparse Matrix Handling

Replies are listed 'Best First'.
Re^2: Memory Efficient Sparse Matrix Handling
by assemble (Friar) on Jan 26, 2009 at 16:06 UTC

    I personally use Inline::C when I need faster Perl. It runs fine and I haven't had any problems with it. Recently, I converted my Perl Mandelbrot program from doing the math in Perl to doing the math in C and cut the runtime from 3-5 minutes per run to about 20-30 seconds.

    The point is, I can vouch that Inline::C works, and it works well.