formatMatrixAligned
function formatMatrixAligned(m, settings?): string;Defined in: packages/engine/src/format/FormatEngine.ts:468
Render a matrix as a multi-line, column-aligned block: one row per line (the
newline is where formatValue’s compact form writes ;), each column
right-padded to its widest cell, and every row wrapped in [ ... ]. For
display where a grid reads better than a line, e.g. a docs notepad or a REPL:
[ 1 2 ][ 30 4 ]This is deliberately separate from formatValue, whose single-line matrix form stays the stable, assertable text the API and the worker DTO use. A 1xN row vector is one line; an Nx1 column vector is N lines.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
m | MatrixData |
settings? | FormattingSettings |
Returns
Section titled “Returns”string