forum.alglib.net
http://forum.alglib.net/

USing ALGLIB in C program
http://forum.alglib.net/viewtopic.php?f=2&t=3854
Page 1 of 1

Author:  bernpuc [ Mon May 21, 2018 9:25 pm ]
Post subject:  USing ALGLIB in C program

Hi,
Is it possible to call ALGLIB from a C program?

THanks,
bernard

Author:  GermanGolem [ Tue May 22, 2018 8:37 am ]
Post subject:  Re: USing ALGLIB in C program

if you requirement is to be purely C, then maybe not. However, you can easily built a wrapper in c++, that takes c-style buffers as input matrices/vectors and converts them to c++ objects required by alglib. This way you would have a c compatible library for alglib.

Author:  Sergey.Bochkanov [ Tue May 22, 2018 9:41 am ]
Post subject:  Re: USing ALGLIB in C program

Hi, Bernard!

Yes, it is possible, although it is not marketed officially.

ALGLIB for C++ is a C++ wrapper around computational core written in plain C. It is possible to obtain source code of the C core and to directly access its functionality. The C interface it is not intended to be used directly, so it is a bit less human-friendly than C++ one. But it is consistent and has direct 1-to-1 correspondence with well documented C++ interface.

If you are interested in more details, you can write me to sergey.bochkanov at alglib.net, and tell me more about your task: specific ALGLIB functions you want to use and details of the software and hardware ALGLIB is expected to be running at.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/