Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
19
Task/Identity-matrix/Amazing-Hopper/identity-matrix.hopper
Normal file
19
Task/Identity-matrix/Amazing-Hopper/identity-matrix.hopper
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <jambo.h>
|
||||
|
||||
Main
|
||||
Dim( 10,10 ) as eyes 'UMatrix'
|
||||
|
||||
Printnl ' "UNIT MATRIX:\n", UMatrix '
|
||||
|
||||
/* Classical method */
|
||||
|
||||
Dim (10,10) as zeros (ZM)
|
||||
i=1
|
||||
Iterator ( ++i, #(i<=10), #( ZM[i,i]=1 ) )
|
||||
Printnl ' "UNIT MATRIX:\n", ZM '
|
||||
|
||||
/* unit matrix non square*/
|
||||
Dim ( 5,8 ) as eyes 'rare unit matrix'
|
||||
|
||||
Printnl ' "RARE UNIT MATRIX:\n", rare unit matrix '
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue