File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -101,21 +101,6 @@ function num_types_in_tuple(sig::UnionAll)
101
101
length (Base. unwrap_unionall (sig). parameters)
102
102
end
103
103
104
- function numargs (f)
105
- typ = Tuple{Any, Val{:analytic }, Vararg}
106
- typ2 = Tuple{Any, Type{Val{:analytic }}, Vararg} # This one is required for overloaded types
107
- typ3 = Tuple{Any, Val{:jac }, Vararg}
108
- typ4 = Tuple{Any, Type{Val{:jac }}, Vararg} # This one is required for overloaded types
109
- typ5 = Tuple{Any, Val{:tgrad }, Vararg}
110
- typ6 = Tuple{Any, Type{Val{:tgrad }}, Vararg} # This one is required for overloaded types
111
- numparam = maximum ([(m. sig<: typ || m. sig<: typ2 || m. sig<: typ3 || m. sig<: typ4 || m. sig<: typ5 || m. sig<: typ6 ) ? 0 : num_types_in_tuple (m. sig) for m in methods (f)])
112
- return (numparam- 1 ) # -1 in v0.5 since it adds f as the first parameter
113
- end
114
-
115
- function isinplace (f,inplace_param_number)
116
- numargs (f)>= inplace_param_number
117
- end
118
-
119
104
# ## Default Linsolve
120
105
121
106
# Try to be as smart as possible
You can’t perform that action at this time.
0 commit comments