Open stevengj opened 3 years ago
Not sure which file you would want a test in?
@test isequal.(x_of_nans(fill(0.0))::Array{Float64,0}, NaN)
should suffice.
Interesting. I wasn't even aware of zero-dimensional arrays with elements in them. Is this meant to be a non-Number
"scalar" for linear algebra use, or?
Edit: I see now that this is related to the nlsovle.jl issue
Bump.
Bump.
The
x_of_nans
function gives aMethodError
for 0-dimensional arrays due to JuliaLang/julia#41643. A workaround is to usemap(Tf, x)
instead ofTf.(x)
.Before this PR:
After this PR:
Without this PR,
nlsolve
fails for 0-dimensional arrays.