Skip to content

Commit 55d0952

Browse files
committed
Auto-generated commit
1 parent 3bd7398 commit 55d0952

File tree

17 files changed

+174
-48
lines changed

17 files changed

+174
-48
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191-
192-
# Cursor #
193-
##########
191+
.cursor
194192
.cursorignore
193+
.windsurfrules
194+
.clinerules
195+
196+
# AI coding agents #
197+
####################
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,51 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-09-19)
8+
9+
<section class="features">
10+
11+
### Features
12+
13+
- [`fa26ede`](https://github.com/stdlib-js/stdlib/commit/fa26ede9709b9243a4c8032f0fdc8f37b8bf6053) - add support for struct arrays
14+
15+
</section>
16+
17+
<!-- /.features -->
18+
19+
<section class="commits">
20+
21+
### Commits
22+
23+
<details>
24+
25+
- [`3c4e7f2`](https://github.com/stdlib-js/stdlib/commit/3c4e7f277c952afa9feb1dd4b4a1061c2ffda881) - **docs:** update examples _(by Athan Reines)_
26+
- [`fa26ede`](https://github.com/stdlib-js/stdlib/commit/fa26ede9709b9243a4c8032f0fdc8f37b8bf6053) - **feat:** add support for struct arrays _(by Athan Reines)_
27+
28+
</details>
29+
30+
</section>
31+
32+
<!-- /.commits -->
33+
34+
<section class="contributors">
35+
36+
### Contributors
37+
38+
A total of 1 person contributed to this release. Thank you to this contributor:
39+
40+
- Athan Reines
41+
42+
</section>
43+
44+
<!-- /.contributors -->
45+
46+
</section>
47+
48+
<!-- /.release -->
49+
550
<section class="release" id="v0.3.0">
651

752
## 0.3.0 (2024-07-29)

CONTRIBUTORS

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
99
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
1010
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
1111
Abhijit Raut <abhijitmraut8010@gmail.com>
12+
Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1213
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1314
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1415
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1517
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1618
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1719
Ahmed Khaled <kahmd1444@gmail.com>
1820
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1921
Aleksandr <112382387+alextes90@users.noreply.github.com>
2022
Ali Salesi <ali_sal1381@yahoo.com>
21-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2224
Aman Bhansali <bhansali.1@iitj.ac.in>
2325
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2426
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
@@ -27,9 +29,11 @@ Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2729
Annamalai Prabu <apfossdev@gmail.com>
2830
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2931
Anshu Kumar <contact.anshukumar@protonmail.com>
32+
Anshuman Singh <109489361+Anshumancanrock@users.noreply.github.com>
3033
Anudeep Sanapala <anudeep0306@gmail.com>
3134
Arihant Pal <arihant0pal@gmail.com>
3235
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
36+
AryanJ18 <18aryanj2006@gmail.com>
3337
Athan Reines <kgryte@gmail.com>
3438
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
3539
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
@@ -39,6 +43,7 @@ Bruno Fenzl <brunofenzl@gmail.com>
3943
Bryan Elee <rxbryn@gmail.com>
4044
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
4145
Christopher Dambamuromo <chridam@gmail.com>
46+
DUDHAT HEMIL PRAVINKUMAR <138382078+Hemil36@users.noreply.github.com>
4247
Dan Rose <danoftheroses@gmail.com>
4348
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4449
Daniel Killenberger <daniel.killenberger@gmail.com>
@@ -62,6 +67,7 @@ Frank Kovacs <fran70kk@gmail.com>
6267
GK Bishnoi <gkishan1kyt@gmail.com>
6368
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
6469
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
6571
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
6672
Gautam sharma <gautamkrishnasharma1@gmail.com>
6773
GeoDaoyu <geodaoyu@foxmail.com>
@@ -118,6 +124,8 @@ Momtchil Momtchev <momtchil@momtchev.com>
118124
Muhammad Haris <harriskhan047@outlook.com>
119125
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
120126
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
127+
NEEKUorAAYUSH <aayush10072004@gmail.com>
128+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
121129
Naresh Jagadeesan <naresh.naresh000@gmail.com>
122130
Naveen Kumar <stupiddint@gmail.com>
123131
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -130,8 +138,10 @@ Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
130138
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
131139
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
132140
Ori Miles <97595296+orimiles5@users.noreply.github.com>
141+
Payal Goswami <payalgoswami9711@gmail.com>
133142
Philipp Burckhardt <pburckhardt@outlook.com>
134143
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
144+
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
135145
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
136146
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
137147
Pranav Goswami <pranavchiku11@gmail.com>
@@ -160,26 +170,32 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
160170
Ryan Seal <splrk@users.noreply.github.com>
161171
Rylan Yang <137365285+rylany27@users.noreply.github.com>
162172
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
173+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
163174
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
164175
Sachin Raj <120590207+schnrj@users.noreply.github.com>
165176
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
166177
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
167178
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
168179
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
169180
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
181+
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
170182
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
183+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
171184
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
172185
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
173186
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
187+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
174188
Shivam Ahir <11shivam00@gmail.com>
175189
Shivansh <114570926+shiv343@users.noreply.github.com>
176190
Shraddheya Shendre <shendreshraddheya@gmail.com>
177191
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
178192
Shubham Mishra <shubh622005@gmail.com>
193+
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
179194
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
180195
Snehil Shah <snehilshah.989@gmail.com>
181196
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
182197
Spandan Barve <contact@marsian.dev>
198+
Srinivas Batthula <srinivasbatthula05.official@gmail.com>
183199
Stephannie Jiménez Gacha <steff456@hotmail.com>
184200
Suhaib Ilahi <suhaib.elahi87@gmail.com>
185201
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
@@ -189,16 +205,19 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
189205
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
190206
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
191207
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
208+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
192209
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
193210
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
194211
Utkarsh <http://utkarsh11105@gmail.com>
195212
Utkarsh Raj <rajutkarsh2505@gmail.com>
196213
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
197214
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
215+
Vansh Choudhary <iamvanshchaudhary7@gmail.com>
198216
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
199217
Varad Gupta <varadgupta21@gmail.com>
200218
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
201219
Vivek Maurya <vm8118134@gmail.com>
220+
Wendy Yuchen Sun <wendyyuchensun@gmail.com>
202221
Xiaochuan Ye <tap91624@gmail.com>
203222
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
204223
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var dtype = require( '@stdlib/ndarray-base-buffer-dtype' );
7575

7676
#### dtype( buffer )
7777

78-
Returns the [data type][@stdlib/ndarray/dtypes] of an ndarray data [`buffer`][@stdlib/ndarray/base/buffer-ctors].
78+
Returns the [data type][@stdlib/ndarray/dtypes] of an ndarray data [buffer][@stdlib/ndarray/base/buffer-ctors].
7979

8080
```javascript
8181
var Float64Array = require( '@stdlib/array-float64' );
@@ -85,7 +85,7 @@ var dt = dtype( buf );
8585
// returns 'float64'
8686
```
8787

88-
If provided an ndarray data [`buffer`][@stdlib/ndarray/base/buffer-ctors] having an unknown or unsupported [data type][@stdlib/ndarray/dtypes], the function returns `null`.
88+
If provided an ndarray data [buffer][@stdlib/ndarray/base/buffer-ctors] having an unknown or unsupported [data type][@stdlib/ndarray/dtypes], the function returns `null`.
8989

9090
```javascript
9191
var dt = dtype( 'beep' );
@@ -115,34 +115,27 @@ var dt = dtype( 'beep' );
115115
```javascript
116116
var dtypes = require( '@stdlib/ndarray-dtypes' );
117117
var bufferCtors = require( '@stdlib/ndarray-base-buffer-ctors' );
118-
var isFunction = require( '@stdlib/assert-is-function' );
119118
var dtype = require( '@stdlib/ndarray-base-buffer-dtype' );
120119

121120
// Get a list of supported ndarray buffer data types:
122-
var DTYPES = dtypes();
121+
var DTYPES = dtypes( 'integer_and_generic' );
123122

124123
// Buffer length:
125124
var len = 10;
126125

127126
// For each supported data type, create a buffer and confirm its data type...
128127
var ctor;
129-
var buf;
130128
var dt;
131129
var i;
132130
for ( i = 0; i < DTYPES.length; i++ ) {
133131
ctor = bufferCtors( DTYPES[ i ] );
134-
if ( DTYPES[ i ] === 'binary' && isFunction( ctor.alloc ) ) {
135-
buf = ctor.alloc( len );
136-
} else {
137-
buf = new ctor( len );
138-
}
139-
dt = dtype( buf );
132+
dt = dtype( new ctor( len ) );
140133
console.log( '%s == %s => %s', DTYPES[ i ], dt, DTYPES[ i ] === dt );
141134
}
142135

143136
// Try an array-like object...
144-
buf = {
145-
'length': 10
137+
var buf = {
138+
'length': len
146139
};
147140
dt = dtype( buf );
148141
console.log( '%s == %s => %s', 'generic', dt, dt === 'generic' );

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var dtype = require( './../lib' );
3131

3232
// VARIABLES //
3333

34-
var DTYPES = dtypes();
34+
var DTYPES = dtypes( 'integer_and_generic' );
3535

3636

3737
// MAIN //

dist/index.js

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

0 commit comments

Comments
 (0)