Skip to content

Commit df5201d

Browse files
janherlingmeta-codesync[bot]
authored andcommitted
Fixed assert in Interpolation
Summary: $title Reviewed By: enpe Differential Revision: D86107502 Privacy Context Container: L1192943 fbshipit-source-id: 999320f868c886e042e7cfd2729a8d43c86ac6f8
1 parent 6972d5a commit df5201d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/ocean/math/Interpolation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ T Interpolation::lagrange2(const TKey& x0, const T& y0, const TKey& x1, const T&
648648
template <typename T, typename TKey>
649649
T Interpolation::lagrange3(const TKey& x0, const T& y0, const TKey& x1, const T& y1, const TKey& x2, const T& y2, const TKey& x)
650650
{
651-
ocean_assert(NumericT<TKey>::isNotEqual(x0, x1) && NumericT<TKey>::isNotEqual(x0, x2) && NumericT<TKey>::isNotEqual(x1, 2));
651+
ocean_assert(NumericT<TKey>::isNotEqual(x0, x1) && NumericT<TKey>::isNotEqual(x0, x2) && NumericT<TKey>::isNotEqual(x1, x2));
652652

653653
return y0 * ((x - x1) * (x - x2)) * (TKey(1) / ((x0 - x1) * (x0 - x2)))
654654
+ y1 * ((x - x0) * (x - x2)) * (TKey(1) / ((x1 - x0) * (x1 - x2)))

0 commit comments

Comments
 (0)