Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Identity-matrix/J/identity-matrix.j
Normal file
12
Task/Identity-matrix/J/identity-matrix.j
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
= i. 4 NB. create an Identity matrix of size 4
|
||||
1 0 0 0
|
||||
0 1 0 0
|
||||
0 0 1 0
|
||||
0 0 0 1
|
||||
makeI=: =@i. NB. define as a verb with a user-defined name
|
||||
makeI 5 NB. create an Identity matrix of size 5
|
||||
1 0 0 0 0
|
||||
0 1 0 0 0
|
||||
0 0 1 0 0
|
||||
0 0 0 1 0
|
||||
0 0 0 0 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue