Skip to content

Commit 6842519

Browse files
committed
chore: update repl
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent afa917a commit 6842519

File tree

1 file changed

+36
-51
lines changed
  • lib/node_modules/@stdlib/blas/base/zdotu/docs

1 file changed

+36
-51
lines changed
Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
{{alias}}( N, zx, strideX, zy, strideY )
2+
{{alias}}( N, x, strideX, y, strideY )
33
Calculate the dot product of two double-precision complex floating-point
44
vectors.
55

@@ -16,17 +16,17 @@
1616
N: integer
1717
Number of indexed elements.
1818

19-
zx: Complex128Array
19+
x: Complex128Array
2020
First input array.
2121

2222
strideX: integer
23-
Index increment for `zx`.
23+
Stride length for `x`.
2424

25-
zy: Complex128Array
25+
y: Complex128Array
2626
Second input array.
2727

2828
strideY: integer
29-
Index increment for `zy`.
29+
Stride length for `y`.
3030

3131
Returns
3232
-------
@@ -36,36 +36,27 @@
3636
Examples
3737
--------
3838
// Standard usage:
39-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
40-
> var zy = new {{alias:@stdlib/array/complex128}}( [ 6.0, 7.0, 8.0, 9.0 ] );
41-
> var z = {{alias}}( zx.length, zx, 1, zy, 1 );
42-
> var re = {{alias:@stdlib/complex/float64/real}}( z )
43-
-20.0
44-
> var im = {{alias:@stdlib/complex/float64/imag}}( z )
45-
78.0
39+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
40+
> var y = new {{alias:@stdlib/array/complex128}}( [ 6.0, 7.0, 8.0, 9.0 ] );
41+
> var z = {{alias}}( x.length, x, 1, y, 1 )
42+
<Complex128>[ -20.0, 78.0 ]
4643

4744
// Advanced indexing:
48-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
49-
> var zy = new {{alias:@stdlib/array/complex128}}( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
50-
> var z = {{alias}}( 2, zx, 2, zy, -1 );
51-
> var re = {{alias:@stdlib/complex/float64/real}}( z )
52-
-2.0
53-
> var im = {{alias:@stdlib/complex/float64/imag}}( z )
54-
14.0
45+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
46+
> var y = new {{alias:@stdlib/array/complex128}}( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
47+
> var z = {{alias}}( 2, x, 2, y, -1 )
48+
<Complex128>[ -2.0, 14.0 ]
5549

5650
// Using typed array views:
57-
> var zx0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
58-
> var zy0 = new {{alias:@stdlib/array/complex128}}( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
59-
> var zx1 = new {{alias:@stdlib/array/complex128}}( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 );
60-
> var zy1 = new {{alias:@stdlib/array/complex128}}( zy0.buffer, zy0.BYTES_PER_ELEMENT*2 );
61-
> var z = {{alias}}( 1, zx1, 1, zy1, 1 );
62-
> var re = {{alias:@stdlib/complex/float64/real}}( z )
63-
-15.0
64-
> var im = {{alias:@stdlib/complex/float64/imag}}( z )
65-
80.0
66-
67-
68-
{{alias}}.ndarray( N, zx, strideX, offsetX, zy, strideY, offsetY )
51+
> var x0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
52+
> var y0 = new {{alias:@stdlib/array/complex128}}( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
53+
> var x1 = new {{alias:@stdlib/array/complex128}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
54+
> var y1 = new {{alias:@stdlib/array/complex128}}( y0.buffer, y0.BYTES_PER_ELEMENT*2 );
55+
> var z = {{alias}}( 1, x1, 1, y1, 1 )
56+
<Complex128>[ -15.0, 80.0 ]
57+
58+
59+
{{alias}}.ndarray( N, x, strideX, offsetX, y, strideY, offsetY )
6960
Computes the dot product of two double-precision complex floating-point
7061
vectors using alternative indexing semantics.
7162

@@ -77,23 +68,23 @@
7768
N: integer
7869
Number of indexed elements.
7970

80-
zx: Complex128Array
71+
x: Complex128Array
8172
First input array.
8273

8374
strideX: integer
84-
Index increment for `zx`.
75+
Stride length for `x`.
8576

8677
offsetX: integer
87-
Starting index for `zx`.
78+
Starting index for `x`.
8879

89-
zy: Complex128Array
80+
y: Complex128Array
9081
Second input array.
9182

9283
strideY: integer
93-
Index increment for `zy`.
84+
Stride length for `y`.
9485

9586
offsetY: integer
96-
Starting index for `zy`.
87+
Starting index for `y`.
9788

9889
Returns
9990
-------
@@ -103,22 +94,16 @@
10394
Examples
10495
--------
10596
// Standard usage:
106-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
107-
> var zy = new {{alias:@stdlib/array/complex128}}( [ 6.0, 7.0, 8.0, 9.0 ] );
108-
> var z = {{alias}}.ndarray( zx.length, zx, 1, 0, zy, 1, 0 );
109-
> var re = {{alias:@stdlib/complex/float64/real}}( z )
110-
-20.0
111-
> var im = {{alias:@stdlib/complex/float64/imag}}( z )
112-
78.0
97+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
98+
> var y = new {{alias:@stdlib/array/complex128}}( [ 6.0, 7.0, 8.0, 9.0 ] );
99+
> var z = {{alias}}.ndarray( x.length, x, 1, 0, y, 1, 0 )
100+
<Complex128>[ -20.0, 78.0 ]
113101

114102
// Advanced indexing:
115-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
116-
> var zy = new {{alias:@stdlib/array/complex128}}( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
117-
> var z = {{alias}}.ndarray( 1, zx, 2, 1, zy, -1, zy.length-1 );
118-
> var re = {{alias:@stdlib/complex/float64/real}}( z )
119-
-1.0
120-
> var im = {{alias:@stdlib/complex/float64/imag}}( z )
121-
7.0
103+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
104+
> var y = new {{alias:@stdlib/array/complex128}}( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
105+
> var z = {{alias}}.ndarray( 1, x, 2, 1, y, -1, y.length-1 )
106+
<Complex128>[ -1.0, 7.0 ]
122107

123108
See Also
124109
--------

0 commit comments

Comments
 (0)