-
-
Notifications
You must be signed in to change notification settings - Fork 869
chore: add a poc script for generating dtype
combinations
#7773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
gunjjoshi
wants to merge
41
commits into
stdlib-js:develop
Choose a base branch
from
gunjjoshi:ndarray-abs
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,506
−22
Draft
Changes from 31 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
56dab20
chore: initial script
gunjjoshi e1ce37b
feat: add script to generate addon.c and types.js
gunjjoshi 4977f9e
refactor: remove script
gunjjoshi 0d164cf
refactor: modify script
gunjjoshi d5b6478
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi 24ef2b0
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi e287527
refactor: try out the script for ceil
gunjjoshi 423b15e
refactor: update scripts
gunjjoshi 9f25fb6
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi cced8c1
Delete lib/node_modules/@stdlib/math/special/abs/scripts/test.js
gunjjoshi ff7deec
Delete lib/node_modules/@stdlib/math/special/abs/src/addon.c.txt
gunjjoshi 807edcd
Update script.js
gunjjoshi e5dfa06
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi 34f340e
refactor: try new approach
gunjjoshi 0ddf2f3
refactor: try newer approach
gunjjoshi 6d25393
refactor: remove ceil
gunjjoshi e17871e
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi 557c8fc
chore: generate files for sin
gunjjoshi f77a874
Merge branch 'ndarray-abs' of https://github.com/gunjjoshi/stdlib int…
gunjjoshi 5de19a6
Merge branch 'stdlib-js:develop' into ndarray-abs
gunjjoshi e759e6e
refactor: update script, try it out with floor
gunjjoshi 030c100
docs: revert unwanted changes in package.json
gunjjoshi 9d211a7
refactor: modify script
gunjjoshi 9ab0db2
refactor: remove dtype_hierarchy.js
gunjjoshi 16fda9d
feat: try the script for fibonacci
gunjjoshi e23d8e5
refactor: regenerate addon.c for fibonacci
gunjjoshi 637de3c
refactor: modify script to exclude generic dtypes in addon
gunjjoshi 6dc4f19
chore: regenerate files
gunjjoshi 9c55af3
refactor: read whole scaffold object instead of only dtypes
gunjjoshi eae79f4
refactor: use new script for sin and sqrt
gunjjoshi f2edc8d
chore: add generated files for sin and sqrt
gunjjoshi 877ef4e
refactor: remove trailing comma, add generic pair
gunjjoshi 0741336
refactor: remove trailing comma, add generic pair
gunjjoshi d510064
chore: add generated files
gunjjoshi 8603015
feat: generate data.js and meta.json too
gunjjoshi 66c1315
feat: generate data.js and meta.json too
gunjjoshi 58b7f7e
chore: add generated files
gunjjoshi b5a9e02
feat: generate types.json
gunjjoshi 5ea9f35
chore: add config for generating abs
gunjjoshi 6fd26dc
chore: add scripts for generating abs
gunjjoshi 8817068
chore: add generated files for abs
gunjjoshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
lib/node_modules/@stdlib/math/special/fibonacci/lib/types.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2025 The Stdlib Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/* This is a generated file. Do not edit directly. */ | ||
|
||
/* eslint-disable array-element-newline */ | ||
|
||
'use strict'; | ||
|
||
// MODULES // | ||
|
||
var dtypes = require( '@stdlib/ndarray/dtypes' ); | ||
|
||
|
||
// MAIN // | ||
|
||
var types = [ | ||
// float32 (3) | ||
dtypes.float32, dtypes.float64, | ||
dtypes.float32, dtypes.float32, | ||
dtypes.float32, dtypes.generic, | ||
|
||
// float64 (3) | ||
dtypes.float64, dtypes.float64, | ||
dtypes.float64, dtypes.float32, | ||
dtypes.float64, dtypes.generic, | ||
|
||
// int16 (5) | ||
dtypes.int16, dtypes.float64, | ||
dtypes.int16, dtypes.float32, | ||
dtypes.int16, dtypes.int32, | ||
dtypes.int16, dtypes.int16, | ||
dtypes.int16, dtypes.generic, | ||
|
||
// int32 (3) | ||
dtypes.int32, dtypes.float64, | ||
dtypes.int32, dtypes.int32, | ||
dtypes.int32, dtypes.generic, | ||
|
||
// int8 (6) | ||
dtypes.int8, dtypes.float64, | ||
dtypes.int8, dtypes.float32, | ||
dtypes.int8, dtypes.int32, | ||
dtypes.int8, dtypes.int16, | ||
dtypes.int8, dtypes.int8, | ||
dtypes.int8, dtypes.generic, | ||
|
||
// uint16 (6) | ||
dtypes.uint16, dtypes.float64, | ||
dtypes.uint16, dtypes.float32, | ||
dtypes.uint16, dtypes.int32, | ||
dtypes.uint16, dtypes.uint32, | ||
dtypes.uint16, dtypes.uint16, | ||
dtypes.uint16, dtypes.generic, | ||
|
||
// uint32 (3) | ||
dtypes.uint32, dtypes.float64, | ||
dtypes.uint32, dtypes.uint32, | ||
dtypes.uint32, dtypes.generic, | ||
|
||
// uint8 (8) | ||
dtypes.uint8, dtypes.float64, | ||
dtypes.uint8, dtypes.float32, | ||
dtypes.uint8, dtypes.int32, | ||
dtypes.uint8, dtypes.int16, | ||
dtypes.uint8, dtypes.uint32, | ||
dtypes.uint8, dtypes.uint16, | ||
dtypes.uint8, dtypes.uint8, | ||
dtypes.uint8, dtypes.generic | ||
]; | ||
|
||
|
||
// EXPORTS // | ||
|
||
module.exports = types; |
64 changes: 64 additions & 0 deletions
64
lib/node_modules/@stdlib/math/special/fibonacci/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@stdlib/math/special/fibonacci", | ||
"version": "0.0.0", | ||
"description": "Compute the nth Fibonacci number.", | ||
"license": "Apache-2.0", | ||
"author": { | ||
"name": "The Stdlib Authors", | ||
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "The Stdlib Authors", | ||
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors" | ||
} | ||
], | ||
"main": "./lib", | ||
"browser": "./lib/main.js", | ||
"gypfile": true, | ||
"directories": { | ||
"benchmark": "./benchmark", | ||
"doc": "./docs", | ||
"example": "./examples", | ||
"lib": "./lib", | ||
"scripts": "./scripts", | ||
"src": "./src", | ||
"test": "./test" | ||
}, | ||
"types": "./docs/types", | ||
"scripts": {}, | ||
"homepage": "https://github.com/stdlib-js/stdlib", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/stdlib-js/stdlib.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/stdlib-js/stdlib/issues" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"engines": { | ||
"node": ">=0.10.0", | ||
"npm": ">2.7.0" | ||
}, | ||
"os": [ | ||
"aix", | ||
"darwin", | ||
"freebsd", | ||
"linux", | ||
"macos", | ||
"openbsd", | ||
"sunos", | ||
"win32", | ||
"windows" | ||
], | ||
"keywords": [ | ||
"stdlib", | ||
"stdmath", | ||
"mathematics", | ||
"math", | ||
"fibonacci", | ||
"fib", | ||
"number" | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.