22 March 2024
22 March 2024
vector<double/complex> operator[](const int i) const; vector<double/complex> operator[](const ulong i) const;They have been replaced by a single method with a constant return value:
const vector<double/complex> operator[](const ulong i) const;This modification will assist in capturing incorrect use of the result in place as in the new Alglib version, the code mat[row][col]=x operates differently from the old version. Previously, this indicated writing to a matrix. Now, the value is written to a temporary object vector<double/complex>, which is immediately destroyed after recording.