: operator
Publié : jeu. janv. 24, 2019 12:54 am
Hello
mat1 :=
[[ a, b ],
[ c, d ]]
mat1[:,1] => [b, d]
mat1[[:,1]] // This case is not recognized.
the output would be [a, c]
mat2 := [[ a, b, c ],[ d ]]
◉ size( mat2 ) [↵] returns 2
◉ dim( mat2 ) [↵] returns 2
for the DIM command, when the argument is not a matrix, please display a warning message
dim( mat2 ) [↵] returns 2
"/!\ the array is not a matrix"
mat1 :=
[[ a, b ],
[ c, d ]]
mat1[:,1] => [b, d]
mat1[[:,1]] // This case is not recognized.
the output would be [a, c]
mat2 := [[ a, b, c ],[ d ]]
◉ size( mat2 ) [↵] returns 2
◉ dim( mat2 ) [↵] returns 2
for the DIM command, when the argument is not a matrix, please display a warning message
dim( mat2 ) [↵] returns 2
"/!\ the array is not a matrix"