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 22
22
else
23
23
error (" Unrecognized fdtype: must be Val{:forward} or Val{:central}." )
24
24
end
25
- nothing
26
25
end
27
26
28
27
function compute_epsilon_elemtype (epsilon, x)
@@ -31,11 +30,10 @@ function compute_epsilon_elemtype(epsilon, x)
31
30
elseif eltype (x) <: Real
32
31
return eltype (x)
33
32
elseif eltype (x) <: Complex
34
- return eltype (x). parameters[ 1 ]
33
+ return real ( eltype (x))
35
34
else
36
35
error (" Could not compute epsilon type." )
37
36
end
38
- nothing
39
37
end
40
38
41
39
function fdtype_error (funtype:: DataType = Val{:Real })
@@ -46,7 +44,6 @@ function fdtype_error(funtype::DataType=Val{:Real})
46
44
else
47
45
error (" Unrecognized funtype: valid values are Val{:Real} or Val{:Complex}." )
48
46
end
49
- nothing
50
47
end
51
48
52
49
include (" derivatives.jl" )
You can’t perform that action at this time.
0 commit comments