next up previous contents index
suivant: Modify an element or monter: Arithmetic and matrix précédent: Hadamard power (infixed version):   Table des matières   Index


Extracting element(s) of a matrix : [] at

Recall that a matrix is a list of lists with same size.
Input :
A:=[[3,4,5],[1,2,6]]
Output :
[[3,4,5],[1,2,6]]
The prefixed function at or the index notation [...] is used to access to an element or a row or a column of a matrix:

You may also assign an element of a matrix using the index notation, if you assign with := a new copy of the matrix is created and the element is modified, if you assign with =<, the matrix is modified in place.


next up previous contents index
suivant: Modify an element or monter: Arithmetic and matrix précédent: Hadamard power (infixed version):   Table des matières   Index
giac documentation written by Renée De Graeve and Bernard Parisse