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
The `N` and strides parameters determine which elements in the strided arrays are accessed at runtime. For example, to calculate the dot product of every other value in `zx` and the first `N` elements of `zy` in reverse order,
76
+
The `N` and strides parameters determine which elements in the strided arrays are accessed at runtime. For example, to calculate the dot product of every other value in `x` and the first `N` elements of `y` in reverse order,
85
77
86
78
```javascript
87
79
var Complex128Array =require( '@stdlib/array/complex128' );
88
-
var real =require( '@stdlib/complex/float64/real' );
89
-
var imag =require( '@stdlib/complex/float64/imag' );
var z =zdotu.ndarray( zx.length, zx, 1, 0, zy, 1, 0 );
144
-
// returns <Complex128>
145
-
146
-
var re =real( z );
147
-
// returns -52.0
148
-
149
-
var im =imag( z );
150
-
// returns 82.0
117
+
var z =zdotu.ndarray( x.length, x, 1, 0, y, 1, 0 );
118
+
// returns <Complex128>[ -52.0, 82.0 ]
151
119
```
152
120
153
121
The function has the following additional parameters:
154
122
155
-
-**offsetX**: starting index for `zx`.
156
-
-**offsetY**: starting index for `zy`.
123
+
-**offsetX**: starting index for `x`.
124
+
-**offsetY**: starting index for `y`.
157
125
158
-
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, to calculate the dot product of every other value in `zx` starting from the second value with the last 2 elements in `zy` in reverse order
126
+
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, to calculate the dot product of every other value in `x` starting from the second value with the last 2 elements in `y` in reverse order
159
127
160
128
```javascript
161
129
var Complex128Array =require( '@stdlib/array/complex128' );
162
-
var real =require( '@stdlib/complex/float64/real' );
163
-
var imag =require( '@stdlib/complex/float64/imag' );
0 commit comments