}
return result.value;
}));
+ } else if (name == "not") {
+ return FoldElementalIntrinsic<T, T>(
+ context, std::move(funcRef), &Scalar<T>::NOT);
} else if (name == "precision") {
if (const auto *cx{UnwrapExpr<Expr<SomeReal>>(args[0])}) {
return Expr<T>{std::visit(
// TODO:
// cshift, dot_product, eoshift,
// findloc, iall, iany, iparity, ibits, image_status, ishftc,
- // matmul, maxloc, minloc, not, pack, product, reduce,
+ // matmul, maxloc, minloc, pack, product, reduce,
// sign, spread, sum, transfer, transpose, unpack
return Expr<T>{std::move(funcRef)};
}
logical, parameter :: test_max_a1 = all(max(x1a, x2a).EQ.[11, 12, 13, 14])
logical, parameter :: test_min_a1 = all(min(x1a, x2a).EQ.[1, 2, 3, 4])
+ logical, parameter :: test_not_zero = not(0).EQ.-1
+ logical, parameter :: test_not_neg_one = not(-1).EQ.0
+ logical, parameter :: test_not_array = all(not([5, 6, 7]).EQ.[-6, -7, -8])
+
end module