Skip to content

Commit 6125746

Browse files
committed
Get rid of unneeded bypass
1 parent 8405113 commit 6125746

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎src/factorizations/matrixalgebrakit.jl‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
# Algorithm selection
22
# -------------------
3-
4-
"""
5-
_tensor_algorithm(f!, ::Type{<:AbstractTensorMap}; kwargs...)
6-
7-
Algorithm a `TensorMap` factorization defaults to. Blocks are decomposed one at a time, so
8-
the default is whatever the block type would use. For algorithms that have a batched version,
9-
like `QRIteration` or `Jacobi`, this can be overridden to point to the batching version.
10-
"""
11-
function _tensor_algorithm(f!, ::Type{T}; kwargs...) where {T <: AbstractTensorMap}
12-
return MAK.default_algorithm(f!, blocktype(T); kwargs...)
13-
end
143
for f in
154
[
165
:svd_compact, :svd_full, :svd_vals,
@@ -23,7 +12,7 @@ for f in
2312
]
2413
f! = Symbol(f, :!)
2514
@eval function MAK.default_algorithm(::typeof($f!), ::Type{T}; kwargs...) where {T <: AbstractTensorMap}
26-
return _tensor_algorithm($f!, T; kwargs...)
15+
return MAK.default_algorithm($f!, blocktype(T); kwargs...)
2716
end
2817
@eval function MAK.copy_input(::typeof($f), t::AbstractTensorMap)
2918
return @timeit_debug GLOBAL_TIMER "alloc: copy_input" copy_oftype(

0 commit comments

Comments
 (0)