in reply to intersection of scalar with 1D array and 2D array Matlab=>Perl

I might add that PDL might be the most flexible solution. It's piddles can handle matrix manipulation fast and with some cool tricks too, that you might never expect. It seems to me you are looking to solve the problem of how to find the intersection of a vector and a planar surface. If I were you, I would ask this on the very friendly and helpful PDL maillist. The geniuses there ( not including me :-) ) have learned the tricks of piddle fu, and may just know the perfect piddle you need to be the fastest and most efficient. Which is the name of the game of course. :-)

PS: PDL was designed in Fortran, which I assume, from your name, interests you f77coder


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: intersection of scalar with 1D array and 2D array Matlab=>Perl

Replies are listed 'Best First'.
Re^2: intersection of scalar with 1D array and 2D array Matlab=>Perl
by f77coder (Beadle) on Aug 30, 2014 at 17:41 UTC

    Thanks, this looks very promising. And yes I do prefer direct matrix manipulation versus associative arrays.

Re^2: intersection of scalar with 1D array and 2D array Matlab=>Perl
by f77coder (Beadle) on Aug 31, 2014 at 00:29 UTC

    Where did the OSX binary go? It no longer on Sourceforge.

    http://sourceforge.net/projects/pdl/files/

    PDL is an interesting build on 10.8. Some difficult dependencies to resolve and it only likes gfortran-4.10 which I had to build. Sometimes it finds the compiler F77 for dependencies sometimes it doesn't.

      My recommendation for current MacOS: use Homebrew to install Perl, then install local::lib, then use Homebrew to install gfortran and other optional dependencies to get more of the optional stuff in PDL working, then use `cpanm PDL`. Ideally we'd have an up-to-date PDL packaged for MacOS, but that isn't currently the case.
Re^2: intersection of scalar with 1D array and 2D array Matlab=>Perl
by etj (Priest) on May 20, 2022 at 14:56 UTC