Link Search Menu Expand Document

Matrix

matrix.ts#L116

determinant (M: Matrix): number

Calculates the determinant of a matrix M.

Name Type Default Description
M Matrix    
matrix.ts#L16

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#L21

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

Returns the identity matrix of size n.

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

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

Calculates the inverse of a matrix M.

Name Type Default Description
M Matrix    
matrix.ts#L73

product (matrices: Array<Matrix>): Matrix

Calculates the matrix product of multiple matrices.

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

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

Name Type Default Description
angle number    
matrix.ts#L27

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

Name Type Default Description
angle number    
matrix.ts#L68

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#L33

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

Name Type Default Description
lambda number    
matrix.ts#L48

sum (matrices: Array<Matrix>): Matrix

Calculates the sum of two or more matrices.

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

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

Calculates the transpose of a matrix M.

Name Type Default Description
M Matrix    

Copyright © 2021 Mathigon.org