Skip to content

Commit df79c8f

Browse files
committed
Auto-generated commit
1 parent d6aff7e commit df79c8f

File tree

7 files changed

+31
-9
lines changed

7 files changed

+31
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-04-02)
7+
## Unreleased (2025-05-07)
88

99
<section class="features">
1010

@@ -20,6 +20,7 @@
2020

2121
### Bug Fixes
2222

23+
- [`1473377`](https://github.com/stdlib-js/stdlib/commit/1473377ac4faecd7ff1448fb7972d851c3e8b2a8) - use computed order
2324
- [`e689326`](https://github.com/stdlib-js/stdlib/commit/e68932672651e213b4cf6500100d7055b794ba82) - use correct stride
2425
- [`1375823`](https://github.com/stdlib-js/stdlib/commit/1375823f58c93aeac8c687147f40e78d52adec04) - use computed order and fix strides in examples
2526
- [`cf3f92e`](https://github.com/stdlib-js/stdlib/commit/cf3f92eddd20ec1a4106c8a34f7d7705a9a99dbc) - update include paths
@@ -34,6 +35,8 @@
3435

3536
<details>
3637

38+
- [`3dd8cb3`](https://github.com/stdlib-js/stdlib/commit/3dd8cb379ea22c4a92d610d146cdd662d3187e27) - **chore:** minor clean-up _(by Philipp Burckhardt)_
39+
- [`1473377`](https://github.com/stdlib-js/stdlib/commit/1473377ac4faecd7ff1448fb7972d851c3e8b2a8) - **fix:** use computed order _(by Athan Reines)_
3740
- [`d3289c3`](https://github.com/stdlib-js/stdlib/commit/d3289c3af88a698ed39ee5234c525cfec98c56f5) - **test:** use `zfill` rather than `gfill` to improve performance _(by Athan Reines)_
3841
- [`b96a6a2`](https://github.com/stdlib-js/stdlib/commit/b96a6a258f9c560073e252b9969095a12723074e) - **test:** add missing tests to `ndarray/base/unary` [(#5821)](https://github.com/stdlib-js/stdlib/pull/5821) _(by Muhammad Haris)_
3942
- [`ad7c705`](https://github.com/stdlib-js/stdlib/commit/ad7c7056b95d52aac386e81209fbcd7fe8eac81f) - **refactor:** format error message _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,26 @@ Dev Goel <135586571+corsairier@users.noreply.github.com>
4343
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
4444
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
4545
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
46+
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
4647
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
4748
Dominic Lim <46486515+domlimm@users.noreply.github.com>
4849
Dominik Moritz <domoritz@gmail.com>
4950
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
5051
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
5152
Frank Kovacs <fran70kk@gmail.com>
5253
GK Bishnoi <gkishan1kyt@gmail.com>
54+
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5355
Gaurav <gaurav70380@gmail.com>
5456
Gautam sharma <gautamkrishnasharma1@gmail.com>
57+
Girish Garg <garggirish2020@gmail.com>
5558
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5659
Gunj Joshi <gunjjoshi8372@gmail.com>
5760
Gururaj Gurram <gururajgurram1512@gmail.com>
5861
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
59-
Harsh <149176984+hrshya@users.noreply.github.com>
62+
Harsh <harshyadav6078@gmail.com>
6063
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
6164
Harshita Kalani <harshitakalani02@gmail.com>
65+
Hemang Choudhary <coehemang@gmail.com>
6266
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
6367
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
6468
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
@@ -75,16 +79,19 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
7579
Joris Labie <joris.labie1@gmail.com>
7680
Justin Dennison <justin1dennison@gmail.com>
7781
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
78-
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
82+
Karan Anand <anandkarancompsci@gmail.com>
83+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
7984
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8085
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
8186
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
8287
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8388
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8489
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8590
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
91+
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
8692
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
8793
MANI <77221000+Eternity0207@users.noreply.github.com>
94+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
8895
Manik Sharma <maniksharma.rke@gmail.com>
8996
Manvith M <148960168+manvith2003@users.noreply.github.com>
9097
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -95,10 +102,14 @@ Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
95102
Mohammad Kaif <mdkaifprofession@gmail.com>
96103
Momtchil Momtchev <momtchil@momtchev.com>
97104
Muhammad Haris <harriskhan047@outlook.com>
105+
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
106+
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
98107
Naresh Jagadeesan <naresh.naresh000@gmail.com>
99108
Naveen Kumar <stupiddint@gmail.com>
100109
Neeraj Pathak <neerajrpathak710@gmail.com>
110+
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
101111
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
112+
Nishant singh <38534128+Nishantsingh11@users.noreply.github.com>
102113
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
103114
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
104115
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
@@ -111,8 +122,10 @@ Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
111122
Pranav Goswami <pranavchiku11@gmail.com>
112123
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
113124
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
125+
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
114126
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
115127
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
128+
Pravesh Kunwar <praveshkunwar04@gmail.com>
116129
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
117130
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
118131
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
@@ -126,6 +139,7 @@ Rishav <115060907+rishav2404@users.noreply.github.com>
126139
Rishav Tarway <rishavtarway@gmail.com>
127140
Robert Gislason <gztown2216@yahoo.com>
128141
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
142+
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
129143
Rutam Kathale <138517416+performant23@users.noreply.github.com>
130144
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
131145
Ryan Seal <splrk@users.noreply.github.com>
@@ -168,12 +182,15 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
168182
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
169183
Yugal Kaushik <yugalkaushik14@gmail.com>
170184
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
185+
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
171186
ditsu <170345142+ditsus@users.noreply.github.com>
172187
ekambains <bainsinbusiness@gmail.com>
173188
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
189+
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
174190
lohithganni <116790357+lohithganni@users.noreply.github.com>
175191
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
176192
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
177193
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
178194
rainn <88160429+AmCodesLame@users.noreply.github.com>
179195
rei2hu <reimu@reimu.ws>
196+
zhanggy <geodaoyu@foxmail.com>

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var iterationOrder = require( '@stdlib/ndarray-base-iteration-order' );
24+
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
2425
var minmaxViewBufferIndex = require( '@stdlib/ndarray-base-minmax-view-buffer-index' );
2526
var ndarray2object = require( '@stdlib/ndarray-base-ndarraylike2object' );
2627
var format = require( '@stdlib/string-format' );
@@ -277,7 +278,7 @@ function unary( arrays, fcn ) {
277278
ioy = iterationOrder( sy ); // +/-1
278279

279280
// Determine whether we can avoid blocked iteration...
280-
if ( iox !== 0 && ioy !== 0 && iox === ioy ) {
281+
if ( iox !== 0 && ioy !== 0 && strides2order( sx ) === strides2order( sy ) ) { // eslint-disable-line max-len
281282
// Determine the minimum and maximum linear indices which are accessible by the array views:
282283
xmmv = minmaxViewBufferIndex( shx, sx, x.offset );
283284
ymmv = minmaxViewBufferIndex( shy, sy, y.offset );

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@stdlib/ndarray-base-minmax-view-buffer-index": "^0.2.2",
4848
"@stdlib/ndarray-base-ndarraylike2object": "^0.2.2",
4949
"@stdlib/ndarray-base-numel": "^0.2.2",
50+
"@stdlib/ndarray-base-strides2order": "^0.2.2",
5051
"@stdlib/ndarray-base-unary-loop-interchange-order": "^0.2.1",
5152
"@stdlib/ndarray-base-unary-tiling-block-size": "^0.2.2",
5253
"@stdlib/ndarray-base-vind2bind": "^0.2.2",

src/internal/sort2ins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* - The first array is sorted in increasing order according to absolute value.
2828
* - The algorithm has space complexity `O(1)` and worst case time complexity `O(N^2)`.
29-
* - The algorithm is efficient for small arrays (typically `N <= 20``) and is particularly efficient for sorting arrays which are already substantially sorted.
29+
* - The algorithm is efficient for small arrays (typically `N <= 20`) and is particularly efficient for sorting arrays which are already substantially sorted.
3030
* - The algorithm is **stable**, meaning that the algorithm does **not** change the order of array elements which are equal or equivalent.
3131
* - The input arrays are sorted in-place (i.e., the input arrays are mutated).
3232
*

0 commit comments

Comments
 (0)