[ library(matrix_util) | Reference Manual | Alphabetic Index ]

list2cols(+List, +NRows, +NCols, -Cols)

Create a matrix from a flat list of row-wise listed elements

Examples

    ?- list2cols([1,2,3,4,5,6],2,3,Cols).
    Cols = [[1, 4], [2, 5], [3, 6]]
    Yes (0.00s cpu)