Skip to content

Commit 349800e

Browse files
committed
fixes part II
1 parent 1536eb4 commit 349800e

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

test/genericlinearalgebra/exponential.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GenericFloats = (BigFloat, Complex{BigFloat})
1616
D, V = @constinferred eigh_full(A)
1717
algs = (MatrixFunctionViaEigh(GLA_QRIteration()),)
1818
@testset "algorithm $alg" for alg in algs
19-
expA = @constinferred exponential!(copy(A), expA; alg)
19+
expA = @constinferred exponential!(copy(A); alg)
2020
expA2 = @constinferred exponential(A; alg)
2121
@test expA2 expA
2222

@@ -37,7 +37,7 @@ using GenericSchur
3737
D, V = @constinferred eigh_full(A)
3838
algs = (MatrixFunctionViaEigh(GLA_QRIteration()),)
3939
@testset "algorithm $alg" for alg in algs
40-
expiτA = @constinferred exponentiali!(τ, copy(A), expiτA; alg)
40+
expiτA = @constinferred exponentiali!(τ, copy(A); alg)
4141
expiτA2 = @constinferred exponentiali(τ, A; alg)
4242
@test expiτA2 expiτA
4343

test/genericschur/exponential.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ GenericFloats = (BigFloat, Complex{BigFloat})
1616
algs = (MatrixFunctionViaEig(GS_QRIteration()),)
1717
expA_LA = @constinferred exponential(A)
1818
@testset "algorithm $alg" for alg in algs
19-
expA = similar(A)
20-
21-
@constinferred exponential!(copy(A), expA)
19+
expA = @constinferred exponential!(copy(A))
2220
expA2 = @constinferred exponential(A; alg = alg)
2321
@test expA expA_LA
2422
@test expA2 expA
@@ -38,9 +36,7 @@ end
3836
D, V = @constinferred eig_full(A)
3937
algs = (MatrixFunctionViaEig(GS_QRIteration()),)
4038
@testset "algorithm $alg" for alg in algs
41-
expiτA = similar(complex(A))
42-
43-
@constinferred exponentiali!(τ, copy(A), expiτA)
39+
expiτA = @constinferred exponentiali!(τ, copy(A))
4440
expiτA2 = @constinferred exponentiali(τ, A; alg)
4541
@test expiτA2 expiτA
4642

0 commit comments

Comments
 (0)