Alglib CMatrixDouble.Set

 

The last Alglib update, sept 30 made my, indicator crash:

CMatrixDouble cX;
cX.Resize(L,K);
cX[j].Set(k, y[k + j]);   //j<L, k+j < K

Improperly formatted code edited by moderator.

It doesn't affect cX.

Is there a problem?

 

Please, always use the CODE button (Alt-S) when inserting code.

Code button in editor

 
Pär Lansåker:

The last Alglib update, sept 30 made my, indicator crash:

Improperly formatted code edited by moderator.

It doesn't affect cX.

Is there a problem?

Please report the MetaTrader build ... How to report technical issues

The current officially released MT5 build is 4000. Anything higher is a "beta" build.

 
Pär Lansåker:

The last Alglib update, sept 30 made my, indicator crash:

Improperly formatted code edited by moderator.

It doesn't affect cX.

Is there a problem?

2023.10.10 15:55:30.387 Terminal MetaTrader 5 IC Markets (SC) x64 build 4000 started for Raw Trading Ltd

2023.10.10 15:55:30.388 Terminal Windows 10 build 19045, 8 x Intel Core i7-9700F  @ 3.00GHz, AVX2, 24 / 31 Gb memory, 16 / 465 Gb disk, UAC, GMT+1

2023.10.10 15:55:30.388 Terminal C:\Users\Päe\AppData\Roaming\MetaQuotes\Terminal\1640F6577B1C4EC659BF41EA9F6C38ED


 
vector yy;
yy = vector::Zeros(1);
yy[0]=3.14;
CMatrixDouble cXX;
cXX.Resize(1,1);
cXX[0].Set(0,yy[0]);

//Gives cXX[0][0] = 0.0
 
//OK, I found a workaround

cXX.Set(0,0,yy[0]);

//Still, probably a lot of indicators out there, that will crash when compilated 
 

Unfortunately, the changes made to the ALGLIB library in version 3.19 for MQL5 were quite significant, and therefore backward compatibility is not provided. Users who use the ALGLIB library version 3.5 in their projects are advised to conduct a thorough check of their programs and make the necessary adjustments.

https://www.mql5.com/ru/articles/13289

MetaQuotes style, they push the changes and then publish some information about it later, on the Russian site.

You missed it, really ?

Библиотека численного анализа ALGLIB в MQL5
Библиотека численного анализа ALGLIB в MQL5
  • www.mql5.com
В этой статье мы кратко рассмотрим библиотеку численного анализа ALGLIB 3.19, ее приложения и новые алгоритмы, позволяющие повысить эффективность анализа финансовых данных.