- concat(+RowsOrCols, -List)
- Concatenate all the rows (or columns) into a flat list
- list2cols(+List, +NRows, +NCols, -Cols)
- Create a matrix from a flat list of row-wise listed elements
- list2rows(+List, +NRows, +NCols, -Rows)
- Create a matrix from a flat list of row-wise listed elements
- matrix(+NRow, +NCols, -Rows)
- Create a matrix as a list of rows
- matrix(+NRows, +NCols, -Rows, -Cols)
- Create a matrix as both a list of rows and a list of columns
- read_data(+File, ?List, -Length)
- Read numbers from a file into List
- transpose(+Matrix, -Transposed)
- Transpose a matrix (list of rows or list of columns)
This library contains predicates for representing and manipulating matrices as nested lists. Both list of rows and list of columns can be created and mapped into each other.
Note that newer versions of ECLiPSe have good support for representing matrices as multi-dimensional arrays, which is often preferrable to the list representation used here.