[Scilab-Dev] usage of push_back/front and pop_back/front in scilab API

Stéphane Mottelet stephane.mottelet at utc.fr
Mon Apr 9 15:45:37 CEST 2018


Hello,

I have a newbie question about the usage of lists in the new scilab API. 
When e.g. you have to construct a list of vectors constructed from a vector

double* YData

which is updated and to be stored after each update in a list names 
pDblYOutList. By writing

pDblYOutList.push_back(pdYData);

at each update, since the address of YData does not change, at the end 
every term of the list will contain the same vector (ode bug :-(). I 
have some ideas to fix that but how does one proceed *properly* in the 
coding style of Scilab API ?

S.



-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet		




More information about the dev mailing list