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

Thank you, but this method can be used for PDL array?
  • Comment on Re^2: can we call c++ in perl to process PDL arrays?

Replies are listed 'Best First'.
Re^3: can we call c++ in perl to process PDL arrays?
by etj (Priest) on Apr 25, 2022 at 10:50 UTC
    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.

Re^3: can we call c++ in perl to process PDL arrays?
by karlgoethebier (Abbot) on Nov 13, 2019 at 18:08 UTC
    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!

        De rien. I didn’t do very much. You had some success with your efforts? 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