Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
a02cc8a
1
Parent(s):
1c4d902
Fix negative operator - used wrong fast function
Browse files- julia/operators.jl +1 -1
julia/operators.jl
CHANGED
@@ -24,7 +24,7 @@ logm(x::Float32)::Float32 = log_fast(abs_fast(x) + 1f-8)
|
|
24 |
logm2(x::Float32)::Float32 = log2_fast(abs_fast(x) + 1f-8)
|
25 |
logm10(x::Float32)::Float32 = log10_fast(abs_fast(x) + 1f-8)
|
26 |
sqrtm(x::Float32)::Float32 = sqrt_fast(abs_fast(x))
|
27 |
-
neg(x::Float32)::Float32 =
|
28 |
|
29 |
function greater(x::Float32, y::Float32)::Float32
|
30 |
if x > y
|
|
|
24 |
logm2(x::Float32)::Float32 = log2_fast(abs_fast(x) + 1f-8)
|
25 |
logm10(x::Float32)::Float32 = log10_fast(abs_fast(x) + 1f-8)
|
26 |
sqrtm(x::Float32)::Float32 = sqrt_fast(abs_fast(x))
|
27 |
+
neg(x::Float32)::Float32 = neg_float_fast(x)
|
28 |
|
29 |
function greater(x::Float32, y::Float32)::Float32
|
30 |
if x > y
|