Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

Method Array.interleave_array()


Method interleave_array

array(int) interleave_array(array(mapping(int:mixed)) tab)

Description

Interleave a sparse matrix.

Returns an array with offsets that describe how to shift the rows of tab so that only at most one non-zero value exists in every column.