Funciones sobre Matrices

» Zip


zip funciona como un zipper.

escribe html [[1 2] [3 4]]

1 2
3 4

escribe html [[10 11] [12 13]]

10 11
12 13

escribe html zip [[[1 2] [3 4]] [[10 11] [12 13]]]

1 2 10 11
3 4 12 13

escribe html [1 2 3]

1 2 3

escribe html [[100 101] [102 103] [104 105]]

100 101
102 103
104 105

escribe html zip lista [1 2 3] [[100 101] [102 103] [104 105]]

1 100 101
2 102 103
3 104 105

» Unitaria


muestra unitaria 1

[[1]]

muestra unitaria 2

[[1 0] [0 1]]

escribe html unitaria 2

1 0
0 1

muestra unitaria 3

[[1 0 0] [0 1 0] [0 0 1]]

escribe html unitaria 3

1 0 0
0 1 0
0 0 1

» Desliza


escribe html desliza [1 2 3]

1 0 0
0 2 0
0 0 3

muestra clona [3 1]

[1 1 1]

escribe html desliza clona [3 1]

1 0 0
0 1 0
0 0 1

escribe html [[1 2 3] [4 5 6] [7 8 9]]

1 2 3
4 5 6
7 8 9

escribe html desliza [[1 2 3] [4 5 6] [7 8 9]]

1 2 3 0 0
0 4 5 6 0
0 0 7 8 9