Skip to content

Commit 00d6e79

Browse files
authored
Forward copy_input(eig[h]_vals, A) to copy_input(eig[h]_full, A) (#36)
1 parent d4099c5 commit 00d6e79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MatrixAlgebraKit"
22
uuid = "6c742aac-3347-4629-af66-fc926824e5e4"
33
authors = ["Jutho <[email protected]> and contributors"]
4-
version = "0.2.2"
4+
version = "0.2.3"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/implementations/eig.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function copy_input(::typeof(eig_full), A::AbstractMatrix)
44
return copy!(similar(A, float(eltype(A))), A)
55
end
66
function copy_input(::typeof(eig_vals), A::AbstractMatrix)
7-
return copy!(similar(A, float(eltype(A))), A)
7+
return copy_input(eig_full, A)
88
end
99
copy_input(::typeof(eig_trunc), A) = copy_input(eig_full, A)
1010

src/implementations/eigh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function copy_input(::typeof(eigh_full), A::AbstractMatrix)
44
return copy!(similar(A, float(eltype(A))), A)
55
end
66
function copy_input(::typeof(eigh_vals), A::AbstractMatrix)
7-
return copy!(similar(A, float(eltype(A))), A)
7+
return copy_input(eigh_full, A)
88
end
99
copy_input(::typeof(eigh_trunc), A) = copy_input(eigh_full, A)
1010

0 commit comments

Comments
 (0)