Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,2 @@
|
|||
(define (transpose m)
|
||||
(apply map list m))
|
||||
15
Task/Matrix-transposition/Scheme/matrix-transposition-2.scm
Normal file
15
Task/Matrix-transposition/Scheme/matrix-transposition-2.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(import srfi/231)
|
||||
|
||||
(define (transpose m)
|
||||
(array-permute m '#(1 0)))
|
||||
|
||||
(define m
|
||||
(list->array (make-interval '#(3 8))
|
||||
(iota 24)))
|
||||
|
||||
(define m*
|
||||
(transpose m))
|
||||
|
||||
(pretty-print (array->list* m))
|
||||
(newline)
|
||||
(pretty-print (array->list* m*))
|
||||
Loading…
Add table
Add a link
Reference in a new issue