Hi James,

I am with Steven here. Armadillo is a template library which means that you 
have to write instantiations for types and functions that you want to use. 
When you have written this wrapper you could then ccall it in Julia.

I think the easiest think is to make a clean C interface around the code 
that uses armadillo and then ccall it from Julia. Alternatively, rewrite 
all in Julia although one has to say that parallel programming will not 
work so easy as with OpenMP (IMHO). At least for these type of problems 
which OpenMP is best suited for.

Tobi

Am Donnerstag, 3. April 2014 15:44:30 UTC+2 schrieb James Fairbanks:
>
> I am trying to work with someone else's code. He wrote Matlab code then 
> parallelized using OpenMP and Armadillo. It might be easier to port the 
> original matlab code to julia and use julia's parallel primitives. The 
> ability to call code that was written in Matlab and then ported to C++ 
> probably belongs pretty low on the development priority list. If anyone 
> else has any experience, I am still curious.
>
> On Wednesday, April 2, 2014 9:51:59 PM UTC-4, Steven G. Johnson wrote:
>>
>> What does Armadillo provide that is not already built in to Julia's 
>> standard library?
>>
>> Calling C++ code from Julia is currently something of a pain, especially 
>> STL-heavy code.
>>
>

Reply via email to