Skip to content

Commit

Permalink
isnan should only depend on value to match control flow of primal
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkichler committed Jul 15, 2024
1 parent cac20b2 commit cb28353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cutangent/arithmetic/basic.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ fn bool isnan(tangent<T> a)
{
using std::isnan;

return isnan(a.v) or isnan(a.d);
return isnan(a.v);
}

template<typename T>
Expand Down

0 comments on commit cb28353

Please sign in to comment.