Skip to content

Iterators

3uclidian edited this page Dec 23, 2019 · 1 revision
local m = matrix.new(...)

Iterators

m:rows()

Iterates through the rows of matrix m, returns the current row and the entries in that row in a table.

m:cols()

Iterates through the columns of matrix m, returns the current column and the entries in that column in a table.

m:entries()

Iterates through each entry of matrix m, returns the current row, column, and entry.

Clone this wiki locally