Page 1 of 1

ArraySetAsSeries function

Posted: Mon Jun 19, 2017 6:47 pm
by GERVASE
Hi, Mladen

For the ArraySetAsSeries function, it only change the indexing direction or element s also follow the index to change the position?
Like:
double array1[];
// index 0,1,2,3,4
// values A,B,C,D,E

ArraySetAsSeries(array1,true);
//index 4,3,2,1,0
//how about values? E,D,C,B,A or still still same as A,B,C,D,E?

Thanks!

regards
gervase

Re: ArraySetAsSeries function

Posted: Mon Jun 19, 2017 7:14 pm
by mladen
GERVASE wrote: Mon Jun 19, 2017 6:47 pm Hi, Mladen

For the ArraySetAsSeries function, it only change the indexing direction or element s also follow the index to change the position?
Like:
double array1[];
// index 0,1,2,3,4
// values A,B,C,D,E

ArraySetAsSeries(array1,true);
//index 4,3,2,1,0
//how about values? E,D,C,B,A or still still same as A,B,C,D,E?

Thanks!

regards
gervase
gervase

It does not change the position - it just changes the direction in which the array elements are read - so the values are going to bea read in inverted order from the previous

But if you use some array functions (like array resize and similar) you might encounter some problems - mainly regarding speed and in some cases you are going to have an error - best to use arrays in their "native" mode - ie: not as series

Re: ArraySetAsSeries function

Posted: Mon Jun 19, 2017 8:01 pm
by GERVASE
mladen wrote: Mon Jun 19, 2017 7:14 pm gervase

It does not change the position - it just changes the direction in which the array elements are read - so the values are going to bea read in inverted order from the previous

But if you use some array functions (like array resize and similar) you might encounter some problems - mainly regarding speed and in some cases you are going to have an error - best to use arrays in their "native" mode - ie: not as series
Hi, Mladen
Thanks for your great help, now I am clear about this function.

regards
gervase