Methods
concat(M, m, idx) → {Array}
Helper function concatenating/combining 2 Matrices
- Source:
Parameters:
Name | Type | Description |
---|---|---|
M |
Matrix
|
Left side of the concat operatior |
m |
Array
|
right side of the contac operator |
idx |
Number
|
Index of the row |
Returns:
- Type:
-
Array
dot(B, a) → {Array}
Helper function to generate the dotproduct of 2 Matrices
- Source:
Parameters:
Name | Type | Description |
---|---|---|
B |
Matrix
|
Right side of hte dot product |
a |
Array
|
Array representing theleft side of the dot product |
Returns:
- Type:
-
Array
generate(rows, cols) → {Array.<Array.<any>>}
Generator function for a matrix array, values are set to undefined
- Source:
Parameters:
Name | Type | Description |
---|---|---|
rows |
Number
|
|
cols |
Number
|
Returns:
- Type:
-
Array.<Array.<any>>
matrixIdentity(m, idx) → {Matrix}
Creates an identiy matrix from an empty array
- Source:
Parameters:
Name | Type | Description |
---|---|---|
m |
Array
|
|
idx |
Number
|
Returns:
- Type:
-
Matrix
round(value, decimals) → {Number}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Number
|
|
decimals |
Number
|
Returns:
- Type:
-
Number
solve(n, L, U, b)
Helper function for xA = b solver
- Source:
Parameters:
Name | Type | Description |
---|---|---|
n |
||
L |
||
U |
||
b |
solveL(n, L, b) → {Array}
solve the xA = b equation for lower triangular
- Source:
Parameters:
Name | Type | Description |
---|---|---|
n |
||
L |
||
b |
Returns:
- Type:
-
Array
solveU(n, U, c, b)
solve the xA = b equation for upper triangular
- Source:
Parameters:
Name | Type | Description |
---|---|---|
n |
||
U |
||
c |
||
b |