forum.alglib.net

ALGLIB forum
It is currently Sat Apr 27, 2024 10:38 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  [ 22 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: ALGLIB with Texas Instruments Code Composer Studio
PostPosted: Thu Mar 03, 2011 4:04 pm 
Offline

Joined: Wed Oct 20, 2010 10:12 am
Posts: 20
Hi Sergey!

I have one question to ask. Since ALGLIB use its own data type for 2D array (e.g. real_2d_array in C++ and ae_matrix in C), does the ALGLIB have any command to copy from these datatype to normal variable (e.g. int[][], double[][]). So far, I have been using for loops to assign these variables

e.g. alglib::real_2d_array array;
array.setlength(512, 512);
double input[512][512];
for(i=0; i<512; i++)
for (j=0; j<512; j++)
array[i][j] = input[i][j];

and for the C version,

array.ptr.pp_double[i][j] = input[i][j];

Having codes in embedded platform just to assign the variables are very expensive. I wonder there is syntax in ALGLIB to do this. Maybe there is, but I couldn't find any.

Many thanks, Sergey,

Regards,
Rizuan


Top
 Profile  
 
 Post subject: Re: ALGLIB with Texas Instruments Code Composer Studio
PostPosted: Sat Mar 05, 2011 9:35 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
Sorry for the late reply, I have been out of office for several days.

No, there is no easy way to copy values from "normal" C array to ALGLIB and vice versa. C++ wrapper has some convenience functions (setcontent), but low level computational core - has not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 243 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