@stdlib/blas-base-ccopy 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # ccopy
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Copy values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
26
26
 
@@ -48,8 +48,8 @@ Copies values from `x` into `y`.
48
48
 
49
49
  ```javascript
50
50
  var Complex64Array = require( '@stdlib/array-complex64' );
51
- var real = require( '@stdlib/complex-real' );
52
- var imag = require( '@stdlib/complex-imag' );
51
+ var realf = require( '@stdlib/complex-realf' );
52
+ var imagf = require( '@stdlib/complex-imagf' );
53
53
 
54
54
  var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
55
55
  var y = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
@@ -59,10 +59,10 @@ ccopy( x.length, x, 1, y, 1 );
59
59
  var z = y.get( 0 );
60
60
  // returns <Complex64>
61
61
 
62
- var re = real( z );
62
+ var re = realf( z );
63
63
  // returns 1.0
64
64
 
65
- var im = imag( z );
65
+ var im = imagf( z );
66
66
  // returns 2.0
67
67
  ```
68
68
 
@@ -79,8 +79,8 @@ The `N` and `stride` parameters determine how values from `x` are copied into `y
79
79
  ```javascript
80
80
  var Complex64Array = require( '@stdlib/array-complex64' );
81
81
  var floor = require( '@stdlib/math-base-special-floor' );
82
- var real = require( '@stdlib/complex-real' );
83
- var imag = require( '@stdlib/complex-imag' );
82
+ var realf = require( '@stdlib/complex-realf' );
83
+ var imagf = require( '@stdlib/complex-imagf' );
84
84
 
85
85
  var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
86
86
  var y = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
@@ -92,10 +92,10 @@ ccopy( N, x, -2, y, 1 );
92
92
  var z = y.get( 0 );
93
93
  // returns <Complex64>
94
94
 
95
- var re = real( z );
95
+ var re = realf( z );
96
96
  // returns 5.0
97
97
 
98
- var im = imag( z );
98
+ var im = imagf( z );
99
99
  // returns 6.0
100
100
  ```
101
101
 
@@ -105,9 +105,8 @@ Note that indexing is relative to the first index. To introduce an offset, use [
105
105
 
106
106
  ```javascript
107
107
  var Complex64Array = require( '@stdlib/array-complex64' );
108
- var floor = require( '@stdlib/math-base-special-floor' );
109
- var real = require( '@stdlib/complex-real' );
110
- var imag = require( '@stdlib/complex-imag' );
108
+ var realf = require( '@stdlib/complex-realf' );
109
+ var imagf = require( '@stdlib/complex-imagf' );
111
110
 
112
111
  // Initial arrays...
113
112
  var x0 = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
@@ -117,18 +116,16 @@ var y0 = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
117
116
  var x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
118
117
  var y1 = new Complex64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
119
118
 
120
- var N = floor( x0.length / 2 );
121
-
122
119
  // Copy in reverse order every other value from `x1` into `y1`...
123
- ccopy( N, x1, -2, y1, 1 );
120
+ ccopy( 2, x1, -2, y1, 1 );
124
121
 
125
122
  var z = y0.get( 2 );
126
123
  // returns <Complex64>
127
124
 
128
- var re = real( z );
125
+ var re = realf( z );
129
126
  // returns 7.0
130
127
 
131
- var im = imag( z );
128
+ var im = imagf( z );
132
129
  // returns 8.0
133
130
  ```
134
131
 
@@ -138,8 +135,8 @@ Copies values from `x` into `y` using alternative indexing semantics.
138
135
 
139
136
  ```javascript
140
137
  var Complex64Array = require( '@stdlib/array-complex64' );
141
- var real = require( '@stdlib/complex-real' );
142
- var imag = require( '@stdlib/complex-imag' );
138
+ var realf = require( '@stdlib/complex-realf' );
139
+ var imagf = require( '@stdlib/complex-imagf' );
143
140
 
144
141
  var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
145
142
  var y = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
@@ -149,10 +146,10 @@ ccopy.ndarray( x.length, x, 1, 0, y, 1, 0 );
149
146
  var z = y.get( 0 );
150
147
  // returns <Complex64>
151
148
 
152
- var re = real( z );
149
+ var re = realf( z );
153
150
  // returns 1.0
154
151
 
155
- var im = imag( z );
152
+ var im = imagf( z );
156
153
  // returns 2.0
157
154
  ```
158
155
 
@@ -165,24 +162,21 @@ While [`typed array`][mdn-typed-array] views mandate a view offset based on the
165
162
 
166
163
  ```javascript
167
164
  var Complex64Array = require( '@stdlib/array-complex64' );
168
- var floor = require( '@stdlib/math-base-special-floor' );
169
- var real = require( '@stdlib/complex-real' );
170
- var imag = require( '@stdlib/complex-imag' );
165
+ var realf = require( '@stdlib/complex-realf' );
166
+ var imagf = require( '@stdlib/complex-imagf' );
171
167
 
172
168
  var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
173
169
  var y = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
174
170
 
175
- var N = floor( x.length / 2 );
176
-
177
- ccopy.ndarray( N, x, 2, 1, y, -1, y.length-1 );
171
+ ccopy.ndarray( 2, x, 2, 1, y, -1, y.length-1 );
178
172
 
179
173
  var z = y.get( y.length-1 );
180
174
  // returns <Complex64>
181
175
 
182
- var re = real( z );
176
+ var re = realf( z );
183
177
  // returns 3.0
184
178
 
185
- var im = imag( z );
179
+ var im = imagf( z );
186
180
  // returns 4.0
187
181
  ```
188
182
 
@@ -235,6 +229,22 @@ console.log( y.get( y.length-1 ).toString() );
235
229
 
236
230
  <!-- /.examples -->
237
231
 
232
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
233
+
234
+ <section class="related">
235
+
236
+ * * *
237
+
238
+ ## See Also
239
+
240
+ - <span class="package-name">[`@stdlib/blas/base/cswap`][@stdlib/blas/base/cswap]</span><span class="delimiter">: </span><span class="description">interchanges two complex single-precision floating-point vectors.</span>
241
+
242
+ </section>
243
+
244
+ <!-- /.related -->
245
+
246
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
247
+
238
248
 
239
249
  <section class="main-repo" >
240
250
 
@@ -259,7 +269,7 @@ See [LICENSE][stdlib-license].
259
269
 
260
270
  ## Copyright
261
271
 
262
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
272
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
263
273
 
264
274
  </section>
265
275
 
@@ -278,9 +288,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
278
288
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/blas-base-ccopy/main.svg
279
289
  [coverage-url]: https://codecov.io/github/stdlib-js/blas-base-ccopy?branch=main
280
290
 
291
+ <!--
292
+
281
293
  [dependencies-image]: https://img.shields.io/david/stdlib-js/blas-base-ccopy.svg
282
294
  [dependencies-url]: https://david-dm.org/stdlib-js/blas-base-ccopy/main
283
295
 
296
+ -->
297
+
298
+ [umd]: https://github.com/umdjs/umd
299
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
300
+
301
+ [deno-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/deno
302
+ [umd-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/umd
303
+ [esm-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/esm
304
+
284
305
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
285
306
  [chat-url]: https://gitter.im/stdlib-js/stdlib/
286
307
 
@@ -298,6 +319,12 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
298
319
 
299
320
  [@stdlib/array/complex64]: https://www.npmjs.com/package/@stdlib/array-complex64
300
321
 
322
+ <!-- <related-links> -->
323
+
324
+ [@stdlib/blas/base/cswap]: https://www.npmjs.com/package/@stdlib/blas-base-cswap
325
+
326
+ <!-- </related-links> -->
327
+
301
328
  </section>
302
329
 
303
330
  <!-- /.links -->
package/docs/repl.txt CHANGED
@@ -40,7 +40,7 @@
40
40
  > var y = new {{alias:@stdlib/array/complex64}}( [ 6.0, 7.0, 8.0, 9.0 ] );
41
41
  > {{alias}}( x.length, x, 1, y, 1 );
42
42
  > var z = y.get( 0 );
43
- > var re = {{alias:@stdlib/complex/real}}( z )
43
+ > var re = {{alias:@stdlib/complex/realf}}( z )
44
44
  1.0
45
45
  > var im = {{alias:@stdlib/complex/imag}}( z )
46
46
  2.0
@@ -51,7 +51,7 @@
51
51
  > var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 );
52
52
  > {{alias}}( N, x, -2, y, 1 );
53
53
  > z = y.get( 0 );
54
- > re = {{alias:@stdlib/complex/real}}( z )
54
+ > re = {{alias:@stdlib/complex/realf}}( z )
55
55
  5.0
56
56
  > im = {{alias:@stdlib/complex/imag}}( z )
57
57
  6.0
@@ -64,7 +64,7 @@
64
64
  > N = {{alias:@stdlib/math/base/special/floor}}( x0.length / 2 );
65
65
  > {{alias}}( N, x1, -2, y1, 1 );
66
66
  > z = y0.get( 2 );
67
- > re = {{alias:@stdlib/complex/real}}( z )
67
+ > re = {{alias:@stdlib/complex/realf}}( z )
68
68
  7.0
69
69
  > im = {{alias:@stdlib/complex/imag}}( z )
70
70
  8.0
@@ -114,7 +114,7 @@
114
114
  > var y = new {{alias:@stdlib/array/complex64}}( [ 6.0, 7.0, 8.0, 9.0 ] );
115
115
  > {{alias}}.ndarray( x.length, x, 1, 0, y, 1, 0 );
116
116
  > var z = y.get( 0 );
117
- > var re = {{alias:@stdlib/complex/real}}( z )
117
+ > var re = {{alias:@stdlib/complex/realf}}( z )
118
118
  1.0
119
119
  > var im = {{alias:@stdlib/complex/imag}}( z )
120
120
  2.0
@@ -125,7 +125,7 @@
125
125
  > var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 );
126
126
  > {{alias}}.ndarray( N, x, 2, 1, y, -1, y.length-1 );
127
127
  > z = y.get( y.length-1 );
128
- > re = {{alias:@stdlib/complex/real}}( z )
128
+ > re = {{alias:@stdlib/complex/realf}}( z )
129
129
  3.0
130
130
  > im = {{alias:@stdlib/complex/imag}}( z )
131
131
  4.0
@@ -18,6 +18,10 @@
18
18
 
19
19
  // TypeScript Version: 2.0
20
20
 
21
+ /// <reference types="@stdlib/types"/>
22
+
23
+ import { Complex64Array } from '@stdlib/types/array';
24
+
21
25
  /**
22
26
  * Interface describing `ccopy`.
23
27
  */
@@ -34,8 +38,8 @@ interface Routine {
34
38
  *
35
39
  * @example
36
40
  * var Complex64Array = require( `@stdlib/array/complex64` );
37
- * var real = require( `@stdlib/complex/real` );
38
- * var imag = require( `@stdlib/complex/imag` );
41
+ * var realf = require( `@stdlib/complex/realf` );
42
+ * var imagf = require( `@stdlib/complex/imagf` );
39
43
  *
40
44
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
41
45
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -45,10 +49,10 @@ interface Routine {
45
49
  * var z = y.get( 0 );
46
50
  * // returns <Complex64>
47
51
  *
48
- * var re = real( z );
52
+ * var re = realf( z );
49
53
  * // returns 1.0
50
54
  *
51
- * var im = imag( z );
55
+ * var im = imagf( z );
52
56
  * // returns 2.0
53
57
  */
54
58
  ( N: number, x: Complex64Array, strideX: number, y: Complex64Array, strideY: number ): Complex64Array; // tslint:disable-line:max-line-length
@@ -67,8 +71,8 @@ interface Routine {
67
71
  *
68
72
  * @example
69
73
  * var Complex64Array = require( `@stdlib/array/complex64` );
70
- * var real = require( `@stdlib/complex/real` );
71
- * var imag = require( `@stdlib/complex/imag` );
74
+ * var realf = require( `@stdlib/complex/realf` );
75
+ * var imagf = require( `@stdlib/complex/imagf` );
72
76
  *
73
77
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
74
78
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -78,10 +82,10 @@ interface Routine {
78
82
  * var z = y.get( 0 );
79
83
  * // returns <Complex64>
80
84
  *
81
- * var re = real( z );
85
+ * var re = realf( z );
82
86
  * // returns 1.0
83
87
  *
84
- * var im = imag( z );
88
+ * var im = imagf( z );
85
89
  * // returns 2.0
86
90
  */
87
91
  ndarray( N: number, x: Complex64Array, strideX: number, offsetX: number, y: Complex64Array, strideY: number, offsetY: number ): Complex64Array; // tslint:disable-line:max-line-length
@@ -99,8 +103,8 @@ interface Routine {
99
103
  *
100
104
  * @example
101
105
  * var Complex64Array = require( `@stdlib/array/complex64` );
102
- * var real = require( `@stdlib/complex/real` );
103
- * var imag = require( `@stdlib/complex/imag` );
106
+ * var realf = require( `@stdlib/complex/realf` );
107
+ * var imagf = require( `@stdlib/complex/imagf` );
104
108
  *
105
109
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
106
110
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -110,16 +114,16 @@ interface Routine {
110
114
  * var z = y.get( 0 );
111
115
  * // returns <Complex64>
112
116
  *
113
- * var re = real( z );
117
+ * var re = realf( z );
114
118
  * // returns 1.0
115
119
  *
116
- * var im = imag( z );
120
+ * var im = imagf( z );
117
121
  * // returns 2.0
118
122
  *
119
123
  * @example
120
124
  * var Complex64Array = require( `@stdlib/array/complex64` );
121
- * var real = require( `@stdlib/complex/real` );
122
- * var imag = require( `@stdlib/complex/imag` );
125
+ * var realf = require( `@stdlib/complex/realf` );
126
+ * var imagf = require( `@stdlib/complex/imagf` );
123
127
  *
124
128
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
125
129
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -129,10 +133,10 @@ interface Routine {
129
133
  * var z = y.get( 0 );
130
134
  * // returns <Complex64>
131
135
  *
132
- * var re = real( z );
136
+ * var re = realf( z );
133
137
  * // returns 1.0
134
138
  *
135
- * var im = imag( z );
139
+ * var im = imagf( z );
136
140
  * // returns 2.0
137
141
  */
138
142
  declare var ccopy: Routine;
@@ -16,6 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import Complex64Array = require( '@stdlib/array-complex64' );
19
20
  import ccopy = require( './index' );
20
21
 
21
22
 
package/lib/ccopy.js CHANGED
@@ -37,8 +37,8 @@ var Float32Array = require( '@stdlib/array-float32' );
37
37
  *
38
38
  * @example
39
39
  * var Complex64Array = require( '@stdlib/array-complex64' );
40
- * var real = require( '@stdlib/complex-real' );
41
- * var imag = require( '@stdlib/complex-imag' );
40
+ * var realf = require( '@stdlib/complex-realf' );
41
+ * var imagf = require( '@stdlib/complex-imagf' );
42
42
  *
43
43
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
44
44
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -48,10 +48,10 @@ var Float32Array = require( '@stdlib/array-float32' );
48
48
  * var z = y.get( 0 );
49
49
  * // returns <Complex64>
50
50
  *
51
- * var re = real( z );
51
+ * var re = realf( z );
52
52
  * // returns 1.0
53
53
  *
54
- * var im = imag( z );
54
+ * var im = imagf( z );
55
55
  * // returns 2.0
56
56
  */
57
57
  function ccopy( N, x, strideX, y, strideY ) {
@@ -38,8 +38,8 @@ var addon = require( './../src/addon.node' );
38
38
  *
39
39
  * @example
40
40
  * var Complex64Array = require( '@stdlib/array-complex64' );
41
- * var real = require( '@stdlib/complex-real' );
42
- * var imag = require( '@stdlib/complex-imag' );
41
+ * var realf = require( '@stdlib/complex-realf' );
42
+ * var imagf = require( '@stdlib/complex-imagf' );
43
43
  *
44
44
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
45
45
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -49,10 +49,10 @@ var addon = require( './../src/addon.node' );
49
49
  * var z = y.get( 0 );
50
50
  * // returns <Complex64>
51
51
  *
52
- * var re = real( z );
52
+ * var re = realf( z );
53
53
  * // returns 1.0
54
54
  *
55
- * var im = imag( z );
55
+ * var im = imagf( z );
56
56
  * // returns 2.0
57
57
  */
58
58
  function ccopy( N, x, strideX, y, strideY ) {
package/lib/index.js CHANGED
@@ -25,8 +25,8 @@
25
25
  *
26
26
  * @example
27
27
  * var Complex64Array = require( '@stdlib/array-complex64' );
28
- * var real = require( '@stdlib/complex-real' );
29
- * var imag = require( '@stdlib/complex-imag' );
28
+ * var realf = require( '@stdlib/complex-realf' );
29
+ * var imagf = require( '@stdlib/complex-imagf' );
30
30
  * var ccopy = require( '@stdlib/blas-base-ccopy' );
31
31
  *
32
32
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
@@ -37,16 +37,16 @@
37
37
  * var z = y.get( 0 );
38
38
  * // returns <Complex64>
39
39
  *
40
- * var re = real( z );
40
+ * var re = realf( z );
41
41
  * // returns 1.0
42
42
  *
43
- * var im = imag( z );
43
+ * var im = imagf( z );
44
44
  * // returns 2.0
45
45
  *
46
46
  * @example
47
47
  * var Complex64Array = require( '@stdlib/array-complex64' );
48
- * var real = require( '@stdlib/complex-real' );
49
- * var imag = require( '@stdlib/complex-imag' );
48
+ * var realf = require( '@stdlib/complex-realf' );
49
+ * var imagf = require( '@stdlib/complex-imagf' );
50
50
  * var ccopy = require( '@stdlib/blas-base-ccopy' );
51
51
  *
52
52
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
@@ -57,10 +57,10 @@
57
57
  * var z = y.get( 0 );
58
58
  * // returns <Complex64>
59
59
  *
60
- * var re = real( z );
60
+ * var re = realf( z );
61
61
  * // returns 1.0
62
62
  *
63
- * var im = imag( z );
63
+ * var im = imagf( z );
64
64
  * // returns 2.0
65
65
  */
66
66
 
package/lib/ndarray.js CHANGED
@@ -39,8 +39,8 @@ var Float32Array = require( '@stdlib/array-float32' );
39
39
  *
40
40
  * @example
41
41
  * var Complex64Array = require( '@stdlib/array-complex64' );
42
- * var real = require( '@stdlib/complex-real' );
43
- * var imag = require( '@stdlib/complex-imag' );
42
+ * var realf = require( '@stdlib/complex-realf' );
43
+ * var imagf = require( '@stdlib/complex-imagf' );
44
44
  *
45
45
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
46
46
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -50,10 +50,10 @@ var Float32Array = require( '@stdlib/array-float32' );
50
50
  * var z = y.get( 0 );
51
51
  * // returns <Complex64>
52
52
  *
53
- * var re = real( z );
53
+ * var re = realf( z );
54
54
  * // returns 1.0
55
55
  *
56
- * var im = imag( z );
56
+ * var im = imagf( z );
57
57
  * // returns 2.0
58
58
  */
59
59
  function ccopy( N, x, strideX, offsetX, y, strideY, offsetY ) {
@@ -40,8 +40,8 @@ var addon = require( './../src/addon.node' );
40
40
  *
41
41
  * @example
42
42
  * var Complex64Array = require( '@stdlib/array-complex64' );
43
- * var real = require( '@stdlib/complex-real' );
44
- * var imag = require( '@stdlib/complex-imag' );
43
+ * var realf = require( '@stdlib/complex-realf' );
44
+ * var imagf = require( '@stdlib/complex-imagf' );
45
45
  *
46
46
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
47
47
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -51,10 +51,10 @@ var addon = require( './../src/addon.node' );
51
51
  * var z = y.get( 0 );
52
52
  * // returns <Complex64>
53
53
  *
54
- * var re = real( z );
54
+ * var re = realf( z );
55
55
  * // returns 1.0
56
56
  *
57
- * var im = imag( z );
57
+ * var im = imagf( z );
58
58
  * // returns 2.0
59
59
  */
60
60
  function ccopy( N, x, strideX, offsetX, y, strideY, offsetY ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/blas-base-ccopy",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Copy values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,6 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@stdlib/array-float32": "^0.0.x",
45
+ "@stdlib/types": "^0.0.x",
45
46
  "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
46
47
  "@stdlib/utils-library-manifest": "^0.0.x",
47
48
  "@stdlib/utils-try-require": "^0.0.x"
package/binding.gyp DELETED
@@ -1,265 +0,0 @@
1
- # @license Apache-2.0
2
- #
3
- # Copyright (c) 2020 The Stdlib Authors.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # A `.gyp` file for building a Node.js native add-on.
18
- #
19
- # [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
20
- # [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
21
- {
22
- # List of files to include in this file:
23
- 'includes': [
24
- './include.gypi',
25
- ],
26
-
27
- # Define variables to be used throughout the configuration for all targets:
28
- 'variables': {
29
- # Target name should match the add-on export name:
30
- 'addon_target_name%': 'addon',
31
-
32
- # Fortran compiler (to override -Dfortran_compiler=<compiler>):
33
- 'fortran_compiler%': 'gfortran',
34
-
35
- # Fortran compiler flags:
36
- 'fflags': [
37
- # Specify the Fortran standard to which a program is expected to conform:
38
- '-std=f95',
39
-
40
- # Indicate that the layout is free-form source code:
41
- '-ffree-form',
42
-
43
- # Aggressive optimization:
44
- '-O3',
45
-
46
- # Enable commonly used warning options:
47
- '-Wall',
48
-
49
- # Warn if source code contains problematic language features:
50
- '-Wextra',
51
-
52
- # Warn if a procedure is called without an explicit interface:
53
- '-Wimplicit-interface',
54
-
55
- # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
56
- '-fno-underscoring',
57
-
58
- # Warn if source code contains Fortran 95 extensions and C-language constructs:
59
- '-pedantic',
60
-
61
- # Compile but do not link (output is an object file):
62
- '-c',
63
- ],
64
-
65
- # Set variables based on the host OS:
66
- 'conditions': [
67
- [
68
- 'OS=="win"',
69
- {
70
- # Define the object file suffix:
71
- 'obj': 'obj',
72
- },
73
- {
74
- # Define the object file suffix:
75
- 'obj': 'o',
76
- }
77
- ], # end condition (OS=="win")
78
- ], # end conditions
79
- }, # end variables
80
-
81
- # Define compile targets:
82
- 'targets': [
83
-
84
- # Target to generate an add-on:
85
- {
86
- # The target name should match the add-on export name:
87
- 'target_name': '<(addon_target_name)',
88
-
89
- # Define dependencies:
90
- 'dependencies': [],
91
-
92
- # Define directories which contain relevant include headers:
93
- 'include_dirs': [
94
- # Local include directory:
95
- '<@(include_dirs)',
96
- ],
97
-
98
- # List of source files:
99
- 'sources': [
100
- '<@(src_files)',
101
- ],
102
-
103
- # Settings which should be applied when a target's object files are used as linker input:
104
- 'link_settings': {
105
- # Define libraries:
106
- 'libraries': [
107
- '<@(libraries)',
108
- ],
109
-
110
- # Define library directories:
111
- 'library_dirs': [
112
- '<@(library_dirs)',
113
- ],
114
- },
115
-
116
- # C/C++ compiler flags:
117
- 'cflags': [
118
- # Enable commonly used warning options:
119
- '-Wall',
120
-
121
- # Aggressive optimization:
122
- '-O3',
123
- ],
124
-
125
- # C specific compiler flags:
126
- 'cflags_c': [
127
- # Specify the C standard to which a program is expected to conform:
128
- '-std=c99',
129
- ],
130
-
131
- # C++ specific compiler flags:
132
- 'cflags_cpp': [
133
- # Specify the C++ standard to which a program is expected to conform:
134
- '-std=c++11',
135
- ],
136
-
137
- # Linker flags:
138
- 'ldflags': [],
139
-
140
- # Apply conditions based on the host OS:
141
- 'conditions': [
142
- [
143
- 'OS=="mac"',
144
- {
145
- # Linker flags:
146
- 'ldflags': [
147
- '-undefined dynamic_lookup',
148
- '-Wl,-no-pie',
149
- '-Wl,-search_paths_first',
150
- ],
151
- },
152
- ], # end condition (OS=="mac")
153
- [
154
- 'OS!="win"',
155
- {
156
- # C/C++ flags:
157
- 'cflags': [
158
- # Generate platform-independent code:
159
- '-fPIC',
160
- ],
161
- },
162
- ], # end condition (OS!="win")
163
- ], # end conditions
164
-
165
- # Define custom build actions for particular inputs:
166
- 'rules': [
167
- {
168
- # Define a rule for processing Fortran files:
169
- 'extension': 'f',
170
-
171
- # Define the pathnames to be used as inputs when performing processing:
172
- 'inputs': [
173
- # Full path of the current input:
174
- '<(RULE_INPUT_PATH)'
175
- ],
176
-
177
- # Define the outputs produced during processing:
178
- 'outputs': [
179
- # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
180
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
181
- ],
182
-
183
- # Define the rule for compiling Fortran based on the host OS:
184
- 'conditions': [
185
- [
186
- 'OS=="win"',
187
-
188
- # Rule to compile Fortran on Windows:
189
- {
190
- 'rule_name': 'compile_fortran_windows',
191
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
192
-
193
- 'process_outputs_as_sources': 0,
194
-
195
- # Define the command-line invocation:
196
- 'action': [
197
- '<(fortran_compiler)',
198
- '<@(fflags)',
199
- '<@(_inputs)',
200
- '-o',
201
- '<@(_outputs)',
202
- ],
203
- },
204
-
205
- # Rule to compile Fortran on non-Windows:
206
- {
207
- 'rule_name': 'compile_fortran_linux',
208
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
209
-
210
- 'process_outputs_as_sources': 1,
211
-
212
- # Define the command-line invocation:
213
- 'action': [
214
- '<(fortran_compiler)',
215
- '<@(fflags)',
216
- '-fPIC', # generate platform-independent code
217
- '<@(_inputs)',
218
- '-o',
219
- '<@(_outputs)',
220
- ],
221
- }
222
- ], # end condition (OS=="win")
223
- ], # end conditions
224
- }, # end rule (extension=="f")
225
- ], # end rules
226
- }, # end target <(addon_target_name)
227
-
228
- # Target to copy a generated add-on to a standard location:
229
- {
230
- 'target_name': 'copy_addon',
231
-
232
- # Declare that the output of this target is not linked:
233
- 'type': 'none',
234
-
235
- # Define dependencies:
236
- 'dependencies': [
237
- # Require that the add-on be generated before building this target:
238
- '<(addon_target_name)',
239
- ],
240
-
241
- # Define a list of actions:
242
- 'actions': [
243
- {
244
- 'action_name': 'copy_addon',
245
- 'message': 'Copying addon...',
246
-
247
- # Explicitly list the inputs in the command-line invocation below:
248
- 'inputs': [],
249
-
250
- # Declare the expected outputs:
251
- 'outputs': [
252
- '<(addon_output_dir)/<(addon_target_name).node',
253
- ],
254
-
255
- # Define the command-line invocation:
256
- 'action': [
257
- 'cp',
258
- '<(PRODUCT_DIR)/<(addon_target_name).node',
259
- '<(addon_output_dir)/<(addon_target_name).node',
260
- ],
261
- },
262
- ], # end actions
263
- }, # end target copy_addon
264
- ], # end targets
265
- }