Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by karlgoethebier (Abbot)
on Nov 09, 2019 at 09:36 UTC ( [id://11108512]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-03-29 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found