- Preparing search index...
- The search index is not available
ella-math
Constructors
constructor
- new Mat(values: number[], options?: {
numCols: number;
numRows: number;
}): Mat
-
Parameters
-
values: number[]
-
Optional
options: {
numCols: number;
numRows: number;
}
-
numCols: number
-
numRows: number
Returns Mat
Methods
colAt
- colAt(column: number): number[]
-
Returns number[]
determinant
- determinant(): number
-
Returns number
equals
- equals(otherMatrix: Mat): boolean
-
Returns boolean
isFinite
- isFinite(): boolean
-
Returns boolean
isNaN
- isNaN(): boolean
-
Returns boolean
roughlyEquals
- roughlyEquals(otherMatrix: Mat, delta?: number): boolean
-
Parameters
-
otherMatrix: Mat
-
delta: number = 1e-14
Returns boolean
rowAt
- rowAt(row: number): number[]
-
Returns number[]
toArray
- toArray(): number[]
-
Returns number[]
toString
- toString(): string
-
Returns string
valueAt
- valueAt(row: number, column: number): number
-
Parameters
-
row: number
-
column: number
Returns number
Static
fromVectors
- fromVectors(vectors?: Vec[]): Mat
-
Returns Mat
Static
identity
- identity(dimension: number): Mat
-
Returns Mat
add two matrices
Returns
result matrix