Skip to content

Commit 6642746

Browse files
committed
Auto-generated commit
1 parent 36a7178 commit 6642746

File tree

9 files changed

+84
-15
lines changed

9 files changed

+84
-15
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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-09-18)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`b6d34c9`](https://github.com/stdlib-js/stdlib/commit/b6d34c9e53f2b877e0647914ba21ebbc6091db18) - **refactor:** use functional API to resolve dtype and relax `dtype` property requirements _(by Athan Reines)_
16+
- [`11581aa`](https://github.com/stdlib-js/stdlib/commit/11581aaca8c3cb824cbb92c0c0f80e76890bdb20) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
17+
- [`f9651e6`](https://github.com/stdlib-js/stdlib/commit/f9651e6411b4ebd3c95dcc6b46c02e6d5be009fa) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
18+
19+
</details>
20+
21+
</section>
22+
23+
<!-- /.commits -->
24+
25+
<section class="contributors">
26+
27+
### Contributors
28+
29+
A total of 2 people contributed to this release. Thank you to the following contributors:
30+
31+
- Athan Reines
32+
- Philipp Burckhardt
33+
34+
</section>
35+
36+
<!-- /.contributors -->
37+
38+
</section>
39+
40+
<!-- /.release -->
41+
542
<section class="release" id="v0.2.2">
643

744
## 0.2.2 (2024-07-28)

CONTRIBUTORS

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ 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>
@@ -23,26 +25,33 @@ Aman Bhansali <bhansali.1@iitj.ac.in>
2325
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2426
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
2527
Amit Jimiwal <amitjimiwal45@gmail.com>
28+
Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2629
Annamalai Prabu <apfossdev@gmail.com>
2730
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2831
Anshu Kumar <contact.anshukumar@protonmail.com>
32+
Anshumancanrock <109489361+Anshumancanrock@users.noreply.github.com>
2933
Anudeep Sanapala <anudeep0306@gmail.com>
34+
Arihant Pal <arihant0pal@gmail.com>
3035
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
36+
AryanJ18 <18aryanj2006@gmail.com>
3137
Athan Reines <kgryte@gmail.com>
38+
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
3239
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
3340
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
3441
Brendan Graetz <bguiz@users.noreply.github.com>
3542
Bruno Fenzl <brunofenzl@gmail.com>
3643
Bryan Elee <rxbryn@gmail.com>
3744
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
3845
Christopher Dambamuromo <chridam@gmail.com>
46+
DUDHAT HEMIL PRAVINKUMAR <138382078+Hemil36@users.noreply.github.com>
3947
Dan Rose <danoftheroses@gmail.com>
4048
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4149
Daniel Killenberger <daniel.killenberger@gmail.com>
4250
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
4351
Debashis Maharana <debashismaharana7854@gmail.com>
4452
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
4553
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
54+
Deepak Singh <negid0253@gmail.com>
4655
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4756
Dev Goel <135586571+corsairier@users.noreply.github.com>
4857
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -58,8 +67,10 @@ Frank Kovacs <fran70kk@gmail.com>
5867
GK Bishnoi <gkishan1kyt@gmail.com>
5968
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
6069
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
6171
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
6272
Gautam sharma <gautamkrishnasharma1@gmail.com>
73+
GeoDaoyu <geodaoyu@foxmail.com>
6374
Girish Garg <garggirish2020@gmail.com>
6475
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
6576
Gunj Joshi <gunjjoshi8372@gmail.com>
@@ -113,6 +124,8 @@ Momtchil Momtchev <momtchil@momtchev.com>
113124
Muhammad Haris <harriskhan047@outlook.com>
114125
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
115126
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
127+
NEEKUorAAYUSH <aayush10072004@gmail.com>
128+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
116129
Naresh Jagadeesan <naresh.naresh000@gmail.com>
117130
Naveen Kumar <stupiddint@gmail.com>
118131
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -125,8 +138,10 @@ Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
125138
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
126139
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
127140
Ori Miles <97595296+orimiles5@users.noreply.github.com>
141+
Payal Goswami <payalgoswami9711@gmail.com>
128142
Philipp Burckhardt <pburckhardt@outlook.com>
129143
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
144+
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
130145
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
131146
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
132147
Pranav Goswami <pranavchiku11@gmail.com>
@@ -155,25 +170,32 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
155170
Ryan Seal <splrk@users.noreply.github.com>
156171
Rylan Yang <137365285+rylany27@users.noreply.github.com>
157172
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
173+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
158174
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
159175
Sachin Raj <120590207+schnrj@users.noreply.github.com>
160176
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
161177
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
162178
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
163179
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
164180
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
181+
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
165182
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
183+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
166184
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
167185
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
168186
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
187+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
169188
Shivam Ahir <11shivam00@gmail.com>
189+
Shivansh <114570926+shiv343@users.noreply.github.com>
170190
Shraddheya Shendre <shendreshraddheya@gmail.com>
171191
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
172192
Shubham Mishra <shubh622005@gmail.com>
193+
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
173194
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
174195
Snehil Shah <snehilshah.989@gmail.com>
175196
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
176197
Spandan Barve <contact@marsian.dev>
198+
Srinivas Batthula <srinivasbatthula05.official@gmail.com>
177199
Stephannie Jiménez Gacha <steff456@hotmail.com>
178200
Suhaib Ilahi <suhaib.elahi87@gmail.com>
179201
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
@@ -183,21 +205,25 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
183205
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
184206
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
185207
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
208+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
186209
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
187210
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
188211
Utkarsh <http://utkarsh11105@gmail.com>
189212
Utkarsh Raj <rajutkarsh2505@gmail.com>
190213
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
191214
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
215+
Vansh Choudhary <iamvanshchaudhary7@gmail.com>
192216
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
193217
Varad Gupta <varadgupta21@gmail.com>
194218
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
195219
Vivek Maurya <vm8118134@gmail.com>
220+
Wendy Yuchen Sun <wendyyuchensun@gmail.com>
196221
Xiaochuan Ye <tap91624@gmail.com>
197222
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
198223
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
199224
Yugal Kaushik <yugalkaushik14@gmail.com>
200225
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
226+
deepak427 <62477872+deepak427@users.noreply.github.com>
201227
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
202228
ditsu <170345142+ditsus@users.noreply.github.com>
203229
ekambains <bainsinbusiness@gmail.com>

dist/index.js

Lines changed: 3 additions & 3 deletions
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 isMatrixLike = require( '@stdlib/assert-is-matrix-like' );
24+
var getDType = require( '@stdlib/ndarray-base-dtype' );
2425

2526

2627
// MAIN //
@@ -45,7 +46,7 @@ var isMatrixLike = require( '@stdlib/assert-is-matrix-like' );
4546
* // returns false
4647
*/
4748
function isFloat32MatrixLike( v ) {
48-
return ( isMatrixLike( v ) && v.dtype === 'float32' );
49+
return ( isMatrixLike( v ) && getDType( v ) === 'float32' );
4950
}
5051

5152

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-is-matrix-like": "^0.2.2"
40+
"@stdlib/assert-is-matrix-like": "^0.2.2",
41+
"@stdlib/ndarray-base-dtype": "^0.2.2"
4142
},
4243
"devDependencies": {
4344
"@stdlib/array-float32": "^0.2.2",

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tape( 'main export is a function', function test( t ) {
3838
tape( 'the function returns `true` if provided a 2-dimensional ndarray containing single-precision floating-point numbers', function test( t ) {
3939
var arr = ndarray( 'float32', new Float32Array( [ 0, 0, 0, 0 ] ), [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );
4040

41-
t.equal( isFloat32MatrixLike( arr ), true, 'returns true' );
41+
t.strictEqual( isFloat32MatrixLike( arr ), true, 'returns expected value' );
4242
t.end();
4343
});
4444

@@ -57,7 +57,7 @@ tape( 'the function returns `true` if provided a 2-dimensional ndarray-like obje
5757
'set': noop
5858
};
5959

60-
t.equal( isFloat32MatrixLike( arr ), true, 'returns true' );
60+
t.strictEqual( isFloat32MatrixLike( arr ), true, 'returns expected value' );
6161
t.end();
6262
});
6363

@@ -87,7 +87,7 @@ tape( 'the function returns `false` if not provided a 2-dimensional ndarray-like
8787
];
8888

8989
for ( i = 0; i < values.length; i++ ) {
90-
t.equal( isFloat32MatrixLike( values[i] ), false, 'returns false when provided '+values[i] );
90+
t.strictEqual( isFloat32MatrixLike( values[i] ), false, 'returns false when provided '+values[i] );
9191
}
9292
t.end();
9393
});

0 commit comments

Comments
 (0)