matrix

The matrix module provide helper functions to retrieve rows or columns from a matrix.

Source:

Methods

(inner) getRow(matrix, row) → {Array}

Source:

Retrieves a row from a matrix.

Parameters:
Name Type Description
matrix Array

The matrix from which to retrieve the row.

row string | number

The row to retrieve. May be the string 'first' or 'last' or an index to the row to retrieve.

Returns:

The row retrieved.

Type
Array

(inner) getColumn(matrix, column) → {Array}

Source:

Retrieves a column from a matrix.

Parameters:
Name Type Description
matrix Array

The matrix from which to retrieve the column.

column string | number

The column to retrieve. May be the string 'first' or 'last' or an index to the column to retrieve.

Returns:

The column retrieved.

Type
Array