You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**N**: number of rows/columns of the elementary reflector `H`.
51
-
-**X**: overwritten by the vector `V` on exit, expects `N - 1` indexed elements[`Float64Array`][mdn-float64array].
51
+
-**X**: a [`Float64Array`][mdn-float64array] which is overwritten by the vector `V`. Should have `N - 1` indexed elements.
52
52
-**incx**: stride length of `X`.
53
-
-**out**: output [`Float64Array`][mdn-float64array], the first element of `out` represents alpha and the second element of `out` represents `tau`.
53
+
-**out**: output [`Float64Array`][mdn-float64array]. The first element of `out` represents alpha and the second element of `out` represents `tau`.
54
54
55
55
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
56
56
@@ -74,7 +74,7 @@ dlarfg( 4, X1, 1, out1 );
74
74
75
75
#### dlarfg.ndarray( N, X, strideX, offsetX, out, strideOut, offsetOut )
76
76
77
-
Generates a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; x]` zeros out `X` using alternative indexing semantics.
77
+
Generates a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; X]` zeros out `X` using alternative indexing semantics.
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/lapack/base/dlarfg/lib/ndarray.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,13 @@ var base = require( './base.js' );
26
26
// MAIN //
27
27
28
28
/**
29
-
* Generates a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; x]` zeros out `X` using alternative indexing semantics.
29
+
* Generates a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; X]` zeros out `X` using alternative indexing semantics.
30
30
*
31
31
* ## Notes
32
32
*
33
-
* - `H` is a Householder matrix with the form `H = I - tau * [1; v] * [1, v^T]`, where `tau` is a scalar and `v` is a vector.
34
-
* - the input vector is `[alpha; x]`, where `alpha` is a scalar and `X` is a real `(n-1)`-element vector.
35
-
* - the result of applying `H` to `[alpha; x]` is `[beta; 0]`, with `beta` being a scalar and the rest of the vector zeroed.
33
+
* - `H` is a Householder matrix with the form `H = I - tau * [1; V] * [1, V^T]`, where `tau` is a scalar and `V` is a vector.
34
+
* - the input vector is `[alpha; X]`, where `alpha` is a scalar and `X` is a real `(n-1)`-element vector.
35
+
* - the result of applying `H` to `[alpha; X]` is `[beta; 0]`, with `beta` being a scalar and the rest of the vector zeroed.
36
36
* - if all elements of `X` are zero, then `tau = 0` and `H` is the identity matrix.
37
37
* - otherwise, `1 <= tau <= 2`
38
38
*
@@ -43,7 +43,7 @@ var base = require( './base.js' );
43
43
* @param {Float64Array} out - array to store `alpha` and `tau`, first indexed element stores `alpha` and the second indexed element stores `tau`
44
44
* @param {integer} strideOut - stride length for `out`
45
45
* @param {NonNegativeInteger} offsetOut - starting index of `out`
46
-
* @returns {void} overwrites the array `X` and `out` in place
46
+
* @returns {void}
47
47
*
48
48
* @example
49
49
* var Float64Array = require( '@stdlib/array/float64' );
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/lapack/base/dlarfg/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "@stdlib/lapack/base/dlarfg",
3
3
"version": "0.0.0",
4
-
"description": "LAPACK routine to generate a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; x]` zeros out `X`.",
4
+
"description": "LAPACK routine to generate a real elementary reflector `H` of order `N` such that applying `H` to a vector `[alpha; X]` zeros out `X`.",
0 commit comments