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
Based on the `side` of multiplication, the expected storage of the array changes:
72
72
73
-
-`work` should have `N` indexed elements if `side` = `left` and `M` indexed elements if `side` = `right`.
74
-
-`V` should have `1 + (M-1) * abs(incv)` indexed elements if `side` = `left` and `1 + (N-1) * abs(incv)` indexed elements if `side` = `right`.
73
+
-`work` should have `N` indexed elements if `side` = `'left'` and `M` indexed elements if `side` = `'right'`.
74
+
-`V` should have `1 + (M-1) * abs(incv)` indexed elements if `side` = `'left'` and `1 + (N-1) * abs(incv)` indexed elements if `side` = `'right'`.
75
75
76
76
The sign of the increment parameter `incv` determines the order in which elements of `V` are accessed. For example, to access elements in reverse order,
The function has the following additional parameters:
145
145
146
-
-**side**: specifies the side of multiplication with `C`. Use `left` to form `H * C` and `right` to from`C * H`.
146
+
-**side**: specifies the side of multiplication with `C`. Use `'left'` to form `H * C` and `'right'` to form`C * H`.
147
147
-**M**: number of rows in `C`.
148
148
-**N**: number of columns in `C`.
149
-
-**V**: the vector `v`in the representation of `H`as a [`Float64Array`][mdn-float64array].
149
+
-**V**: the vector `v` as a [`Float64Array`][mdn-float64array].
150
150
-**sv**: stride length for `V`.
151
151
-**ov**: starting index for `V`.
152
-
-**tau**: the value of `tau` in representation of `H`.
152
+
-**tau**: scalar constant.
153
153
-**C**: input matrix as a [`Float64Array`][mdn-float64array].
154
154
-**sc1**: stride of the first dimension of `C`.
155
155
-**sc2**: stride of the second dimension of `C`.
@@ -160,8 +160,8 @@ The function has the following additional parameters:
160
160
161
161
Based on the `side` of multiplication, the expected storage of the array changes:
162
162
163
-
-`work` should have `N` indexed elements if `side` = `left` and `M` indexed elements if `side` = `right`.
164
-
-`V` should have `1 + (M-1) * abs(incv)` indexed elements if `side` = `left` and `1 + (N-1) * abs(incv)` indexed elements if `side` = `right`.
163
+
-`work` should have `N` indexed elements if `side` = `'left'` and `M` indexed elements if `side` = `'right'`.
164
+
-`V` should have `1 + (M-1) * abs(incv)` indexed elements if `side` = `'left'` and `1 + (N-1) * abs(incv)` indexed elements if `side` = `'right'`.
165
165
166
166
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example,
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/lapack/base/dlarf1f/lib/base.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -33,22 +33,22 @@ var dscal = require( '@stdlib/blas/base/dscal' ).ndarray;
33
33
// MAIN //
34
34
35
35
/**
36
-
* Applies a real elementary reflector `H = I - tau * v * v ^ T` to a real M by N matrix `C`.
36
+
* Applies a real elementary reflector `H = I - tau * v * v^T` to a real M by N matrix `C`.
37
37
*
38
38
* ## Notes
39
39
*
40
-
* - `work` should have `N` indexed elements if side = `left` and `M` indexed elements if side = `right`.
41
-
* - `V` should have `1 + (M-1) * abs(strideV)` indexed elements if side = `left` and `1 + (N-1) * abs(strideV)` indexed elements if side = `right`.
42
-
* - `C` is overwritten by `H * C` if side = `left` and `C * H` if side = `right`.
40
+
* - `work` should have `N` indexed elements if side = `'left'` and `M` indexed elements if side = `'right'`.
41
+
* - `V` should have `1 + (M-1) * abs(strideV)` indexed elements if side = `'left'` and `1 + (N-1) * abs(strideV)` indexed elements if side = `'right'`.
42
+
* - `C` is overwritten by `H * C` if side = `'left'` and `C * H` if side = `'right'`.
43
43
*
44
44
* @private
45
-
* @param {string} side - specifies the side of multiplication with `C`. Use `left` to form `H * C` and `right` to from `C * H`.
45
+
* @param {string} side - specifies the side of multiplication with `C`. Use `'left'` to form `H * C` and `'right'` to form `C * H`.
46
46
* @param {NonNegativeInteger} M - number of rows in `C`
47
47
* @param {NonNegativeInteger} N - number of columns in `C`
48
-
* @param {Float64Array} V - the vector `v` in the representation of `H`
48
+
* @param {Float64Array} V - the vector `v`
49
49
* @param {integer} strideV - stride length for `V`
50
50
* @param {NonNegativeInteger} offsetV - starting index for `V`
51
-
* @param {number} tau - the value of `tau` in representation of `H`
51
+
* @param {number} tau - scalar constant
52
52
* @param {Float64Array} C - input matrix
53
53
* @param {integer} strideC1 - stride of the first dimension of `C`
54
54
* @param {integer} strideC2 - stride of the second dimension of `C`
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/lapack/base/dlarf1f/lib/ndarray.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -29,21 +29,21 @@ var base = require( './base.js' );
29
29
// MAIN //
30
30
31
31
/**
32
-
* Applies a real elementary reflector `H = I - tau * v * v ^ T` to a real M by N matrix `C`.
32
+
* Applies a real elementary reflector `H = I - tau * v * v^T` to a real M by N matrix `C`.
33
33
*
34
34
* ## Notes
35
35
*
36
-
* - `work` should have `N` indexed elements if side = `left` and `M` indexed elements if side = `right`.
37
-
* - `V` should have `1 + (M-1) * abs(strideV)` indexed elements if side = `left` and `1 + (N-1) * abs(strideV)` indexed elements if side = `right`.
38
-
* - `C` is overwritten by `H * C` if side = `left` and `C * H` if side = `right`.
36
+
* - `work` should have `N` indexed elements if side = `'left'` and `M` indexed elements if side = `'right'`.
37
+
* - `V` should have `1 + (M-1) * abs(strideV)` indexed elements if side = `'left'` and `1 + (N-1) * abs(strideV)` indexed elements if side = `'right'`.
38
+
* - `C` is overwritten by `H * C` if side = `'left'` and `C * H` if side = `'right'`.
39
39
*
40
-
* @param {string} side - specifies the side of multiplication with `C`. Use `left` to form `H * C` and `right` to from `C * H`.
40
+
* @param {string} side - specifies the side of multiplication with `C`. Use `'left'` to form `H * C` and `'right'` to form `C * H`.
41
41
* @param {NonNegativeInteger} M - number of rows in `C`
42
42
* @param {NonNegativeInteger} N - number of columns in `C`
43
-
* @param {Float64Array} V - the vector `v` in the representation of `H`
43
+
* @param {Float64Array} V - the vector `v`
44
44
* @param {integer} strideV - stride length for `V`
45
45
* @param {NonNegativeInteger} offsetV - starting index for `V`
46
-
* @param {number} tau - the value of `tau` in representation of `H`
46
+
* @param {number} tau - scalar constant
47
47
* @param {Float64Array} C - input matrix
48
48
* @param {integer} strideC1 - stride of the first dimension of `C`
49
49
* @param {integer} strideC2 - stride of the second dimension of `C`
0 commit comments