PHAT's boundary-matrix formats, with the conventions of phat/boundary_matrix.h (load_ascii, save_ascii, load_binary, save_binary): a matrix over Z/2 whose columns are numbered from 0, each with a dimension and the sorted row indices of its nonzero entries.
ASCII: one column per line, the dimension first and then the row indices, separated by whitespace; empty lines and lines starting with # are skipped.
Binary: an Int64 column count, then for each column its dimension (Int64), its number of entries N (Int64) and the N row indices (Int64). PHAT writes the machine's byte order; this reader and writer use little-endian, which is the byte order of x86 and ARM machines.
PHAT reads a matrix whose columns are in filtration order, so a face's row comes before the column of its coface: fromStream builds that matrix from a stream, sorting its cells by the stream's filtrationOrdering.
The boundary matrix over Z/2 of cells, which must be listed in filtration order with every face of a cell listed before it: column j is cell j, its rows the positions of the faces in the boundary.
The boundary matrix over Z/2 of cells, which must be listed in filtration order with every face of a cell listed before it: column j is cell j, its rows the positions of the faces in the boundary.
The boundary matrix over Z/2 of the cells of stream in filtration order (by filtration value, then dimension, so a face comes before its cofaces; ties are broken by the stream's filtrationOrdering): column j is cell j, its rows the positions of the faces in the boundary.
The boundary matrix over Z/2 of the cells of stream in filtration order (by filtration value, then dimension, so a face comes before its cofaces; ties are broken by the stream's filtrationOrdering): column j is cell j, its rows the positions of the faces in the boundary.