Skip to content

Commit 4b17bbc

Browse files
committed
Don't use in-place normalize
1 parent d6825c7 commit 4b17bbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testsuite/projections.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using TestExtras
22
using MatrixAlgebraKit: ishermitian
3-
using LinearAlgebra: Diagonal, normalize!
3+
using LinearAlgebra: Diagonal, normalize
44

55
function test_projections(T::Type, sz; kwargs...)
66
summary_str = testargs_summary(T, sz)
@@ -44,7 +44,7 @@ function test_project_antihermitian(
4444
end
4545

4646
# test approximate error calculation
47-
A = normalize!(A)
47+
A = normalize(A)
4848
Ah = project_hermitian(A)
4949
Aa = project_antihermitian(A)
5050

@@ -93,7 +93,7 @@ function test_project_hermitian(
9393
end
9494

9595
# test approximate error calculation
96-
A = normalize!(A)
96+
A = normalize(A)
9797
Ah = project_hermitian(A)
9898
Aa = project_antihermitian(A)
9999

0 commit comments

Comments
 (0)