diff --git a/src/implementations/polar.jl b/src/implementations/polar.jl index fabb261c2..0e0cb553b 100644 --- a/src/implementations/polar.jl +++ b/src/implementations/polar.jl @@ -1,7 +1,7 @@ # Inputs # ------ -copy_input(::typeof(left_polar), A::AbstractMatrix) = copy_input(svd_full, A) -copy_input(::typeof(right_polar), A::AbstractMatrix) = copy_input(svd_full, A) +copy_input(::typeof(left_polar), A) = copy_input(svd_full, A) +copy_input(::typeof(right_polar), A) = copy_input(svd_full, A) function check_input(::typeof(left_polar!), A::AbstractMatrix, WP) m, n = size(A) diff --git a/src/implementations/svd.jl b/src/implementations/svd.jl index fa69b3d31..9de3777d2 100644 --- a/src/implementations/svd.jl +++ b/src/implementations/svd.jl @@ -1,10 +1,10 @@ # Inputs # ------ -function copy_input(::typeof(svd_full), A::AbstractMatrix) +function copy_input(::typeof(svd_full), A) return copy!(similar(A, float(eltype(A))), A) end -copy_input(::typeof(svd_compact), A::AbstractMatrix) = copy_input(svd_full, A) -copy_input(::typeof(svd_vals), A::AbstractMatrix) = copy_input(svd_full, A) +copy_input(::typeof(svd_compact), A) = copy_input(svd_full, A) +copy_input(::typeof(svd_vals), A) = copy_input(svd_full, A) copy_input(::typeof(svd_trunc), A) = copy_input(svd_compact, A) # TODO: many of these checks are happening again in the LAPACK routines