Skip to content

Commit d433869

Browse files
committed
fix vectors
1 parent 59f3b34 commit d433869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/linalg/example_eigh.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ program example_eigh
1414
[4, 5, 4] ], [3,3] ))
1515

1616
! Note: real symmetric matrices have real (orthogonal) eigenvalues and eigenvectors
17-
allocate(lambda(3),v(3,3))
17+
allocate(lambda(3),vectors(3,3))
1818
call eigh(A, lambda, vectors=vectors)
1919

2020
print *, 'Real matrix'
@@ -26,7 +26,7 @@ program example_eigh
2626
! Complex hermitian matrices have real (orthogonal) eigenvalues and complex eigenvectors
2727
cA = A
2828

29-
allocate(cv(3,3))
29+
allocate(cvectors(3,3))
3030
call eigh(cA, lambda, vectors=cvectors)
3131

3232
print *, 'Complex matrix'

0 commit comments

Comments
 (0)