-
Notifications
You must be signed in to change notification settings - Fork 0
module arrays.API
ThomWright edited this page Aug 30, 2014
·
6 revisions
Table of Contents generated with DocToc
-
Module: arrays
-
arrays
- add(a1, a2) → {Array.<Array.>}
-
Methods
- copy(arrays) → {Array.<Array.>}
- createBlank(numOfRows, numOfCols) → {Array.<Array.>}
- createIdentity(size) → {Array.<Array.>}
- decompose(arrays) → {LUP}
- getDimensions(arrays) → {Array.}
- getNumOfColumns(arrays) → {Integer}
- getNumOfRows(arrays) → {Integer}
- getSize(arrays) → {String}
- invert(arrays) → {Array.<Array.>}
- isEmpty(arrays) → {Boolean}
- isLowerTriangular(arrays) → {Boolean}
- isSquare(arrays) → {Boolean}
- isUpperTriangular(arrays) → {Boolean}
- multiply(a1, a2) → {Array.<Array.>}
- solve(A, b) → {Array.<Array.>}
- subtract(a1, a2) → {Array.<Array.>}
- transpose(arrays) → {Array.<Array.>}
- <private, inner> solve(lup, b) → {Array.<Array.>}
- Type Definitions
-
arrays
-
Add two 2D arrays and return the result.
Name Type Description a1Array.<Array.<Number>> a2Array.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
Name Type Description arrays!Array.<Array.<Number>> 2D array to copy.
- Type
- Array.<Array.<Number>>
-
Name Type Argument Default Description numOfRowsInteger numOfColsInteger <optional>
numOfRows The blank (zeros) 2D array of given size.
- Type
- Array.<Array.<Number>>
-
Name Type Description sizeInteger The identity 2D array of given size.
- Type
- Array.<Array.<Number>>
-
Decompose this 2D array into lower and upper triangular 2D arrays.
Name Type Description arraysArray.<Array.<Number>> - Source:
SingularMatrixExceptionLower and upper triangular 2D arrays, and a permutation 2D array.
- Type
- LUP
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
e.g. [2, 3] for a 2x3 matrix
- Type
- Array.<Integer>
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Integer
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Integer
-
Get a string representation of the 2D array size.
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- String
-
Return an inverted version of the given 2D array.
Name Type Description arraysArray.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Boolean
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Boolean
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Boolean
-
Name Type Description arrays!Array.<Array.<Number>> - Source:
- Type
- Boolean
-
Multiple two 2D arrays and return the result.
Name Type Description a1Array.<Array.<Number>> a2Array.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
Solve the matrix equation Ax = b for x with matrix size N.
Name Type Description AArray.<Array.<Number>> NxN
bArray.<Array.<Number>> Nx1
- Source:
Nx1
- Type
- Array.<Array.<Number>>
-
Subtract a2 from a1 and return the result.
Name Type Description a1Array.<Array.<Number>> a2Array.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
Return a transposed version of the given 2D array.
Name Type Description arraysArray.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
Name Type Description lupLUP bArray.<Array.<Number>> - Source:
- Type
- Array.<Array.<Number>>
-
- object
- Source:
Name Type Description lArray.<Array.<Number>> Lower triangular matrix.
uArray.<Array.<Number>> Upper triangular matrix.
pArray.<Array.<Number>> Permutation matrix.