[mlpack] Ensmallen and pure C

Marcus Edel marcus.edel at fu-berlin.de
Thu Jan 23 18:45:46 EST 2020


Hello,

At some point you need a C++ compiler, so unless you want to package ensmallen
and provide a build for various systems (linux, macOS, windows, etc.), export
the interface I don't think you can get around the C++ compiler dependecy.

But README.md does mention that "QuEST is easy to run both on laptops and
supercomputers (in both C and C++)," so I'm wondering if you have to rewrite
anything if you can compile the code with a C++ compiler you are good to go.

Thanks,
Marcus

> On 21. Jan 2020, at 23:46, Rugantio Costa <rugantio at gmail.com> wrote:
> 
> Hi Marcus,
> Thanks for replying. Ensmallen would be enough! 
> 
> 
> Il giorno mar 21 gen 2020 alle ore 21:16 Marcus Edel <marcus.edel at fu-berlin.de <mailto:marcus.edel at fu-berlin.de>> ha scritto:
> Hello Costa,
> 
> glad you like the project since you mentioned you like to use some of mlpack's
> optimizers, do you mean you like to include ensmallen or mlpack? mlpack used to
> implement optimizers, but at some point, we outsourced the optimization part and
> created an optimization framework called ensmallen
> (https://github.com/mlpack/ensmallen <https://github.com/mlpack/ensmallen>).
> 
> Thanks,
> Marcus
> 
>> On 21. Jan 2020, at 05:22, Rugantio Costa <rugantio at gmail.com <mailto:rugantio at gmail.com>> wrote:
>> 
>> Hello list!
>> First of all thank you for this great piece of software! I'm a researcher in physics, I wrote a project in C for quantum system simulations (based on https://github.com/quest-kit/QuEST <https://github.com/quest-kit/QuEST>) and I'm using nlopt as my main optimization lib but I would absolutely love to include some of the mlpack optimizers! Is there any way to have mlpack functions callable from my C code? I mean, is there any way I can hack my way into this or should I give up and just rewrite everything in C++?
>> Thanks for any eventual suggestions!
>> 
>>               Costa
>> _______________________________________________
>> mlpack mailing list
>> mlpack at lists.mlpack.org <mailto:mlpack at lists.mlpack.org>
>> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack <http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20200124/2531e432/attachment.htm>


More information about the mlpack mailing list