Add isnan (#423)

This commit is contained in:
Ayush Shridhar
2024-01-12 14:16:48 -05:00
committed by GitHub
parent 29081204d1
commit 1416e7b664
7 changed files with 72 additions and 0 deletions

View File

@@ -1050,6 +1050,10 @@ array array_equal(
}
}
array isnan(const array& a, StreamOrDevice s /* = {} */) {
return not_equal(a, a, s);
}
array where(
const array& condition,
const array& x,

View File

@@ -374,6 +374,8 @@ array_equal(const array& a, const array& b, StreamOrDevice s = {}) {
return array_equal(a, b, false, s);
}
array isnan(const array& a, StreamOrDevice s = {});
/** Select from x or y depending on condition. */
array where(
const array& condition,