Link Search Menu Expand Document

Matrix

matrix.ts#L117

determinant (M: Matrix): number

Calculates the determinant of a matrix M.

Name Type Default Description
M Matrix    
matrix.ts#L17

fill (value: number, x: number, y: number): Array<Array<number>>

Fills a matrix of size x, y with a given value.

Name Type Default Description
value number    
x number    
y number    
matrix.ts#L22

identity (n: number): Array<Array<number>>

Returns the identity matrix of size n.

Name Type Default Description
n number 2  
matrix.ts#L140

inverse (M: Matrix): Array<Array<number>>

Calculates the inverse of a matrix M.

Name Type Default Description
M Matrix    
matrix.ts#L74

product (matrices: Array<Matrix>): Matrix

Calculates the matrix product of multiple matrices.

Name Type Default Description
matrices Array<Matrix>    
matrix.ts#L38

reflection (angle: number): Array<Array<number>>

Name Type Default Description
angle number    
matrix.ts#L28

rotation (angle: number): Array<Array<number>>

Name Type Default Description
angle number    
matrix.ts#L69

scalarProduct (M: Matrix, v: number): Array<Array<number>>

Multiplies a matrix M by a scalar v.

Name Type Default Description
M Matrix    
v number    
matrix.ts#L34

shear (lambda: number): Array<Array<number>>

Name Type Default Description
lambda number    
matrix.ts#L49

sum (matrices: Array<Matrix>): Matrix

Calculates the sum of two or more matrices.

Name Type Default Description
matrices Array<Matrix>    
matrix.ts#L104

transpose (M: Matrix): Array<Array<number>>

Calculates the transpose of a matrix M.

Name Type Default Description
M Matrix    

Copyright © 2022 Mathigon.org