Skip to content

Typed API (TypeDoc)


Typed API (TypeDoc) / ensureSquare

Function: ensureSquare() ​

ensureSquare<T>(matrix, size, fillValue): NumericMatrix<T>

Defined in: graph/src/matrix/matrix-utils.ts:36

Type Parameters ​

T ​

T extends number

Parameters ​

matrix ​

NumericMatrix<T>

size ​

number

fillValue ​

T

Returns ​

NumericMatrix<T>

Built with VitePress – Released under the MIT License.