forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 10:45 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: USing ALGLIB in C program
PostPosted: Mon May 21, 2018 9:25 pm 
Offline

Joined: Mon May 21, 2018 9:18 pm
Posts: 1
Hi,
Is it possible to call ALGLIB from a C program?

THanks,
bernard


Top
 Profile  
 
 Post subject: Re: USing ALGLIB in C program
PostPosted: Tue May 22, 2018 8:37 am 
Offline

Joined: Thu May 17, 2018 8:31 am
Posts: 3
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.


Top
 Profile  
 
 Post subject: Re: USing ALGLIB in C program
PostPosted: Tue May 22, 2018 9:41 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group