struct

LA::Utils::Columns(T)

Inherits Indexable / Enumerable / Iterable / Struct / Value / Object

Indexable(SubMatrix(T)) that allows iterating over columns

Instance methods

[](range : Range)

Returns SubMatrix that consist of given columns

Example:

m = GMat32.new([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
m.columns[1...3].should eq m[0..2, 1..2]
Source