You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But more work is needed in Base.FastMath.make_fastmath(::Expr) to support .+ outside of math expressions (e.g. for mapreduce), as well as broadcasted assignments .+=.
The text was updated successfully, but these errors were encountered:
Currently using Julia 1.10.1.
The
@fastmath
macro ignores.+
-like operators:This is because
.+
is a single Symbol in the AST:But
@fastmath
only replaces non-broadcasted symbols.The problem is even more apparent when using
.+
alone, e.g. in amapreduce
, as it gives a syntax error:By hacking
Base.FastMath.make_fastmath
we can partially bypass this limitation:Then:
But more work is needed in
Base.FastMath.make_fastmath(::Expr)
to support.+
outside of math expressions (e.g. formapreduce
), as well as broadcasted assignments.+=
.The text was updated successfully, but these errors were encountered: