We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f026097 commit 758ab3aCopy full SHA for 758ab3a
example/linalg/example_eye1.f90
@@ -5,10 +5,10 @@ program example_eye1
5
real :: a(3, 3)
6
real :: b(2, 3) !! Matrix is non-square.
7
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)]
+ I = eye(2) !! [1,0; 0,1]
+ A = eye(3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
+ A = eye(3, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0; 0.0,0.0,1.0]
+ B = eye(2, 3) !! [1.0,0.0,0.0; 0.0,1.0,0.0]
+ C = eye(2, 2) !! [(1.0,0.0),(0.0,0.0); (0.0,0.0),(1.0,0.0)]
13
C = (1.0, 1.0)*eye(2, 2) !! [(1.0,1.0),(0.0,0.0); (0.0,0.0),(1.0,1.0)]
14
end program example_eye1
0 commit comments