Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Matrix-transposition/Forth/matrix-transposition.fth
Normal file
12
Task/Matrix-transposition/Forth/matrix-transposition.fth
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
S" fsl-util.fs" REQUIRED
|
||||
S" fsl/dynmem.seq" REQUIRED
|
||||
: F+! ( addr -- ) ( F: r -- ) DUP F@ F+ F! ;
|
||||
: FSQR ( F: r1 -- r2 ) FDUP F* ;
|
||||
S" fsl/gaussj.seq" REQUIRED
|
||||
|
||||
5 3 float matrix a{{
|
||||
1e 2e 3e 4e 5e 6e 7e 8e 9e 10e 11e 12e 13e 14e 15e 5 3 a{{ }}fput
|
||||
float dmatrix b{{
|
||||
|
||||
a{{ 5 3 & b{{ transpose
|
||||
3 5 b{{ }}fprint
|
||||
Loading…
Add table
Add a link
Reference in a new issue