row(i)
public
Returns row vector number i of the
matrix as a Vector (starting at 0 like an
array). When a block is given, the elements of that vector are iterated.
Show source
def row(i, &block)
if block_given?
@rows.fetch(i){return self}.each(&block)
self
else
Vector.elements(@rows.fetch(i){return nil})
end
end