Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Sep 26, 2024
1 parent 482aef2 commit f35f3f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ A total of 7 people contributed to this release. Thank you to the following cont

<details>

- [`7b02c16`](https://github.com/stdlib-js/stdlib/commit/7b02c160d8c9ecf6742ea0178c733f938e0c94c4) - **chore:** minor clean-up _(by Philipp Burckhardt)_
- [`6207381`](https://github.com/stdlib-js/stdlib/commit/62073818e83d5bdd87b2b8ffea18a43767f1ae29) - **chore:** minor clean-up _(by Philipp Burckhardt)_
- [`bffda37`](https://github.com/stdlib-js/stdlib/commit/bffda37bf1104bc6e62776ee811c76873edf5461) - **refactor:** use `array/little-endian-factory` _(by Athan Reines)_
- [`5a2c12b`](https://github.com/stdlib-js/stdlib/commit/5a2c12bd3973e3b3a6f5e971ecac17c391570e60) - **feat:** add `Float64ArrayFE` and `Float64ArrayLE` to namespace _(by Athan Reines)_
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Christopher Dambamuromo <[email protected]>
Dan Rose <[email protected]>
Daniel Killenberger <[email protected]>
Daniel Yu <[email protected]>
DebashisMaharana <[email protected].com>
Debashis Maharana <debashismaharana7854@gmail.com>
Dominik Moritz <[email protected]>
Dorrin Sotoudeh <[email protected]>
EuniceSim142 <[email protected]>
Expand Down
5 changes: 2 additions & 3 deletions base/cusome/lib/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function indexed( x, n, y, stride, offset ) {
}

/**
* Cumulatively tests whether at least `n` array elements in accessor array are truthy.
* Cumulatively tests whether at least `n` array elements in an accessor array are truthy.
*
* @private
* @param {Object} x - input array object
Expand Down Expand Up @@ -128,15 +128,14 @@ function accessors( x, n, y, stride, offset ) {
flg = true;
}
}

yset( ydata, io, flg );
io += stride;
}
return ydata;
}

/**
* Cumulatively tests whether at least `n` array elements in a provided complex number are truthy and assigns results to provided output array.
* Cumulatively tests whether at least `n` array elements in a provided complex number array are truthy.
*
* @private
* @param {Collection} x - array containing interleaved real and imaginary components
Expand Down
14 changes: 5 additions & 9 deletions base/cusome/test/test.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

/* eslint-disable max-len */

'use strict';

// MODULES //
Expand Down Expand Up @@ -166,9 +168,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
y = [ false, null, false, null, false, null, false, null, false, null ];

actual = cusome( x, 2, y, 2, 0 );
expected = [
false, null, false, null, false, null, false, null, false, null
];
expected = [ false, null, false, null, false, null, false, null, false, null ];

t.strictEqual( actual, y, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );
Expand Down Expand Up @@ -209,9 +209,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
var x;
var y;

x = new Complex128Array([
1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0
]);
x = new Complex128Array([ 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0 ]);
y = [ false, true, false, true, false ];

actual = cusome( x, 1, y, 1, 0 );
Expand All @@ -220,9 +218,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
t.strictEqual( actual, y, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Complex128Array([
0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0
]);
x = new Complex128Array([ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0 ]);
y = [ false, null, false, null, false, null, false, null, false, null ];

actual = cusome( x, 2, y, 2, 0 );
Expand Down

0 comments on commit f35f3f8

Please sign in to comment.