Skip to content

Commit b7e2fd3

Browse files
committed
Auto-generated commit
1 parent 6732d23 commit b7e2fd3

File tree

9 files changed

+119
-173
lines changed

9 files changed

+119
-173
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ indent_style = tab
121121
[*.{md,md.txt}]
122122
indent_style = space
123123
indent_size = 4
124-
trim_trailing_whitespace = false
124+
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
125125
126126
# Set properties for `usage.txt` files:
127127
[usage.txt]

.github/.keepalive

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

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-12-01)
7+
## Unreleased (2024-12-21)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`267321a`](https://github.com/stdlib-js/stdlib/commit/267321a4e77cf14de5e85b36fa223a973eb605bc) - **refactor:** update `stats/base/dcumax` native addon from C++ to C [(#4072)](https://github.com/stdlib-js/stdlib/pull/4072) _(by Aayush Khanna)_
1516
- [`9e689ff`](https://github.com/stdlib-js/stdlib/commit/9e689ffcb7c6223afc521f1e574b42f10921cf5e) - **chore:** fix indentation in manifest.json files _(by Philipp Burckhardt)_
1617
- [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_
1718
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_
@@ -26,8 +27,9 @@
2627

2728
### Contributors
2829

29-
A total of 2 people contributed to this release. Thank you to the following contributors:
30+
A total of 3 people contributed to this release. Thank you to the following contributors:
3031

32+
- Aayush Khanna
3133
- Athan Reines
3234
- Philipp Burckhardt
3335

CONTRIBUTORS

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aadish Jain <jain.aadishj@gmail.com>
56
Aayush Khanna <aayushiitbhu23@gmail.com>
67
Abhijit Raut <abhijitmraut8010@gmail.com>
78
Adarsh Palaskar <adarshpalaskar99@gmail.com>
89
Aditya Sapra <adityaework@gmail.com>
9-
AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
10+
Ahmed Atwa <Ahmedatwa866@yahoo.com>
11+
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
12+
Ahmed Khaled <kahmd1444@gmail.com>
1013
Aleksandr <112382387+alextes90@users.noreply.github.com>
1114
Ali Salesi <ali_sal1381@yahoo.com>
1215
Aman Bhansali <bhansali.1@iitj.ac.in>
@@ -23,6 +26,8 @@ Dan Rose <danoftheroses@gmail.com>
2326
Daniel Killenberger <daniel.killenberger@gmail.com>
2427
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2528
Debashis Maharana <debashismaharana7854@gmail.com>
29+
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
30+
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
2631
Dominic Lim <46486515+domlimm@users.noreply.github.com>
2732
Dominik Moritz <domoritz@gmail.com>
2833
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
@@ -45,12 +50,12 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
4550
Joris Labie <joris.labie1@gmail.com>
4651
Justin Dennison <justin1dennison@gmail.com>
4752
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
48-
Khaldon <kahmd1444@gmail.com>
4953
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
5054
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5155
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
52-
Lovelin <100030865+lovelindhoni@users.noreply.github.com>
56+
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
5357
Manik Sharma <maniksharma.rke@gmail.com>
58+
Manvith M <148960168+manvith2003@users.noreply.github.com>
5459
Marcus Fantham <mfantham@users.noreply.github.com>
5560
Matt Cochrane <matthew.cochrane.eng@gmail.com>
5661
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
@@ -59,37 +64,41 @@ Mohammad Kaif <mdkaifprofession@gmail.com>
5964
Momtchil Momtchev <momtchil@momtchev.com>
6065
Muhammad Haris <harriskhan047@outlook.com>
6166
Naresh Jagadeesan <naresh.naresh000@gmail.com>
67+
Naveen Kumar <stupiddint@gmail.com>
6268
Neeraj Pathak <neerajrpathak710@gmail.com>
63-
NightKnight <Ahmedatwa866@yahoo.com>
69+
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
6470
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
6571
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
6672
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
6773
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
74+
Ori Miles <97595296+orimiles5@users.noreply.github.com>
6875
Philipp Burckhardt <pburckhardt@outlook.com>
6976
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
7077
Pranav Goswami <goswami.4@iitj.ac.in>
71-
Praneki <97080887+PraneGIT@users.noreply.github.com>
72-
Pratik <97464067+Pratik772846@users.noreply.github.com>
78+
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
79+
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
80+
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
7381
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
74-
Priyansh <88396544+itsspriyansh@users.noreply.github.com>
82+
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
83+
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
7584
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
76-
RISHAV <115060907+rishav2404@users.noreply.github.com>
7785
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
7886
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
7987
Ricky Reusser <rsreusser@gmail.com>
8088
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
89+
Rishav <115060907+rishav2404@users.noreply.github.com>
8190
Robert Gislason <gztown2216@yahoo.com>
8291
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
83-
Rutam <138517416+performant23@users.noreply.github.com>
92+
Rutam Kathale <138517416+performant23@users.noreply.github.com>
8493
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
8594
Ryan Seal <splrk@users.noreply.github.com>
8695
Rylan Yang <137365285+rylany27@users.noreply.github.com>
8796
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
88-
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
97+
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
8998
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
9099
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
91100
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
92-
Shivam <11shivam00@gmail.com>
101+
Shivam Ahir <11shivam00@gmail.com>
93102
Shraddheya Shendre <shendreshraddheya@gmail.com>
94103
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
95104
Shubham Mishra <shubh622005@gmail.com>
@@ -98,7 +107,7 @@ Snehil Shah <snehilshah.989@gmail.com>
98107
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
99108
Spandan Barve <contact@marsian.dev>
100109
Stephannie Jiménez Gacha <steff456@hotmail.com>
101-
Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com>
110+
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
102111
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
103112
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
104113
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
@@ -108,12 +117,10 @@ UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
108117
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
109118
Varad Gupta <varadgupta21@gmail.com>
110119
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
120+
Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
111121
Xiaochuan Ye <tap91624@gmail.com>
122+
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
112123
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
113-
naveen <stupiddint@gmail.com>
114-
nishant-s7 <97207366+nishant-s7@users.noreply.github.com>
115124
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
116-
orimiles5 <97595296+orimiles5@users.noreply.github.com>
117125
rainn <88160429+AmCodesLame@users.noreply.github.com>
118126
rei2hu <reimu@reimu.ws>
119-
yaswanth <116426380+yaswanthkosuru@users.noreply.github.com>

include.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Source files:
3838
'src_files': [
39-
'<(src_dir)/addon.cpp',
39+
'<(src_dir)/addon.c',
4040
'<!@(node -e "var arr = require(\'@stdlib/utils-library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).src; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
4141
],
4242

manifest.json

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"options": {},
2+
"options": {
3+
"task": "build"
4+
},
35
"fields": [
46
{
57
"field": "src",
@@ -24,6 +26,45 @@
2426
],
2527
"confs": [
2628
{
29+
"task": "build",
30+
"src": [
31+
"./src/dcumax.c"
32+
],
33+
"include": [
34+
"./include"
35+
],
36+
"libraries": [
37+
"-lm"
38+
],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math-base-assert-is-positive-zero",
42+
"@stdlib/math-base-assert-is-nan",
43+
"@stdlib/napi-export",
44+
"@stdlib/napi-argv",
45+
"@stdlib/napi-argv-int64",
46+
"@stdlib/napi-argv-strided-float64array"
47+
]
48+
},
49+
{
50+
"task": "benchmark",
51+
"src": [
52+
"./src/dcumax.c"
53+
],
54+
"include": [
55+
"./include"
56+
],
57+
"libraries": [
58+
"-lm"
59+
],
60+
"libpath": [],
61+
"dependencies": [
62+
"@stdlib/math-base-assert-is-positive-zero",
63+
"@stdlib/math-base-assert-is-nan"
64+
]
65+
},
66+
{
67+
"task": "examples",
2768
"src": [
2869
"./src/dcumax.c"
2970
],

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"@stdlib/assert-is-error": "^0.2.2",
4545
"@stdlib/math-base-assert-is-nan": "^0.2.2",
4646
"@stdlib/math-base-assert-is-positive-zero": "^0.2.2",
47+
"@stdlib/napi-argv": "^0.2.2",
48+
"@stdlib/napi-argv-int64": "^0.2.2",
49+
"@stdlib/napi-argv-strided-float64array": "^0.2.2",
50+
"@stdlib/napi-export": "^0.2.2",
4751
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",
4852
"@stdlib/utils-library-manifest": "^0.2.2",
4953
"@stdlib/utils-try-require": "^0.2.2"

src/addon.c

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2024 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
#include "stdlib/stats/base/dcumax.h"
20+
#include "stdlib/napi/export.h"
21+
#include "stdlib/napi/argv.h"
22+
#include "stdlib/napi/argv_int64.h"
23+
#include "stdlib/napi/argv_strided_float64array.h"
24+
#include <node_api.h>
25+
26+
/**
27+
* Receives JavaScript callback invocation data.
28+
*
29+
* @param env environment under which the function is invoked
30+
* @param info callback data
31+
* @return Node-API value
32+
*/
33+
static napi_value addon( napi_env env, napi_callback_info info ) {
34+
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
35+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
36+
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
37+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
38+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
39+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
40+
stdlib_strided_dcumax( N, X, strideX, Y, strideY );
41+
return NULL;
42+
}
43+
44+
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 commit comments

Comments
 (0)