@mojir/lits
Version:
Lits is a pure functional programming language implemented in TypeScript
9 lines (8 loc) • 318 B
TypeScript
/**
* Checks if a given matrix is symmetric.
* A matrix is symmetric if it is square and its transpose is equal to itself.
*
* @param matrix - A 2D array representing the matrix.
* @returns `true` if the matrix is symmetric, otherwise `false`.
*/
export declare function isSymetric(matrix: number[][]): boolean;