UNPKG

@mojir/lits

Version:

Lits is a pure functional programming language implemented in TypeScript

14 lines (13 loc) 593 B
/** * Determines whether a given matrix is triangular. * * A triangular matrix is a square matrix where all elements * below or above the main diagonal are zero. This function * checks if the matrix is square and symmetric. * * @param matrix - A two-dimensional array of numbers representing the matrix. * @returns `true` if the matrix is triangular, otherwise `false`. */ export declare function isTriangular(matrix: number[][]): boolean; export declare function isTriangularUpper(matrix: number[][]): boolean; export declare function isTriangularLower(matrix: number[][]): boolean;