Skip to content

Commit d4af0af

Browse files
committed
Add algorithm selection in terms of inplace function
1 parent 3b16fc0 commit d4af0af

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/algorithms.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ macro functiondef(f)
197197
return $f!(A, initialize_output($f!, A, alg), alg)
198198
end
199199

200+
# define fallbacks for algorithm selection
201+
@inline function select_algorithm(::typeof($f), A, alg::Alg; kwargs...) where {Alg}
202+
return select_algorithm($f!, A, alg; kwargs...)
203+
end
204+
@inline function default_algorithm(::typeof($f), A; kwargs...)
205+
return default_algorithm($f!, A; kwargs...)
206+
end
207+
200208
# copy documentation to both functions
201209
Core.@__doc__ $f, $f!
202210
end

0 commit comments

Comments
 (0)