Skip to content

Commit

Permalink
Re-add non-diff attribute to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed May 30, 2024
1 parent 4e9f2b0 commit 1b71948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ReverseMode/NonDifferentiable.C
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public:
SimpleFunctions1() noexcept : x(0), y(0) {}
SimpleFunctions1(double p_x, double p_y) noexcept : x(p_x), y(p_y) {}
double x;
double y;
non_differentiable double y;
double mem_fn_1(double i, double j) { return (x + y) * i + i * j * j; }
double mem_fn_2(double i, double j) { return i * j; }
non_differentiable double mem_fn_2(double i, double j) { return i * j; }
double mem_fn_3(double i, double j) { return mem_fn_1(i, j) + i * j; }
double mem_fn_4(double i, double j) { return mem_fn_2(i, j) + i * j; }
double mem_fn_5(double i, double j) { return mem_fn_2(i, j) * mem_fn_1(i, j) * i; }
Expand Down

0 comments on commit 1b71948

Please sign in to comment.