the lower triangular matrix
the diagonal matrix
the upper triangular matrix
the input matrix to factorize
Creates a new mat2 initialized with values from an existing matrix
matrix to clone
a new 2x2 matrix
Creates a new identity mat2
a new 2x2 matrix
Calculates the determinant of a mat2
the source matrix
determinant of a
Returns whether or not the matrices have approximately the same elements in the same position.
The first matrix.
The second matrix.
True if the matrices are equal, false otherwise.
Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
The first matrix.
The second matrix.
True if the matrices are equal, false otherwise.
Returns Frobenius norm of a mat2
the matrix to calculate Frobenius norm of
Frobenius norm
Create a new mat2 with the given values
Component in column 0, row 0 position (index 0)
Component in column 0, row 1 position (index 1)
Component in column 1, row 0 position (index 2)
Component in column 1, row 1 position (index 3)
out A new 2x2 matrix
Set the components of a mat2 to the given values
the receiving matrix
Component in column 0, row 0 position (index 0)
Component in column 0, row 1 position (index 1)
Component in column 1, row 0 position (index 2)
Component in column 1, row 1 position (index 3)
out
Returns a string representation of a mat2
matrix to represent as a string
string representation of the matrix
Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix