Skip to content

Commit 0858dd8

Browse files
committed
Auto-generated commit
1 parent 3821130 commit 0858dd8

30 files changed

Lines changed: 3849 additions & 44 deletions

‎CHANGELOG.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-11-15)
7+
## Unreleased (2026-11-18)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`1435afa`](https://github.com/stdlib-js/stdlib/commit/1435afaf064f7cc491a0dde896ab7c9f41f27652) - add various methods to `array/int64` [(#16684)](https://github.com/stdlib-js/stdlib/pull/16684)
1314
- [`355c33d`](https://github.com/stdlib-js/stdlib/commit/355c33d2f29c7aab23189fcfa40b5b91d6c6a547) - add `findLast` method to `array/uint64` [(#15080)](https://github.com/stdlib-js/stdlib/pull/15080)
1415
- [`cfe86c9`](https://github.com/stdlib-js/stdlib/commit/cfe86c904c8444366325368310ff1b032af7f47b) - add `findIndex` method to `array/uint64` [(#14298)](https://github.com/stdlib-js/stdlib/pull/14298)
1516
- [`2e62f0a`](https://github.com/stdlib-js/stdlib/commit/2e62f0a06fdcc2be4edb82b137eff0b635cdedc6) - add `find` method to `array/uint64` [(#14270)](https://github.com/stdlib-js/stdlib/pull/14270)
1617
- [`fe61b90`](https://github.com/stdlib-js/stdlib/commit/fe61b90b220779f628444d8cefd9ef0d7751faae) - add `filter` method to `array/uint64` [(#14251)](https://github.com/stdlib-js/stdlib/pull/14251)
1718
- [`21f4296`](https://github.com/stdlib-js/stdlib/commit/21f4296680152d58a4372c021b66a91bd566c304) - add `fill` method to `array/uint64` [(#14173)](https://github.com/stdlib-js/stdlib/pull/14173)
1819
- [`7d36694`](https://github.com/stdlib-js/stdlib/commit/7d366942eabec37ee94a7e958c76de4b0bec9477) - add `every` method to `array/uint64` [(#14146)](https://github.com/stdlib-js/stdlib/pull/14146)
19-
- [`7d6191b`](https://github.com/stdlib-js/stdlib/commit/7d6191b9dc76d9f4aeefccb43672ed2fd81384f2) - add `copyWithIn` method to `array/uint64` [(#13940)](https://github.com/stdlib-js/stdlib/pull/13940)
20+
- [`7d6191b`](https://github.com/stdlib-js/stdlib/commit/7d6191b9dc76d9f4aeefccb43672ed2fd81384f2) - add `copyWithin` method to `array/uint64` [(#13940)](https://github.com/stdlib-js/stdlib/pull/13940)
2021
- [`5945917`](https://github.com/stdlib-js/stdlib/commit/59459177f3a0662a39714b8b89be4f6aefd2eed0) - add `uint64` and `int64` support for `array/base/assert/has-equal-values` [(#14238)](https://github.com/stdlib-js/stdlib/pull/14238)
2122
- [`e6ef385`](https://github.com/stdlib-js/stdlib/commit/e6ef3852ca447bfd266c34dc8250b66c261a2096) - add float16 dtype support to `array/base/assert/*` [(#15453)](https://github.com/stdlib-js/stdlib/pull/15453)
2223
- [`7bb89c2`](https://github.com/stdlib-js/stdlib/commit/7bb89c2db43b096eadb6c6405174569d843582f1) - add float16 dtype support to `array/base/assert/has-almost-same-values` [(#15028)](https://github.com/stdlib-js/stdlib/pull/15028)
@@ -115,6 +116,7 @@ A total of 2 issues were closed in this release:
115116

116117
<details>
117118

119+
- [`1435afa`](https://github.com/stdlib-js/stdlib/commit/1435afaf064f7cc491a0dde896ab7c9f41f27652) - **feat:** add various methods to `array/int64` [(#16684)](https://github.com/stdlib-js/stdlib/pull/16684) _(by Divit Jain)_
118120
- [`f91b31b`](https://github.com/stdlib-js/stdlib/commit/f91b31b6f7b190b4929ec93cd691416e5db67db3) - **docs:** update namespace table of contents [(#16635)](https://github.com/stdlib-js/stdlib/pull/16635) _(by stdlib-bot)_
119121
- [`9880230`](https://github.com/stdlib-js/stdlib/commit/988023056a9a8ba063d8e7cacc1ca864023de05f) - **test:** fix description [(#16625)](https://github.com/stdlib-js/stdlib/pull/16625) _(by Philipp Burckhardt)_
120122
- [`7dc1831`](https://github.com/stdlib-js/stdlib/commit/7dc18312d916c5f20e5b63dd45b44307093336d0) - **docs:** fix heading levels [(#16624)](https://github.com/stdlib-js/stdlib/pull/16624) _(by Philipp Burckhardt)_
@@ -124,7 +126,7 @@ A total of 2 issues were closed in this release:
124126
- [`fe61b90`](https://github.com/stdlib-js/stdlib/commit/fe61b90b220779f628444d8cefd9ef0d7751faae) - **feat:** add `filter` method to `array/uint64` [(#14251)](https://github.com/stdlib-js/stdlib/pull/14251) _(by Divit Jain, Athan Reines)_
125127
- [`21f4296`](https://github.com/stdlib-js/stdlib/commit/21f4296680152d58a4372c021b66a91bd566c304) - **feat:** add `fill` method to `array/uint64` [(#14173)](https://github.com/stdlib-js/stdlib/pull/14173) _(by Divit Jain, Athan Reines)_
126128
- [`7d36694`](https://github.com/stdlib-js/stdlib/commit/7d366942eabec37ee94a7e958c76de4b0bec9477) - **feat:** add `every` method to `array/uint64` [(#14146)](https://github.com/stdlib-js/stdlib/pull/14146) _(by Divit Jain)_
127-
- [`7d6191b`](https://github.com/stdlib-js/stdlib/commit/7d6191b9dc76d9f4aeefccb43672ed2fd81384f2) - **feat:** add `copyWithIn` method to `array/uint64` [(#13940)](https://github.com/stdlib-js/stdlib/pull/13940) _(by Divit Jain)_
129+
- [`7d6191b`](https://github.com/stdlib-js/stdlib/commit/7d6191b9dc76d9f4aeefccb43672ed2fd81384f2) - **feat:** add `copyWithin` method to `array/uint64` [(#13940)](https://github.com/stdlib-js/stdlib/pull/13940) _(by Divit Jain)_
128130
- [`38b2adb`](https://github.com/stdlib-js/stdlib/commit/38b2adb22b72f7bbf75b2a4ed423ae9da986965a) - **docs:** improve doctests for complex number instances in `array/linspace` [(#16569)](https://github.com/stdlib-js/stdlib/pull/16569) _(by Mustansir-06)_
129131
- [`d1e7d4b`](https://github.com/stdlib-js/stdlib/commit/d1e7d4bb16be8ec93a295dacf4c03cf4214b3fc3) - **docs:** update related packages sections [(#16528)](https://github.com/stdlib-js/stdlib/pull/16528) _(by stdlib-bot)_
130132
- [`8f624de`](https://github.com/stdlib-js/stdlib/commit/8f624de7eaf721da6bdb42adc299c4876a856c0f) - **style:** add missing whitespace [(#16522)](https://github.com/stdlib-js/stdlib/pull/16522) _(by Philipp Burckhardt)_

‎int64/README.md‎

Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,40 @@ z = arr.at( -100 );
278278
// returns undefined
279279
```
280280

281+
<a name="method-copy-within"></a>
282+
283+
#### Int64Array.prototype.copyWithin( target, start\[, end] )
284+
285+
Copies a sequence of elements within the array starting at `start` and ending at `end` (non-inclusive) to the position starting at `target`.
286+
287+
```javascript
288+
var arr = new Int64Array( [ -1, 2, -3, 4 ] );
289+
290+
// Copy the last two elements to the first two elements:
291+
arr.copyWithin( 0, 2 );
292+
// arr => <Int64Array>[ -3n, 4n, -3n, 4n ]
293+
```
294+
295+
By default, `end` equals the number of array elements (i.e., one more than the last array index). To limit the sequence length, provide an `end` argument.
296+
297+
```javascript
298+
var arr = new Int64Array( [ -1, 2, -3, 4 ] );
299+
300+
// Copy the first two elements to the last two elements:
301+
arr.copyWithin( 2, 0, 2 );
302+
// arr => <Int64Array>[ -1n, 2n, -1n, 2n ]
303+
```
304+
305+
When a `target`, `start`, and/or `end` index is negative, the respective index is determined relative to the last array element. The following example achieves the same behavior as the previous example:
306+
307+
```javascript
308+
var arr = new Int64Array( [ -1, 2, -3, 4 ] );
309+
310+
// Copy the first two elements to the last two elements using negative indices:
311+
arr.copyWithin( -2, -4, -2 );
312+
// arr => <Int64Array>[ -1n, 2n, -1n, 2n ]
313+
```
314+
281315
<a name="method-entries"></a>
282316

283317
#### Int64Array.prototype.entries()
@@ -316,6 +350,298 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the
316350
- **next**: function which returns an [iterator][mdn-iterator-protocol] protocol-compliant object containing the next iterated value (if one exists) assigned to a `value` property and a `done` property having a `boolean` value indicating whether the [iterator][mdn-iterator-protocol] is finished.
317351
- **return**: function which closes an [iterator][mdn-iterator-protocol] and returns a single (optional) argument in an [iterator][mdn-iterator-protocol] protocol-compliant object.
318352

353+
<a name="method-every"></a>
354+
355+
#### Int64Array.prototype.every( predicate\[, thisArg] )
356+
357+
Returns a boolean indicating whether all elements pass a test.
358+
359+
```javascript
360+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
361+
var Number = require( '@stdlib/number/ctor' );
362+
363+
function predicate( v ) {
364+
return ( isEven( Number( v ) ) );
365+
}
366+
367+
var arr = new Int64Array( [ 2, -4, 6 ] );
368+
369+
// Check whether all elements pass a test:
370+
var bool = arr.every( predicate );
371+
// returns true
372+
```
373+
374+
The `predicate` function is provided three arguments:
375+
376+
- **value**: current array element.
377+
- **index**: current array element index.
378+
- **arr**: the array on which this method was called.
379+
380+
To set the function execution context, provide a `thisArg`.
381+
382+
```javascript
383+
function predicate( v, i ) {
384+
this.count += 1;
385+
return ( i >= 0 );
386+
}
387+
388+
var arr = new Int64Array( [ 2, -4, 6 ] );
389+
390+
var context = {
391+
'count': 0
392+
};
393+
394+
var bool = arr.every( predicate, context );
395+
// returns true
396+
397+
var count = context.count;
398+
// returns 3
399+
```
400+
401+
<a name="method-fill"></a>
402+
403+
#### Int64Array.prototype.fill( value\[, start\[, end]] )
404+
405+
Fills an array from a `start` index to an `end` index (non-inclusive) with a provided `value`.
406+
407+
```javascript
408+
var Int64 = require( '@stdlib/number/int64/ctor' );
409+
410+
var arr = new Int64Array( 3 );
411+
412+
// Set all elements to the same value:
413+
arr.fill( new Int64( 1 ) );
414+
// arr => <Int64Array>[ 1n, 1n, 1n ]
415+
416+
// Fill all elements starting from the second element:
417+
arr.fill( new Int64( -2 ), 1 );
418+
// arr => <Int64Array>[ 1n, -2n, -2n ]
419+
420+
// Fill all elements from first element until the second-to-last element:
421+
arr.fill( new Int64( 3 ), 0, 2 );
422+
// arr => <Int64Array>[ 3n, 3n, -2n ]
423+
```
424+
425+
When a `start` and/or `end` index is negative, the respective index is determined relative to the last array element.
426+
427+
```javascript
428+
var Int64 = require( '@stdlib/number/int64/ctor' );
429+
430+
var arr = new Int64Array( 3 );
431+
432+
// Set all array elements, except the last element, to the same value:
433+
arr.fill( new Int64( 1 ), 0, -1 );
434+
// arr => <Int64Array>[ 1n, 1n, 0n ]
435+
```
436+
437+
<a name="method-filter"></a>
438+
439+
#### Int64Array.prototype.filter( predicate\[, thisArg] )
440+
441+
Returns a new array containing the elements of an array which pass a test implemented by a predicate function.
442+
443+
```javascript
444+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
445+
var Number = require( '@stdlib/number/ctor' );
446+
447+
function predicate( v ) {
448+
return ( isEven( Number( v ) ) );
449+
}
450+
451+
var arr = new Int64Array( [ 1, -2, 3, -4, 5, 6 ] );
452+
453+
var out = arr.filter( predicate );
454+
// returns <Int64Array>[ -2n, -4n, 6n ]
455+
456+
var len = out.length;
457+
// returns 3
458+
```
459+
460+
The `predicate` function is provided three arguments:
461+
462+
- **value**: current array element.
463+
- **index**: current array element index.
464+
- **arr**: the array on which this method was called.
465+
466+
To set the function execution context, provide a `thisArg`.
467+
468+
```javascript
469+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
470+
var Number = require( '@stdlib/number/ctor' );
471+
472+
function predicate( v, i ) {
473+
this.count += 1;
474+
return ( i >= 0 && isEven( Number( v ) ) );
475+
}
476+
477+
var arr = new Int64Array( [ 1, -2, 3, -4, 5, 6 ] );
478+
479+
var context = {
480+
'count': 0
481+
};
482+
483+
var out = arr.filter( predicate, context );
484+
// returns <Int64Array>[ -2n, -4n, 6n ]
485+
486+
var len = out.length;
487+
// returns 3
488+
489+
var count = context.count;
490+
// returns 6
491+
```
492+
493+
<a name="method-find"></a>
494+
495+
#### Int64Array.prototype.find( predicate\[, thisArg] )
496+
497+
Returns the first element in an array for which a predicate function returns a truthy value.
498+
499+
```javascript
500+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
501+
var Number = require( '@stdlib/number/ctor' );
502+
503+
function predicate( v ) {
504+
return ( isEven( Number( v ) ) );
505+
}
506+
507+
var arr = new Int64Array( [ 1, -3, -4, 5 ] );
508+
509+
var u = arr.find( predicate );
510+
// returns <Int64>[ -4n ]
511+
```
512+
513+
The `predicate` function is provided three arguments:
514+
515+
- **value**: current array element.
516+
- **index**: current array element index.
517+
- **arr**: the array on which this method was called.
518+
519+
To set the function execution context, provide a `thisArg`.
520+
521+
```javascript
522+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
523+
var Number = require( '@stdlib/number/ctor' );
524+
525+
function predicate( v, i ) {
526+
this.count += 1;
527+
return ( i >= 0 && isEven( Number( v ) ) );
528+
}
529+
530+
var arr = new Int64Array( [ 1, -3, -4, 5 ] );
531+
532+
var context = {
533+
'count': 0
534+
};
535+
536+
var u = arr.find( predicate, context );
537+
// returns <Int64>[ -4n ]
538+
539+
var count = context.count;
540+
// returns 3
541+
```
542+
543+
<a name="method-find-index"></a>
544+
545+
#### Int64Array.prototype.findIndex( predicate\[, thisArg] )
546+
547+
Returns the index of the first element in an array for which a predicate function returns a truthy value.
548+
549+
```javascript
550+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
551+
var Number = require( '@stdlib/number/ctor' );
552+
553+
function predicate( v ) {
554+
return ( isEven( Number( v ) ) );
555+
}
556+
557+
var arr = new Int64Array( [ 1, -3, -4, 6 ] );
558+
559+
var idx = arr.findIndex( predicate );
560+
// returns 2
561+
```
562+
563+
The `predicate` function is provided three arguments:
564+
565+
- **value**: current array element.
566+
- **index**: current array element index.
567+
- **arr**: the array on which this method was called.
568+
569+
To set the function execution context, provide a `thisArg`.
570+
571+
```javascript
572+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
573+
var Number = require( '@stdlib/number/ctor' );
574+
575+
function predicate( v, i ) {
576+
this.count += 1;
577+
return ( i >= 0 && isEven( Number( v ) ) );
578+
}
579+
580+
var arr = new Int64Array( [ 1, -3, 5, -7 ] );
581+
582+
var context = {
583+
'count': 0
584+
};
585+
586+
var idx = arr.findIndex( predicate, context );
587+
// returns -1
588+
589+
var count = context.count;
590+
// returns 4
591+
```
592+
593+
<a name="method-find-last"></a>
594+
595+
#### Int64Array.prototype.findLast( predicate\[, thisArg] )
596+
597+
Returns the last element in an array for which a `predicate` function returns a truthy value.
598+
599+
```javascript
600+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
601+
var Number = require( '@stdlib/number/ctor' );
602+
603+
function predicate( v ) {
604+
return ( isEven( Number( v ) ) );
605+
}
606+
607+
var arr = new Int64Array( [ -1, 2, 3, -4, 5 ] );
608+
609+
var u = arr.findLast( predicate );
610+
// returns <Int64>[ -4n ]
611+
```
612+
613+
The `predicate` function is provided three arguments:
614+
615+
- **value**: current array element.
616+
- **index**: current array element index.
617+
- **arr**: the array on which this method was called.
618+
619+
To set the function execution context, provide a `thisArg`.
620+
621+
```javascript
622+
var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
623+
var Number = require( '@stdlib/number/ctor' );
624+
625+
function predicate( v ) {
626+
this.count += 1;
627+
return ( isEven( Number( v ) ) );
628+
}
629+
630+
var arr = new Int64Array( [ -1, 2, 3, -4, 5 ] );
631+
632+
var context = {
633+
'count': 0
634+
};
635+
636+
var u = arr.findLast( predicate, context );
637+
// returns <Int64>[ -4n ]
638+
639+
var count = context.count;
640+
// returns 2
641+
```
642+
643+
If a `predicate` function never returns a truthy value, the method returns `undefined`.
644+
319645
<a name="method-get"></a>
320646

321647
#### Int64Array.prototype.get( i )

0 commit comments

Comments
 (0)