Matrix.columnRange

Returns a column by index as a range.

Arguments

index
is an integer number, zero-based.

Return values

column
as a Range.

Complexity

O(rows)

Example

"sl/algebra" useFile m: ((1.0 3.0 2.0) (1.0 2.0 3.0) (4.0 6.0 6.0)) makeMatrix; 1 m.columnRange [it:; it.get 1.0 + it.set] eachIter m.rows [i m.rowRange [print "," print] each LF print] times
Output:
1.000000,4.000000,2.000000, 1.000000,3.000000,3.000000, 4.000000,7.000000,6.000000,