Skip to content

Commit 9ed0e65

Browse files
committed
Auto-generated commit
1 parent 58dd2aa commit 9ed0e65

File tree

3 files changed

+83
-56
lines changed

3 files changed

+83
-56
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-02-24)
7+
## Unreleased (2025-04-23)
88

99
<section class="features">
1010

@@ -24,6 +24,7 @@
2424

2525
<details>
2626

27+
- [`245e6f9`](https://github.com/stdlib-js/stdlib/commit/245e6f9961dc243789357c90f8aec3a16bef0bc0) - **refactor:** improve type specificity and ensure consistency between ndarray types _(by Athan Reines)_
2728
- [`78bdf25`](https://github.com/stdlib-js/stdlib/commit/78bdf258a7dc0ba33814cb4b3fd1f01a560777e0) - **feat:** add output policies which provide special accommodation for the \"generic\" data type _(by Athan Reines)_
2829
- [`0e81d53`](https://github.com/stdlib-js/stdlib/commit/0e81d53283cb6d6e1d1b95194115d424cc719b80) - **style:** resolve lint error _(by Athan Reines)_
2930
- [`c82dc90`](https://github.com/stdlib-js/stdlib/commit/c82dc908163b731fd5b7f33010f697779518afda) - **feat:** add index types and reduce duplication _(by Athan Reines)_

CONTRIBUTORS

+52-2
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,31 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <[email protected]>
6+
Aarya Balwadkar <[email protected]>
67
Aayush Khanna <[email protected]>
8+
Abdelrahman Samir <[email protected]>
9+
Abdul Kaium <[email protected]>
10+
Abhay Punia <[email protected]>
711
Abhijit Raut <[email protected]>
812
Abhishek Jain <[email protected]>
913
Adarsh Palaskar <[email protected]>
1014
Aditya Sapra <[email protected]>
1115
Ahmed Atwa <[email protected]>
1216
Ahmed Kashkoush <[email protected]>
1317
Ahmed Khaled <[email protected]>
18+
Aksshay Balasubramanian <[email protected]>
1419
Aleksandr <[email protected]>
1520
Ali Salesi <[email protected]>
21+
AlyAbdelmoneim <[email protected]>
1622
Aman Bhansali <[email protected]>
23+
AmanBhadkariya <[email protected]>
1724
Amit Jimiwal <[email protected]>
25+
Anshu Kumar <[email protected]>
26+
Anshu Kumar <[email protected]>
1827
Anudeep Sanapala <[email protected]>
1928
Athan Reines <[email protected]>
2029
30+
Bhavishy Agrawal <[email protected]>
2131
Brendan Graetz <[email protected]>
2232
Bruno Fenzl <[email protected]>
2333
Bryan Elee <[email protected]>
@@ -27,26 +37,37 @@ Dan Rose <[email protected]>
2737
Daniel Killenberger <[email protected]>
2838
Daniel Yu <[email protected]>
2939
Debashis Maharana <[email protected]>
40+
Deep Trivedi <[email protected]>
3041
Desh Deepak Kant <[email protected]>
3142
43+
Dhanyabad behera <[email protected]>
3244
Dhruv Arvind Singh <[email protected]>
45+
Dhruvil Mehta <[email protected]>
46+
Dipjyoti Das <[email protected]>
3347
Divyansh Seth <[email protected]>
3448
Dominic Lim <[email protected]>
3549
Dominik Moritz <[email protected]>
3650
Dorrin Sotoudeh <[email protected]>
3751
EuniceSim142 <[email protected]>
3852
Frank Kovacs <[email protected]>
3953
GK Bishnoi <[email protected]>
54+
GURU PRASAD SHARMA <[email protected]>
4055
56+
Gautam sharma <[email protected]>
4157
Golden Kumar <[email protected]>
4258
Gunj Joshi <[email protected]>
4359
Gururaj Gurram <[email protected]>
60+
Haroon Rasheed <[email protected]>
4461
4562
4663
Harshita Kalani <[email protected]>
64+
Hemant M Mehta <[email protected]>
4765
Hridyanshu <[email protected]>
4866
Jaimin Godhani <[email protected]>
67+
Jaison D Souza <[email protected]>
68+
Jalaj Kumar <[email protected]>
4969
James Gelok <[email protected]>
70+
5071
Jaysukh Makvana <[email protected]>
5172
Jenish Thapa <[email protected]>
5273
Jithin KS <[email protected]>
@@ -55,13 +76,19 @@ Joey Reed <[email protected]>
5576
Jordan Gallivan <[email protected]>
5677
Joris Labie <[email protected]>
5778
Justin Dennison <[email protected]>
58-
Karan Anand <[email protected]>
79+
Justyn Shelby <[email protected]>
80+
Karan Anand <[email protected]>
81+
Karan Yadav <[email protected]>
5982
Karthik Prakash <[email protected]>
83+
Kaushikgtm <[email protected]>
84+
Kavyansh-Bagdi <[email protected]>
6085
Kohantika Nath <[email protected]>
6186
Krishnam Agarwal <[email protected]>
6287
Krishnendu Das <[email protected]>
6388
Kshitij-Dale <[email protected]>
6489
Lovelin Dhoni J B <[email protected]>
90+
91+
Mahfuza Humayra Mohona <[email protected]>
6592
Manik Sharma <[email protected]>
6693
Manvith M <[email protected]>
6794
Marcus Fantham <[email protected]>
@@ -72,25 +99,35 @@ Mohammad Bin Aftab <[email protected]>
7299
Mohammad Kaif <[email protected]>
73100
Momtchil Momtchev <[email protected]>
74101
Muhammad Haris <[email protected]>
102+
Muhammad Taaha Tariq <[email protected]>
103+
Muhmmad Saad <[email protected]>
75104
Naresh Jagadeesan <[email protected]>
76105
Naveen Kumar <[email protected]>
77106
Neeraj Pathak <[email protected]>
107+
NirvedMishra <[email protected]>
78108
Nishant Shinde <[email protected]>
109+
Nishant singh <[email protected]>
110+
Nishchay Rajput <[email protected]>
79111
Nithin Katta <[email protected]>
80112
Nourhan Hasan <[email protected]>
81113
Ognjen Jevremović <[email protected]>
82114
Oneday12323 <[email protected]>
83115
Ori Miles <[email protected]>
84116
Philipp Burckhardt <[email protected]>
117+
Prajjwal Bajpai <[email protected]>
85118
Prajwal Kulkarni <[email protected]>
86-
Pranav Goswami <[email protected]>
119+
Pranav Goswami <[email protected]>
87120
Pranjal Jha <[email protected]>
88121
Prashant Kumar Yadav <[email protected]>
122+
PrathamBhamare <[email protected]>
89123
Pratik Singh <[email protected]>
90124
Pratyush Kumar Chouhan <[email protected]>
125+
Pravesh Kunwar <[email protected]>
91126
Priyansh Prajapati <[email protected]>
92127
Priyanshu Agarwal <[email protected]>
128+
Pulkit Gupta <[email protected]>
93129
Pushpendra Chandravanshi <[email protected]>
130+
Rahul Kumar <[email protected]>
94131
Raunak Kumar Gupta <[email protected]>
95132
Rejoan Sardar <[email protected]>
96133
Ricky Reusser <[email protected]>
@@ -99,11 +136,17 @@ Rishav <[email protected]>
99136
Rishav Tarway <[email protected]>
100137
Robert Gislason <[email protected]>
101138
Roman Stetsyk <[email protected]>
139+
102140
Rutam Kathale <[email protected]>
103141
Ruthwik Chikoti <[email protected]>
104142
Ryan Seal <[email protected]>
105143
Rylan Yang <[email protected]>
144+
SAHIL KUMAR <[email protected]>
145+
SHIVAM YADAV <[email protected]>
146+
Sahil Goyal <[email protected]>
147+
Sai Avinash <[email protected]>
106148
Sai Srikar Dumpeti <[email protected]>
149+
Sanchay Ketan Sinha <[email protected]>
107150
Sarthak Paandey <[email protected]>
108151
Saurabh Singh <[email protected]>
109152
Seyyed Parsa Neshaei <[email protected]>
@@ -120,6 +163,7 @@ Spandan Barve <[email protected]>
120163
Stephannie Jiménez Gacha <[email protected]>
121164
Suhaib Ilahi <[email protected]>
122165
Suraj Kumar <[email protected]>
166+
Tanishq Ahuja <[email protected]>
123167
Tirtadwipa Manunggal <[email protected]>
124168
Tudor Pagu <[email protected]>
125169
Tufailahmed Bargir <[email protected]>
@@ -133,10 +177,16 @@ Vivek Maurya <[email protected]>
133177
Xiaochuan Ye <[email protected]>
134178
Yaswanth Kosuru <[email protected]>
135179
Yernar Yergaziyev <[email protected]>
180+
Yugal Kaushik <[email protected]>
136181
Yuvi Mittal <[email protected]>
182+
devshree-bhati <[email protected]>
183+
137184
ekambains <[email protected]>
138185
fadiothman22 <[email protected]>
186+
iraandrushko <[email protected]>
187+
lohithganni <[email protected]>
139188
olenkabilonizhka <[email protected]>
140189
pranav-1720 <[email protected]>
190+
rahulrangers <[email protected]>
141191
142192

index.d.ts

+29-53
Original file line numberDiff line numberDiff line change
@@ -1892,10 +1892,10 @@ declare module '@stdlib/types/ndarray' {
18921892
}
18931893

18941894
/**
1895-
* Interface describing an ndarray having a generic data type.
1895+
* Interface describing an ndarray having a homogeneous data type.
18961896
*
18971897
* @example
1898-
* const arr: genericndarray<any> = {
1898+
* const arr: typedndarray<number> = {
18991899
* 'byteLength': null,
19001900
* 'BYTES_PER_ELEMENT': null,
19011901
* 'data': [ 1, 2, 3 ],
@@ -1919,22 +1919,7 @@ declare module '@stdlib/types/ndarray' {
19191919
* }
19201920
* };
19211921
*/
1922-
interface genericndarray<T> extends ndarray {
1923-
/**
1924-
* Size (in bytes) of the array.
1925-
*/
1926-
byteLength: null;
1927-
1928-
/**
1929-
* Size (in bytes) of each array element.
1930-
*/
1931-
BYTES_PER_ELEMENT: null;
1932-
1933-
/**
1934-
* Underlying data type.
1935-
*/
1936-
dtype: 'generic';
1937-
1922+
interface typedndarray<T> extends ndarray {
19381923
/**
19391924
* A reference to the underlying data buffer.
19401925
*/
@@ -1962,14 +1947,14 @@ declare module '@stdlib/types/ndarray' {
19621947
* @param args - subscripts and value to set
19631948
* @returns ndarray instance
19641949
*/
1965-
set( ...args: Array<number|T> ): genericndarray<T>;
1950+
set( ...args: Array<number | T> ): typedndarray<T>;
19661951
}
19671952

19681953
/**
1969-
* Interface describing an ndarray having a homogeneous data type.
1954+
* Interface describing an ndarray having a generic data type.
19701955
*
19711956
* @example
1972-
* const arr: typedndarray<number> = {
1957+
* const arr: genericndarray<any> = {
19731958
* 'byteLength': null,
19741959
* 'BYTES_PER_ELEMENT': null,
19751960
* 'data': [ 1, 2, 3 ],
@@ -1993,7 +1978,22 @@ declare module '@stdlib/types/ndarray' {
19931978
* }
19941979
* };
19951980
*/
1996-
interface typedndarray<T> extends ndarray {
1981+
interface genericndarray<T> extends typedndarray<T> {
1982+
/**
1983+
* Size (in bytes) of the array.
1984+
*/
1985+
byteLength: null;
1986+
1987+
/**
1988+
* Size (in bytes) of each array element.
1989+
*/
1990+
BYTES_PER_ELEMENT: null;
1991+
1992+
/**
1993+
* Underlying data type.
1994+
*/
1995+
dtype: 'generic';
1996+
19971997
/**
19981998
* A reference to the underlying data buffer.
19991999
*/
@@ -2021,7 +2021,7 @@ declare module '@stdlib/types/ndarray' {
20212021
* @param args - subscripts and value to set
20222022
* @returns ndarray instance
20232023
*/
2024-
set( ...args: Array<number | T> ): typedndarray<T>;
2024+
set( ...args: Array<number|T> ): genericndarray<T>;
20252025
}
20262026

20272027
/**
@@ -2989,7 +2989,7 @@ declare module '@stdlib/types/ndarray' {
29892989
* }
29902990
* };
29912991
*/
2992-
interface realcomplexndarray extends ndarray {
2992+
interface realcomplexndarray extends typedndarray<number | ComplexLike> {
29932993
/**
29942994
* Size (in bytes) of the array.
29952995
*/
@@ -3010,18 +3010,6 @@ declare module '@stdlib/types/ndarray' {
30103010
*/
30113011
dtype: NumericDataType;
30123012

3013-
/**
3014-
* Returns an array element specified according to provided subscripts.
3015-
*
3016-
* ## Notes
3017-
*
3018-
* - The number of provided subscripts should equal the number of dimensions.
3019-
*
3020-
* @param args - subscripts
3021-
* @returns array element
3022-
*/
3023-
get( ...args: Array<number> ): number | ComplexLike | void;
3024-
30253013
/**
30263014
* Sets an array element specified according to provided subscripts.
30273015
*
@@ -3063,7 +3051,7 @@ declare module '@stdlib/types/ndarray' {
30633051
* }
30643052
* };
30653053
*/
3066-
interface floatcomplexndarray extends ndarray {
3054+
interface floatcomplexndarray extends typedndarray<number | ComplexLike> {
30673055
/**
30683056
* Size (in bytes) of the array.
30693057
*/
@@ -3084,18 +3072,6 @@ declare module '@stdlib/types/ndarray' {
30843072
*/
30853073
dtype: FloatingPointDataType;
30863074

3087-
/**
3088-
* Returns an array element specified according to provided subscripts.
3089-
*
3090-
* ## Notes
3091-
*
3092-
* - The number of provided subscripts should equal the number of dimensions.
3093-
*
3094-
* @param args - subscripts
3095-
* @returns array element
3096-
*/
3097-
get( ...args: Array<number> ): number | ComplexLike | void;
3098-
30993075
/**
31003076
* Sets an array element specified according to provided subscripts.
31013077
*
@@ -3137,7 +3113,7 @@ declare module '@stdlib/types/ndarray' {
31373113
* }
31383114
* };
31393115
*/
3140-
interface complexndarray extends ndarray {
3116+
interface complexndarray extends typedndarray<ComplexLike> {
31413117
/**
31423118
* Size (in bytes) of the array.
31433119
*/
@@ -3168,7 +3144,7 @@ declare module '@stdlib/types/ndarray' {
31683144
* @param args - subscripts
31693145
* @returns array element
31703146
*/
3171-
get( ...args: Array<number> ): ComplexLike | void;
3147+
get( ...args: Array<number> ): ComplexLike;
31723148

31733149
/**
31743150
* Sets an array element specified according to provided subscripts.
@@ -3237,7 +3213,7 @@ declare module '@stdlib/types/ndarray' {
32373213
* @param args - subscripts
32383214
* @returns array element
32393215
*/
3240-
get( ...args: Array<number> ): Complex128 | void;
3216+
get( ...args: Array<number> ): Complex128;
32413217

32423218
/**
32433219
* Sets an array element specified according to provided subscripts.
@@ -3306,7 +3282,7 @@ declare module '@stdlib/types/ndarray' {
33063282
* @param args - subscripts
33073283
* @returns array element
33083284
*/
3309-
get( ...args: Array<number> ): Complex64 | void;
3285+
get( ...args: Array<number> ): Complex64;
33103286

33113287
/**
33123288
* Sets an array element specified according to provided subscripts.

0 commit comments

Comments
 (0)