23
23
// FUNCTIONS //
24
24
25
25
/**
26
- * Solve AT * X = B using the LU factorization of A computed by `dgttrf`, overwriting B with the solution.
26
+ * Solve ` AT * X = B` using the LU factorization of A computed by `dgttrf`, overwriting B with the solution.
27
27
*
28
28
* @private
29
- * @param {NonNegativeInteger } N - order of the matrix A
30
- * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix B
31
- * @param {Float64Array } DL - multipliers that define the matrix L
29
+ * @param {NonNegativeInteger } N - order of the matrix `A`
30
+ * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix `B`
31
+ * @param {Float64Array } DL - multipliers that define the matrix `L`
32
32
* @param {integer } strideDL - stride length for DL
33
33
* @param {NonNegativeInteger } offsetDL - starting index of DL
34
34
* @param {Float64Array } D - N diagonal elements of the upper triangular matrix U
35
35
* @param {integer } strideD - stride length for D
36
36
* @param {NonNegativeInteger } offsetD - starting index of D
37
- * @param {Float64Array } DU - elements of the first super-diagonal of U
37
+ * @param {Float64Array } DU - elements of the first super-diagonal of `U`
38
38
* @param {integer } strideDU - stride length for DU
39
39
* @param {NonNegativeInteger } offsetDU - starting index of DU
40
- * @param {Float64Array } DU2 - elements of the second super-diagonal of U
40
+ * @param {Float64Array } DU2 - elements of the second super-diagonal of `U`
41
41
* @param {integer } strideDU2 - stride length for DU2
42
42
* @param {NonNegativeInteger } offsetDU2 - starting index of DU2
43
43
* @param {Int32Array } IPIV - vector of pivot indices
44
44
* @param {integer } strideIPIV - stride length for IPIV
45
45
* @param {NonNegativeInteger } offsetIPIV - starting index for IPIV
46
- * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix X
46
+ * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix `X`
47
47
* @param {integer } strideB1 - stride of the first dimension of B
48
48
* @param {integer } strideB2 - stride of the second dimension of B
49
49
* @param {NonNegativeInteger } offsetB - starting index of B
@@ -165,27 +165,27 @@ function transpose( N, nrhs, DL, strideDL, offsetDL, D, strideD, offsetD, DU, st
165
165
}
166
166
167
167
/**
168
- * Solve A * X = B using the LU factorization of A computed by `dgttrf`, overwriting B with the solution.
168
+ * Solve ` A * X = B` using the LU factorization of A computed by `dgttrf`, overwriting B with the solution.
169
169
*
170
170
* @private
171
- * @param {NonNegativeInteger } N - order of the matrix A
172
- * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix B
173
- * @param {Float64Array } DL - multipliers that define the matrix L
171
+ * @param {NonNegativeInteger } N - order of the matrix `A`
172
+ * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix `B`
173
+ * @param {Float64Array } DL - multipliers that define the matrix `L`
174
174
* @param {integer } strideDL - stride length for DL
175
175
* @param {NonNegativeInteger } offsetDL - starting index of DL
176
176
* @param {Float64Array } D - N diagonal elements of the upper triangular matrix U
177
177
* @param {integer } strideD - stride length for D
178
178
* @param {NonNegativeInteger } offsetD - starting index of D
179
- * @param {Float64Array } DU - elements of the first super-diagonal of U
179
+ * @param {Float64Array } DU - elements of the first super-diagonal of `U`
180
180
* @param {integer } strideDU - stride length for DU
181
181
* @param {NonNegativeInteger } offsetDU - starting index of DU
182
- * @param {Float64Array } DU2 - elements of the second super-diagonal of U
182
+ * @param {Float64Array } DU2 - elements of the second super-diagonal of `U`
183
183
* @param {integer } strideDU2 - stride length for DU2
184
184
* @param {NonNegativeInteger } offsetDU2 - starting index of DU2
185
185
* @param {Int32Array } IPIV - vector of pivot indices
186
186
* @param {integer } strideIPIV - stride length for IPIV
187
187
* @param {NonNegativeInteger } offsetIPIV - starting index for IPIV
188
- * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix X
188
+ * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix `X`
189
189
* @param {integer } strideB1 - stride of the first dimension of B
190
190
* @param {integer } strideB2 - stride of the second dimension of B
191
191
* @param {NonNegativeInteger } offsetB - starting index of B
@@ -312,29 +312,29 @@ function noTranspose( N, nrhs, DL, strideDL, offsetDL, D, strideD, offsetD, DU,
312
312
*
313
313
* ## Notes
314
314
*
315
- * - To solve A * X = B (no transpose), use itrans = 0.
316
- * - To solve AT * X = B (transpose), use itrans = 1.
317
- * - To solve AT * X = B (conjugate transpose = transpose), use itrans = 2.
315
+ * - To solve ` A * X = B` (no transpose), use ` itrans` = 0.
316
+ * - To solve ` AT * X = B` (transpose), use ` itrans` = 1.
317
+ * - To solve ` AT * X = B` (conjugate transpose = transpose), use ` itrans` = 2.
318
318
*
319
319
* @param {integer } itrans - specifies the form of the system of equations
320
- * @param {NonNegativeInteger } N - order of the matrix A
321
- * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix B
322
- * @param {Float64Array } DL - multipliers that define the matrix L
320
+ * @param {NonNegativeInteger } N - order of the matrix `A`
321
+ * @param {NonNegativeInteger } nrhs - number of right-hand sides, i.e., the number of columns of the matrix `B`
322
+ * @param {Float64Array } DL - multipliers that define the matrix `L`
323
323
* @param {integer } strideDL - stride length for DL
324
324
* @param {NonNegativeInteger } offsetDL - starting index of DL
325
325
* @param {Float64Array } D - N diagonal elements of the upper triangular matrix U
326
326
* @param {integer } strideD - stride length for D
327
327
* @param {NonNegativeInteger } offsetD - starting index of D
328
- * @param {Float64Array } DU - elements of the first super-diagonal of U
328
+ * @param {Float64Array } DU - elements of the first super-diagonal of `U`
329
329
* @param {integer } strideDU - stride length for DU
330
330
* @param {NonNegativeInteger } offsetDU - starting index of DU
331
- * @param {Float64Array } DU2 - elements of the second super-diagonal of U
331
+ * @param {Float64Array } DU2 - elements of the second super-diagonal of `U`
332
332
* @param {integer } strideDU2 - stride length for DU2
333
333
* @param {NonNegativeInteger } offsetDU2 - starting index of DU2
334
334
* @param {Int32Array } IPIV - vector of pivot indices
335
335
* @param {integer } strideIPIV - stride length for IPIV
336
336
* @param {NonNegativeInteger } offsetIPIV - starting index for IPIV
337
- * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix X
337
+ * @param {Float64Array } B - right-hand side matrix B, overwritten by the solution matrix `X`
338
338
* @param {integer } strideB1 - stride of the first dimension of B
339
339
* @param {integer } strideB2 - stride of the second dimension of B
340
340
* @param {NonNegativeInteger } offsetB - starting index of B
@@ -359,7 +359,7 @@ function dgtts2( itrans, N, nrhs, DL, strideDL, offsetDL, D, strideD, offsetD, D
359
359
return B ;
360
360
}
361
361
if ( itrans === 0 ) {
362
- // Solve A * X = B using the LU factorization of A, overwriting B with the solution
362
+ // Solve ` A * X = B` using the LU factorization of A, overwriting B with the solution
363
363
return noTranspose ( N , nrhs , DL , strideDL , offsetDL , D , strideD , offsetD , DU , strideDU , offsetDU , DU2 , strideDU2 , offsetDU2 , IPIV , strideIPIV , offsetIPIV , B , strideB1 , strideB2 , offsetB ) ;
364
364
}
365
365
// Solve Solve A**T * X = B using the LU factorization of A, overwriting B with the solution.
0 commit comments