pp_mat_gen ?pp_open ?pp_close ?pp_head ?pp_foot ?pp_end_row ?pp_end_col ?pp_left ?pp_right ?pad pp_el ppf mat
Generic printing of matrices (two-dimensional bigarrays).
pp_open ppf is called whenever printing of a matrix mat is started, pp_close ppf whenever printing is complete. These functions are not called when the matrix is empty.
pp_head other_ppf col is used to print a header for column col in matrix mat. This header is right-aligned and eventually padded using Some pad-character to match the matrix rows in the column beneath. The passed formatter other_ppf is not identical to ppf!
pp_foot other_ppf col is used to print a footer for column col in matrix mat. It is similar to pp_head col other_ppf otherwise.
pp_end_row ppf row is called on row number row and formatter ppf whenever the end of a row has been reached.
pp_end_col ppf ~row ~col is called on the row number row, column number col and formatter ppf whenever the element at this position has been printed and if it is not the last element in the row.
pp_left ppf row is called on row number row and formatter ppf to print labels to the left of each row. The labels are right-aligned within a virtual column.
pp_right ppf row is called on row number row and formatter ppf to print labels to the right of each row. The labels are left-aligned.
The character pad is used to pad matrix elements for right-aligning them appropriately. If it is set to None, no alignment will be performed.
ellipsis is used as a filler when elements need to be skipped in the case of printing with contexts.
vertical_context determines the number of initial and final rows to be printed. Intermediate row will be skipped, and one row containing ellipsis elements will be printed in their place instead. None chooses no context, Some v sets the vertical context to v.
horizontal_context determines the number of initial and final columns to be printed. Intermediate columns will be skipped, and one columns containing ellipsis elements will be printed in their place instead. None chooses no context, Some h sets the horizontal context to h.
pp_el other_ppf el is called on formatter other_ppf (not ppf!) and each matrix element.
ppf is the formatter to which all output is finally printed.
mat is the matrix to be printed.