Skip to content

Commit 1536eb4

Browse files
committed
correct wrong in-place assumptions
1 parent cf98bd4 commit 1536eb4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/genericlinearalgebra/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
D, V = @constinferred eigh_full(A)
1717
algs = (MatrixFunctionViaEigh(GLA_QRIteration()),)
1818
@testset "algorithm $alg" for alg in algs
19-
expA = similar(A)
20-
21-
@constinferred exponential!(copy(A), expA; alg)
19+
expA = @constinferred exponential!(copy(A), expA; alg)
2220
expA2 = @constinferred exponential(A; alg)
2321
@test expA2 expA
2422

@@ -39,9 +37,7 @@ using GenericSchur
3937
D, V = @constinferred eigh_full(A)
4038
algs = (MatrixFunctionViaEigh(GLA_QRIteration()),)
4139
@testset "algorithm $alg" for alg in algs
42-
expiτA = similar(complex(A))
43-
44-
@constinferred exponentiali!(τ, copy(A), expiτA; alg)
40+
expiτA = @constinferred exponentiali!(τ, copy(A), expiτA; alg)
4541
expiτA2 = @constinferred exponentiali(τ, A; alg)
4642
@test expiτA2 expiτA
4743

0 commit comments

Comments
 (0)