in reply to can we call c++ in perl to process PDL arrays?

Probably this is good for you? Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^2: can we call c++ in perl to process PDL arrays?
by toothedsword (Sexton) on Nov 13, 2019 at 16:39 UTC
    Thank you, but this method can be used for PDL array?
      You'd need to use Inline with => 'PDL' to make available PDL's C functions. Then, to know what PDL C functions to actually call, consult PDL::API.

      The imminent PDL::OpenCV (not on CPAN yet, but see https://github.com/PDLPorters/pdl/issues/362) shows how to call from PDL C code into C++ via a wrapper, if that's any use.

      EDIT: "how to" is too strong - "one way to" would be better.

      Hi toothedsword, I don‘t really know it and i’m not sure. I guessed. And i fear that you must try/figure it out yourself. Yet another experiment 😎 Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

        Thanks!