struct

LA::Utils::Rows(T)

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

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

Instance methods

[](range : Range)

Returns SubMatrix that consist of given rows

Example:

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