-
Notifications
You must be signed in to change notification settings - Fork 0
module matrixy.API
API for dealing with matrices as wrapped functions.
- Source:
-
<static> copy(matrix) → {module:matrixy.Matrix}
-
Return a copy of the given Matrix.
Name Type Description matrixmodule:matrixy.Matrix - Source:
-
<static> createBlankMatrix(size) → {module:matrixy.Matrix}
-
Create a blank
module:matrixy.Matrixof the given size.Name Type Description sizeInteger - Source:
-
<static> createIdentityMatrix(size) → {module:matrixy.Matrix}
-
Create an identity
module:matrixy.Matrixof the given size.Name Type Description sizeInteger - Source:
-
<static> createImmutableMatrix(arrays) → {module:matrixy.Matrix}
-
Create an immutable
module:matrixy.Matrixfrom a 2D array. Allmodule:matrixy.MatrixOperations will be performed on a copy of the 2D array.Name Type Description arrays!Array.<Array.<Number>> - Source:
-
<static> createMatrix(arrays) → {module:matrixy.Matrix}
-
Create a
module:matrixy.Matrixfrom a 2D array.Name Type Description arrays!Array.<Array.<Number>> 2D array
- Source:
-
Decompose this matrix into an LU pair.
Name Type Description matrixmodule:matrixy.Matrix - Source:
- See:
- Type
- LUP
-
Return the determinant of the given
module:matrixy.Matrix.Name Type Description matrixmodule:matrixy.Matrix Square matrix
- Source:
- Type
- Number
-
<static> dividedBy(matrix) → {module:matrixy.MatrixOperation}
-
Infix function to divide a Matrix by another
Name Type Description matrixmodule:matrixy.Matrix - Source:
c = a(dividedBy(b)); // JavaScript c = a dividedBy b # CoffeeScript -
Get an entry in the matrix at position (row, col).
Name Type Description rowInteger colInteger - Source:
- Type
- Number
-
Name Type Description matrixmodule:matrixy.Matrix - Source:
- See:
e.g. [2, 3] for a 2x3 matrix
- Type
- Array.<Integer>
-
Get the wrapped 2D arrays of a
module:matrixy.MatrixName Type Description matrixmodule:matrixy.Matrix - Source:
- Type
- Array.<Array.<Number>>
-
<static> invert(matrix) → {module:matrixy.Matrix}
-
Return an inverted version of the given
module:matrixy.Matrix.Name Type Description matrixmodule:matrixy.Matrix - Source:
Inverted matrix.
-
Is it possible to invert the given 2D array?
Name Type Description matrixmodule:matrixy.Matrix - Source:
- Type
- Boolean
-
Name Type Description matrixmodule:matrixy.Matrix - Source:
- See:
- Type
- Boolean
-
Name Type Description matrixmodule:matrixy.Matrix - Source:
- See:
- Type
- Boolean
-
<static> minus(matrix) → {module:matrixy.MatrixOperation}
-
Infix function to subtract a Matrix from another
Name Type Description matrixmodule:matrixy.Matrix - Source:
c = a(minus(b)); // JavaScript c = a minus b # CoffeeScript -
Get the number of columns in the given matrix.
Name Type Description matrixmodule:matrixy.Matrix - Source:
- Type
- Number
-
Get the number of rows in the given matrix.
Name Type Description matrixmodule:matrixy.Matrix - Source:
- Type
- Number
-
<static> plus(matrix) → {module:matrixy.MatrixOperation}
-
Infix function to add two Matrices.
Name Type Description matrixmodule:matrixy.Matrix - Source:
c = a(plus(b)); // JavaScript c = a plus b # CoffeeScript -
<static> set(row, col) → {module:matrixy~setter}
-
Set an entry in the matrix to a given value.
Name Type Description rowInteger colInteger - Source:
-
Name Type Description matrixmodule:matrixy.Matrix - Source:
- See:
- Type
- String
-
<static> solve(A, b) → {module:matrixy.Matrix}
-
Solve the matrix equation Ax = b for x with matrix size N.
Name Type Description Amodule:matrixy.Matrix NxN
bmodule:matrixy.Matrix Nx1
- Source:
- See:
Nx1
-
<static> times(matrix) → {module:matrixy.MatrixOperation}
-
Infix function to multiply two Matrices.
Name Type Description matrixmodule:matrixy.Matrix | Number - Source:
c = a(times(b)); // JavaScript c = a times b # CoffeeScript -
<static> transpose(matrix) → {module:matrixy.Matrix}
-
Return a transposed version of the given
module:matrixy.Matrix.Name Type Description matrixmodule:matrixy.Matrix - Source:
Transposed matrix.
-
- object
- Source:
Name Type Description lmodule:matrixy.Matrix Lower triangular matrix.
umodule:matrixy.Matrix Upper triangular matrix.
pmodule:matrixy.Matrix Permutation matrix.
-
A Matrix. Can be given a
module:matrixy.MatrixOperation.Name Type Argument Description opmodule:matrixy.MatrixOperation <optional>
- Source:
Internal 2D array if no params given, else result of op.
- Type
- Array.<Array.<Number>> | *
-
Operation on a
module:matrixy.Matrix.Name Type Description matrixmodule:matrixy.Matrix - Source:
- Type
- *