Skip to content

Commit 758ab3a

Browse files
committed
Update example_eye1.f90
1 parent f026097 commit 758ab3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

example/linalg/example_eye1.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ program example_eye1
55
real :: a(3, 3)
66
real :: b(2, 3) !! Matrix is non-square.
77
complex :: c(2, 2)
8-
I = eye(2) !! [1,0; 0,1]
9-
A = eye(3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
10-
A = eye(3, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
11-
B = eye(2, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0]
12-
C = eye(2, 2) !! [(1.0,0.0),(0.0,0.0); (0.0,0.0),(1.0,0.0)]
8+
I = eye(2) !! [1,0; 0,1]
9+
A = eye(3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
10+
A = eye(3, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
11+
B = eye(2, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0]
12+
C = eye(2, 2) !! [(1.0,0.0),(0.0,0.0); (0.0,0.0),(1.0,0.0)]
1313
C = (1.0, 1.0)*eye(2, 2) !! [(1.0,1.0),(0.0,0.0); (0.0,0.0),(1.0,1.0)]
1414
end program example_eye1

0 commit comments

Comments
 (0)