[ Reference Manual | Alphabetic Index ]

# library(matrix_util)

Predicates to build matrices from lists [more]

## Predicates

> 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)

## Description

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.

## About

- Author: Joachim Schimpf, IC-Parc
- Copyright © Cisco Systems, Inc
- Date: $Date: 2015/01/14 01:31:09 $

Generated from matrix_util.eci on 2020-02-26 22:26