next up previous contents index
suivant: Make a list with monter: Lists and vectors précédent: List of differences of   Table des matières   Index

Make a matrix with a list : list2mat

list2mat takes as argument a list l and an integer p.
list2mat returns a matrix having p column by cutting the list l in rows of length p. The matrix is filled with 0 if the size of l is not a multiple of p.
Input :
Output :
Input :
Output :
Xcas displays matrix with [ and ] and lists with [ and ] as delimiters (the vertical bar of the brackets are thicker for matrices).

giac documentation written by Renée De Graeve and Bernard Parisse