@stdlib/blas-base-ccopy 0.0.4 → 0.0.7
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/LICENSE +0 -304
- package/NOTICE +1 -1
- package/README.md +61 -33
- package/docs/repl.txt +5 -5
- package/docs/types/index.d.ts +20 -16
- package/docs/types/test.ts +1 -0
- package/lib/ccopy.js +4 -4
- package/lib/ccopy.native.js +4 -4
- package/lib/index.js +14 -10
- package/lib/ndarray.js +4 -4
- package/lib/ndarray.native.js +4 -4
- package/package.json +4 -2
- package/CHANGELOG.md +0 -5
- package/binding.gyp +0 -265
package/LICENSE
CHANGED
|
@@ -175,307 +175,3 @@
|
|
|
175
175
|
of your accepting any such warranty or additional liability.
|
|
176
176
|
|
|
177
177
|
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
Boost Software License - Version 1.0 - August 17th, 2003
|
|
182
|
-
|
|
183
|
-
Permission is hereby granted, free of charge, to any person or organization
|
|
184
|
-
obtaining a copy of the software and accompanying documentation covered by this
|
|
185
|
-
license (the "Software") to use, reproduce, display, distribute, execute, and
|
|
186
|
-
transmit the Software, and to prepare derivative works of the Software, and to
|
|
187
|
-
permit third-parties to whom the Software is furnished to do so, all subject to
|
|
188
|
-
the following:
|
|
189
|
-
|
|
190
|
-
The copyright notices in the Software and this entire statement, including the
|
|
191
|
-
above license grant, this restriction and the following disclaimer, must be
|
|
192
|
-
included in all copies of the Software, in whole or in part, and all derivative
|
|
193
|
-
works of the Software, unless such copies or derivative works are solely in the
|
|
194
|
-
form of machine-executable object code generated by a source language processor.
|
|
195
|
-
|
|
196
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
197
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
198
|
-
FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
|
199
|
-
COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES
|
|
200
|
-
OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
201
|
-
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
DEPENDENCIES
|
|
207
|
-
|
|
208
|
-
The library links against the following external libraries, which have their own
|
|
209
|
-
licenses:
|
|
210
|
-
|
|
211
|
-
* OpenBLAS <https://raw.githubusercontent.com/xianyi/OpenBLAS/
|
|
212
|
-
def146efed8d5908ea04e22668feeab7099599a0/LICENSE>
|
|
213
|
-
|
|
214
|
-
Copyright (c) 2011-2014, The OpenBLAS Project
|
|
215
|
-
All rights reserved.
|
|
216
|
-
|
|
217
|
-
Redistribution and use in source and binary forms, with or without
|
|
218
|
-
modification, are permitted provided that the following conditions are
|
|
219
|
-
met:
|
|
220
|
-
|
|
221
|
-
1. Redistributions of source code must retain the above copyright
|
|
222
|
-
notice, this list of conditions and the following disclaimer.
|
|
223
|
-
|
|
224
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
225
|
-
notice, this list of conditions and the following disclaimer in
|
|
226
|
-
the documentation and/or other materials provided with the
|
|
227
|
-
distribution.
|
|
228
|
-
|
|
229
|
-
3. Neither the name of the OpenBLAS project nor the names of
|
|
230
|
-
its contributors may be used to endorse or promote products
|
|
231
|
-
derived from this software without specific prior written
|
|
232
|
-
permission.
|
|
233
|
-
|
|
234
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
235
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
236
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
237
|
-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
238
|
-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
239
|
-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
240
|
-
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
241
|
-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
242
|
-
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
243
|
-
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
* Electron <https://raw.githubusercontent.com/electron/electron/
|
|
247
|
-
c4cfb3e7110266b9d7ad80e1ae097c4db564501c/LICENSE>
|
|
248
|
-
|
|
249
|
-
Copyright (c) 2013-2017 GitHub Inc.
|
|
250
|
-
|
|
251
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
252
|
-
a copy of this software and associated documentation files (the
|
|
253
|
-
"Software"), to deal in the Software without restriction, including
|
|
254
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
255
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
256
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
257
|
-
the following conditions:
|
|
258
|
-
|
|
259
|
-
The above copyright notice and this permission notice shall be
|
|
260
|
-
included in all copies or substantial portions of the Software.
|
|
261
|
-
|
|
262
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
263
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
264
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
265
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
266
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
267
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
268
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
* Boost <http://www.boost.org/LICENSE_1_0.txt>
|
|
272
|
-
|
|
273
|
-
Boost Software License - Version 1.0 - August 17th, 2003
|
|
274
|
-
|
|
275
|
-
Permission is hereby granted, free of charge, to any person or organization
|
|
276
|
-
obtaining a copy of the software and accompanying documentation covered by
|
|
277
|
-
this license (the "Software") to use, reproduce, display, distribute,
|
|
278
|
-
execute, and transmit the Software, and to prepare derivative works of the
|
|
279
|
-
Software, and to permit third-parties to whom the Software is furnished to
|
|
280
|
-
do so, all subject to the following:
|
|
281
|
-
|
|
282
|
-
The copyright notices in the Software and this entire statement, including
|
|
283
|
-
the above license grant, this restriction and the following disclaimer,
|
|
284
|
-
must be included in all copies of the Software, in whole or in part, and
|
|
285
|
-
all derivative works of the Software, unless such copies or derivative
|
|
286
|
-
works are solely in the form of machine-executable object code generated by
|
|
287
|
-
a source language processor.
|
|
288
|
-
|
|
289
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
290
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
291
|
-
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
292
|
-
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
293
|
-
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
294
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
295
|
-
DEALINGS IN THE SOFTWARE.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
* Cephes <http://www.netlib.org/cephes/readme>
|
|
299
|
-
|
|
300
|
-
Copyright (c) 1984-2000 Stephen L. Moshier
|
|
301
|
-
|
|
302
|
-
Some software in this archive may be from the book _Methods and Programs for
|
|
303
|
-
Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989)
|
|
304
|
-
or from the Cephes Mathematical Library, a commercial product. In either event,
|
|
305
|
-
it is copyrighted by the author. What you see here may be used freely but it
|
|
306
|
-
comes with no support or guarantee.
|
|
307
|
-
|
|
308
|
-
Stephen L. Moshier
|
|
309
|
-
moshier@na-net.ornl.gov
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
ATTRIBUTION
|
|
314
|
-
|
|
315
|
-
The library contains implementations from the following external libraries,
|
|
316
|
-
which have their own licenses:
|
|
317
|
-
|
|
318
|
-
* FreeBSD <https://svnweb.freebsd.org/>
|
|
319
|
-
|
|
320
|
-
Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved.
|
|
321
|
-
|
|
322
|
-
Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
323
|
-
Permission to use, copy, modify, and distribute this
|
|
324
|
-
software is freely granted, provided that this notice
|
|
325
|
-
is preserved.
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
* FDLIBM <http://www.netlib.org/fdlibm/>
|
|
329
|
-
|
|
330
|
-
Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
|
|
331
|
-
|
|
332
|
-
Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
333
|
-
Permission to use, copy, modify, and distribute this
|
|
334
|
-
software is freely granted, provided that this notice
|
|
335
|
-
is preserved.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
* Go <https://raw.githubusercontent.com/golang/go/master/LICENSE>
|
|
339
|
-
|
|
340
|
-
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
341
|
-
|
|
342
|
-
Redistribution and use in source and binary forms, with or without
|
|
343
|
-
modification, are permitted provided that the following conditions are
|
|
344
|
-
met:
|
|
345
|
-
|
|
346
|
-
* Redistributions of source code must retain the above copyright
|
|
347
|
-
notice, this list of conditions and the following disclaimer.
|
|
348
|
-
* Redistributions in binary form must reproduce the above
|
|
349
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
350
|
-
in the documentation and/or other materials provided with the
|
|
351
|
-
distribution.
|
|
352
|
-
* Neither the name of Google Inc. nor the names of its
|
|
353
|
-
contributors may be used to endorse or promote products derived from
|
|
354
|
-
this software without specific prior written permission.
|
|
355
|
-
|
|
356
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
357
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
358
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
359
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
360
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
361
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
362
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
363
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
364
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
365
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
366
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
* SLATEC Common Mathematical Library <http://www.netlib.no/netlib/slatec/>
|
|
370
|
-
|
|
371
|
-
Public domain.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
* ESLint <https://raw.githubusercontent.com/eslint/eslint/master/LICENSE>
|
|
375
|
-
|
|
376
|
-
Copyright JS Foundation and other contributors, https://js.foundation
|
|
377
|
-
|
|
378
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
379
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
380
|
-
in the Software without restriction, including without limitation the rights
|
|
381
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
382
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
383
|
-
furnished to do so, subject to the following conditions:
|
|
384
|
-
|
|
385
|
-
The above copyright notice and this permission notice shall be included in
|
|
386
|
-
all copies or substantial portions of the Software.
|
|
387
|
-
|
|
388
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
389
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
390
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
391
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
392
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
393
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
394
|
-
THE SOFTWARE.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
* StatsFuns.jl <https://raw.githubusercontent.com/JuliaStats/StatsFuns.jl/
|
|
398
|
-
e66dd973650c375bc1739c820e5b96bb5bd000a8/LICENSE.md>
|
|
399
|
-
|
|
400
|
-
Copyright (c) 2015: Dahua Lin.
|
|
401
|
-
|
|
402
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
403
|
-
a copy of this software and associated documentation files (the
|
|
404
|
-
"Software"), to deal in the Software without restriction, including
|
|
405
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
406
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
407
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
408
|
-
the following conditions:
|
|
409
|
-
|
|
410
|
-
The above copyright notice and this permission notice shall be
|
|
411
|
-
included in all copies or substantial portions of the Software.
|
|
412
|
-
|
|
413
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
414
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
415
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
416
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
417
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
418
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
419
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
* SpecialFunctions.jl <https://raw.githubusercontent.com/JuliaMath/
|
|
423
|
-
SpecialFunctions.jl/02a173fbe24a61c4b392aec17a9764ac5727feb1/LICENSE>
|
|
424
|
-
|
|
425
|
-
The MIT License (MIT)
|
|
426
|
-
|
|
427
|
-
Copyright (c) 2017 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and others:
|
|
428
|
-
|
|
429
|
-
https://github.com/JuliaMath/SpecialFunctions.jl/graphs/contributors
|
|
430
|
-
|
|
431
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
432
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
433
|
-
in the Software without restriction, including without limitation the rights
|
|
434
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
435
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
436
|
-
furnished to do so, subject to the following conditions:
|
|
437
|
-
|
|
438
|
-
The above copyright notice and this permission notice shall be included in all
|
|
439
|
-
copies or substantial portions of the Software.
|
|
440
|
-
|
|
441
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
442
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
443
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
444
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
445
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
446
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
447
|
-
SOFTWARE.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
* MT19937 <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/
|
|
451
|
-
mt19937ar.c>
|
|
452
|
-
|
|
453
|
-
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
|
|
454
|
-
All rights reserved.
|
|
455
|
-
|
|
456
|
-
Redistribution and use in source and binary forms, with or without
|
|
457
|
-
modification, are permitted provided that the following conditions
|
|
458
|
-
are met:
|
|
459
|
-
|
|
460
|
-
1. Redistributions of source code must retain the above copyright
|
|
461
|
-
notice, this list of conditions and the following disclaimer.
|
|
462
|
-
|
|
463
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
464
|
-
notice, this list of conditions and the following disclaimer in the
|
|
465
|
-
documentation and/or other materials provided with the distribution.
|
|
466
|
-
|
|
467
|
-
3. The names of its contributors may not be used to endorse or promote
|
|
468
|
-
products derived from this software without specific prior written
|
|
469
|
-
permission.
|
|
470
|
-
|
|
471
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
472
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
473
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
474
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
475
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
476
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
477
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
478
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
479
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
480
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
481
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
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
|
|
52
|
-
var
|
|
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 =
|
|
62
|
+
var re = realf( z );
|
|
63
63
|
// returns 1.0
|
|
64
64
|
|
|
65
|
-
var im =
|
|
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
|
|
83
|
-
var
|
|
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 =
|
|
95
|
+
var re = realf( z );
|
|
96
96
|
// returns 5.0
|
|
97
97
|
|
|
98
|
-
var im =
|
|
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
|
|
109
|
-
var
|
|
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(
|
|
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 =
|
|
125
|
+
var re = realf( z );
|
|
129
126
|
// returns 7.0
|
|
130
127
|
|
|
131
|
-
var im =
|
|
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
|
|
142
|
-
var
|
|
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 =
|
|
149
|
+
var re = realf( z );
|
|
153
150
|
// returns 1.0
|
|
154
151
|
|
|
155
|
-
var im =
|
|
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
|
|
169
|
-
var
|
|
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
|
-
|
|
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 =
|
|
176
|
+
var re = realf( z );
|
|
183
177
|
// returns 3.0
|
|
184
178
|
|
|
185
|
-
var im =
|
|
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 © 2016-
|
|
272
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
263
273
|
|
|
264
274
|
</section>
|
|
265
275
|
|
|
@@ -272,15 +282,19 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
272
282
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/blas-base-ccopy.svg
|
|
273
283
|
[npm-url]: https://npmjs.org/package/@stdlib/blas-base-ccopy
|
|
274
284
|
|
|
275
|
-
[test-image]: https://github.com/stdlib-js/blas-base-ccopy/actions/workflows/test.yml/badge.svg
|
|
276
|
-
[test-url]: https://github.com/stdlib-js/blas-base-ccopy/actions/workflows/test.yml
|
|
285
|
+
[test-image]: https://github.com/stdlib-js/blas-base-ccopy/actions/workflows/test.yml/badge.svg?branch=v0.0.7
|
|
286
|
+
[test-url]: https://github.com/stdlib-js/blas-base-ccopy/actions/workflows/test.yml?query=branch:v0.0.7
|
|
277
287
|
|
|
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
|
+
|
|
284
298
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
285
299
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
286
300
|
|
|
@@ -288,6 +302,14 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
288
302
|
|
|
289
303
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
290
304
|
|
|
305
|
+
[umd]: https://github.com/umdjs/umd
|
|
306
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
307
|
+
|
|
308
|
+
[deno-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/deno
|
|
309
|
+
[umd-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/umd
|
|
310
|
+
[esm-url]: https://github.com/stdlib-js/blas-base-ccopy/tree/esm
|
|
311
|
+
[branches-url]: https://github.com/stdlib-js/blas-base-ccopy/blob/main/branches.md
|
|
312
|
+
|
|
291
313
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/blas-base-ccopy/main/LICENSE
|
|
292
314
|
|
|
293
315
|
[blas]: http://www.netlib.org/blas
|
|
@@ -296,7 +318,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
296
318
|
|
|
297
319
|
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
|
|
298
320
|
|
|
299
|
-
[@stdlib/array/complex64]: https://
|
|
321
|
+
[@stdlib/array/complex64]: https://www.npmjs.com/package/@stdlib/array-complex64
|
|
322
|
+
|
|
323
|
+
<!-- <related-links> -->
|
|
324
|
+
|
|
325
|
+
[@stdlib/blas/base/cswap]: https://www.npmjs.com/package/@stdlib/blas-base-cswap
|
|
326
|
+
|
|
327
|
+
<!-- </related-links> -->
|
|
300
328
|
|
|
301
329
|
</section>
|
|
302
330
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
128
|
+
> re = {{alias:@stdlib/complex/realf}}( z )
|
|
129
129
|
3.0
|
|
130
130
|
> im = {{alias:@stdlib/complex/imag}}( z )
|
|
131
131
|
4.0
|
package/docs/types/index.d.ts
CHANGED
|
@@ -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
|
|
38
|
-
* var
|
|
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 =
|
|
52
|
+
* var re = realf( z );
|
|
49
53
|
* // returns 1.0
|
|
50
54
|
*
|
|
51
|
-
* var im =
|
|
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
|
|
71
|
-
* var
|
|
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 =
|
|
85
|
+
* var re = realf( z );
|
|
82
86
|
* // returns 1.0
|
|
83
87
|
*
|
|
84
|
-
* var im =
|
|
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
|
|
103
|
-
* var
|
|
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 =
|
|
117
|
+
* var re = realf( z );
|
|
114
118
|
* // returns 1.0
|
|
115
119
|
*
|
|
116
|
-
* var im =
|
|
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
|
|
122
|
-
* var
|
|
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 =
|
|
136
|
+
* var re = realf( z );
|
|
133
137
|
* // returns 1.0
|
|
134
138
|
*
|
|
135
|
-
* var im =
|
|
139
|
+
* var im = imagf( z );
|
|
136
140
|
* // returns 2.0
|
|
137
141
|
*/
|
|
138
142
|
declare var ccopy: Routine;
|
package/docs/types/test.ts
CHANGED
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
|
|
41
|
-
* var
|
|
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 =
|
|
51
|
+
* var re = realf( z );
|
|
52
52
|
* // returns 1.0
|
|
53
53
|
*
|
|
54
|
-
* var im =
|
|
54
|
+
* var im = imagf( z );
|
|
55
55
|
* // returns 2.0
|
|
56
56
|
*/
|
|
57
57
|
function ccopy( N, x, strideX, y, strideY ) {
|
package/lib/ccopy.native.js
CHANGED
|
@@ -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
|
|
42
|
-
* var
|
|
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 =
|
|
52
|
+
* var re = realf( z );
|
|
53
53
|
* // returns 1.0
|
|
54
54
|
*
|
|
55
|
-
* var im =
|
|
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
|
|
29
|
-
* var
|
|
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 =
|
|
40
|
+
* var re = realf( z );
|
|
41
41
|
* // returns 1.0
|
|
42
42
|
*
|
|
43
|
-
* var im =
|
|
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
|
|
49
|
-
* var
|
|
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 =
|
|
60
|
+
* var re = realf( z );
|
|
61
61
|
* // returns 1.0
|
|
62
62
|
*
|
|
63
|
-
* var im =
|
|
63
|
+
* var im = imagf( z );
|
|
64
64
|
* // returns 2.0
|
|
65
65
|
*/
|
|
66
66
|
|
|
@@ -68,13 +68,17 @@
|
|
|
68
68
|
|
|
69
69
|
var join = require( 'path' ).join;
|
|
70
70
|
var tryRequire = require( '@stdlib/utils-try-require' );
|
|
71
|
-
var
|
|
71
|
+
var isError = require( '@stdlib/assert-is-error' );
|
|
72
|
+
var main = require( './main.js' );
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
// MAIN //
|
|
75
76
|
|
|
77
|
+
var ccopy;
|
|
76
78
|
var tmp = tryRequire( join( __dirname, './native.js' ) );
|
|
77
|
-
if (
|
|
79
|
+
if ( isError( tmp ) ) {
|
|
80
|
+
ccopy = main;
|
|
81
|
+
} else {
|
|
78
82
|
ccopy = tmp;
|
|
79
83
|
}
|
|
80
84
|
|
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
|
|
43
|
-
* var
|
|
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 =
|
|
53
|
+
* var re = realf( z );
|
|
54
54
|
* // returns 1.0
|
|
55
55
|
*
|
|
56
|
-
* var im =
|
|
56
|
+
* var im = imagf( z );
|
|
57
57
|
* // returns 2.0
|
|
58
58
|
*/
|
|
59
59
|
function ccopy( N, x, strideX, offsetX, y, strideY, offsetY ) {
|
package/lib/ndarray.native.js
CHANGED
|
@@ -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
|
|
44
|
-
* var
|
|
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 =
|
|
54
|
+
* var re = realf( z );
|
|
55
55
|
* // returns 1.0
|
|
56
56
|
*
|
|
57
|
-
* var im =
|
|
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.
|
|
3
|
+
"version": "0.0.7",
|
|
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": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"browser": "./lib/main.js",
|
|
18
|
-
"gypfile":
|
|
18
|
+
"gypfile": false,
|
|
19
19
|
"directories": {
|
|
20
20
|
"benchmark": "./benchmark",
|
|
21
21
|
"doc": "./docs",
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@stdlib/array-float32": "^0.0.x",
|
|
45
|
+
"@stdlib/assert-is-error": "^0.0.x",
|
|
46
|
+
"@stdlib/types": "^0.0.x",
|
|
45
47
|
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
|
|
46
48
|
"@stdlib/utils-library-manifest": "^0.0.x",
|
|
47
49
|
"@stdlib/utils-try-require": "^0.0.x"
|
package/CHANGELOG.md
DELETED
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
|
-
}
|