Skip to content

Commit

Permalink
Refs EA31337#738. WIP. OpenCL integration for Matrix class needs rewo…
Browse files Browse the repository at this point in the history
…rk as previous implementation we based on was buggy.
  • Loading branch information
nseam committed Apr 19, 2024
1 parent d6a3f57 commit 2f2fce7
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Array.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static int GetLowestArrDoubleValue(double& arr[][], int key) {

template <typename X>
void ArrayPush(ARRAY_REF(X, array), X value) {
ArrayResize(ArraySize(array) + 1);
ArrayResize(array, ArraySize(array) + 1);
array[ArraySize(array) - 1] = value;
}
template <typename X>
Expand Down
2 changes: 1 addition & 1 deletion Indicator.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct IndicatorParams {
}
void SetMaxParams(int _value) {
max_params = _value;
ArrayResize(input_params, max_params);
ArrayResize(input_params, (int)max_params);
}
void SetName(string _name) { name = _name; };
void SetShift(int _shift) { shift = _shift; }
Expand Down
Loading

0 comments on commit 2f2fce7

Please sign in to comment.