File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2222 else
2323 error (" Unrecognized fdtype: must be Val{:forward} or Val{:central}." )
2424 end
25- nothing
2625end
2726
2827function compute_epsilon_elemtype (epsilon, x)
@@ -31,11 +30,10 @@ function compute_epsilon_elemtype(epsilon, x)
3130 elseif eltype (x) <: Real
3231 return eltype (x)
3332 elseif eltype (x) <: Complex
34- return eltype (x). parameters[ 1 ]
33+ return real ( eltype (x))
3534 else
3635 error (" Could not compute epsilon type." )
3736 end
38- nothing
3937end
4038
4139function fdtype_error (funtype:: DataType = Val{:Real })
@@ -46,7 +44,6 @@ function fdtype_error(funtype::DataType=Val{:Real})
4644 else
4745 error (" Unrecognized funtype: valid values are Val{:Real} or Val{:Complex}." )
4846 end
49- nothing
5047end
5148
5249include (" derivatives.jl" )
You can’t perform that action at this time.
0 commit comments