Satimage Previous | Next
Creating a matrix from the list of its columns or rows
Home Documentation Smile Computing Smile's maths Creating a matrix from the list of its columns or rows  
  • To make a new matrix given the list of its rows (as a list of arrays of real) coerce the list into one array of real: this will provide the data for the matrix.
    set a to {r1, r2, r3} as array of real
    set m to {class:matrix, ncols:200, nrows:3, array of real:a}
  • To make a new matrix given the list of its columns (as a list of arrays of real), coerce the list into a matrix.
    set m to {c1, c2, c3} as matrix
Version française
Copyright ©2008 Paris, Satimage