Skip to content

Commit 58dbf3e

Browse files
committed
defaultalgorithm with AbstractMatrix
1 parent caff54e commit 58dbf3e

9 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎src/implementations/eig.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ end
7979
# DefaultAlgorithm intercepts
8080
# ---------------------------
8181
for f! in (:eig_full!, :eig_vals!, :eig_trunc!, :eig_trunc_no_error!)
82-
@eval function $f!(A, alg::DefaultAlgorithm)
82+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
8383
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
8484
end
85-
@eval function $f!(A, out, alg::DefaultAlgorithm)
85+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
8686
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
8787
end
8888
end

‎src/implementations/eigh.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ end
8787
# DefaultAlgorithm intercepts
8888
# ---------------------------
8989
for f! in (:eigh_full!, :eigh_vals!, :eigh_trunc!, :eigh_trunc_no_error!)
90-
@eval function $f!(A, alg::DefaultAlgorithm)
90+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
9191
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
9292
end
93-
@eval function $f!(A, out, alg::DefaultAlgorithm)
93+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
9494
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
9595
end
9696
end

‎src/implementations/gen_eig.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ end
4949
# DefaultAlgorithm intercepts
5050
# ---------------------------
5151
for f! in (:gen_eig_full!, :gen_eig_vals!)
52-
@eval function $f!(A, B, alg::DefaultAlgorithm)
52+
@eval function $f!(A::AbstractMatrix, B::AbstractMatrix, alg::DefaultAlgorithm)
5353
return $f!(A, B, select_algorithm($f!, (A, B), nothing; alg.kwargs...))
5454
end
55-
@eval function $f!(A, B, out, alg::DefaultAlgorithm)
55+
@eval function $f!(A::AbstractMatrix, B::AbstractMatrix, out, alg::DefaultAlgorithm)
5656
return $f!(A, B, out, select_algorithm($f!, (A, B), nothing; alg.kwargs...))
5757
end
5858
end

‎src/implementations/lq.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ end
8989
# DefaultAlgorithm intercepts
9090
# ---------------------------
9191
for f! in (:lq_full!, :lq_compact!, :lq_null!)
92-
@eval function $f!(A, alg::DefaultAlgorithm)
92+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
9393
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
9494
end
95-
@eval function $f!(A, out, alg::DefaultAlgorithm)
95+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
9696
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
9797
end
9898
end

‎src/implementations/orthnull.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ initialize_output(::typeof(right_null!), A, alg::RightNullViaSVD) = nothing
6666
# DefaultAlgorithm intercepts
6767
# ---------------------------
6868
for f! in (:left_orth!, :right_orth!, :left_null!, :right_null!)
69-
@eval function $f!(A, alg::DefaultAlgorithm)
69+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
7070
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
7171
end
72-
@eval function $f!(A, out, alg::DefaultAlgorithm)
72+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
7373
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
7474
end
7575
end

‎src/implementations/polar.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ end
4646
# DefaultAlgorithm intercepts
4747
# ---------------------------
4848
for f! in (:left_polar!, :right_polar!)
49-
@eval function $f!(A, alg::DefaultAlgorithm)
49+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
5050
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
5151
end
52-
@eval function $f!(A, out, alg::DefaultAlgorithm)
52+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
5353
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
5454
end
5555
end

‎src/implementations/qr.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ end
8989
# DefaultAlgorithm intercepts
9090
# ---------------------------
9191
for f! in (:qr_full!, :qr_compact!, :qr_null!)
92-
@eval function $f!(A, alg::DefaultAlgorithm)
92+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
9393
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
9494
end
95-
@eval function $f!(A, out, alg::DefaultAlgorithm)
95+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
9696
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
9797
end
9898
end

‎src/implementations/schur.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ end
4141
# DefaultAlgorithm intercepts
4242
# ---------------------------
4343
for f! in (:schur_full!, :schur_vals!)
44-
@eval function $f!(A, alg::DefaultAlgorithm)
44+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
4545
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
4646
end
47-
@eval function $f!(A, out, alg::DefaultAlgorithm)
47+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
4848
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
4949
end
5050
end

‎src/implementations/svd.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ end
108108
# DefaultAlgorithm intercepts
109109
# ---------------------------
110110
for f! in (:svd_full!, :svd_compact!, :svd_vals!, :svd_trunc!, :svd_trunc_no_error!)
111-
@eval function $f!(A, alg::DefaultAlgorithm)
111+
@eval function $f!(A::AbstractMatrix, alg::DefaultAlgorithm)
112112
return $f!(A, select_algorithm($f!, A, nothing; alg.kwargs...))
113113
end
114-
@eval function $f!(A, out, alg::DefaultAlgorithm)
114+
@eval function $f!(A::AbstractMatrix, out, alg::DefaultAlgorithm)
115115
return $f!(A, out, select_algorithm($f!, A, nothing; alg.kwargs...))
116116
end
117117
end

0 commit comments

Comments
 (0)