! (Matrix)

Sets an element of a matrix by column index and row index.

Arguments

New

value
to be set for the matrix element.
rowIndex
and
columnIndex
are integer numbers, zero-based.
The
matrix
(see Matrix) to set the element of.

Return values

None

Complexity

Constant

Example

"sl/algebra" useFile m: ((1.0 3.0 2.0) (1.0 2.0 -3.0) (4.0 -6.0 6.0)) makeMatrix; 7.0 0 1 m ! m.rows [i m.rowRange [print "," print] each LF print] times
Output:
1.000000,3.000000,2.000000, 7.000000,2.000000,-3.000000, 4.000000,-6.000000,6.000000,