-
-
Notifications
You must be signed in to change notification settings - Fork 870
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
base: develop
Are you sure you want to change the base?
Changes from 21 commits
56dab20
e1ce37b
4977f9e
0d164cf
d5b6478
24ef2b0
e287527
423b15e
9f25fb6
cced8c1
ff7deec
807edcd
e5dfa06
34f340e
0ddf2f3
6d25393
e17871e
557c8fc
f77a874
5de19a6
e759e6e
030c100
9d211a7
9ab0db2
16fda9d
e23d8e5
637de3c
6dc4f19
9c55af3
eae79f4
f2edc8d
877ef4e
0741336
d510064
8603015
66c1315
58b7f7e
b5a9e02
5ea9f35
6fd26dc
8817068
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is now updated, based on the new script. We now have all the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/** | ||
* @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 = [ | ||
// complex64 (2) | ||
dtypes.complex64, dtypes.complex64, | ||
dtypes.complex64, dtypes.complex128, | ||
|
||
// complex128 (1) | ||
dtypes.complex128, dtypes.complex128, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should be able to downcast from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...not just safe casts. |
||
|
||
// float32 (2) | ||
dtypes.float32, dtypes.float32, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should be able to go from |
||
dtypes.float32, dtypes.float64, | ||
|
||
// float64 (1) | ||
dtypes.float64, dtypes.float64, | ||
|
||
// int16 (4) | ||
dtypes.int16, dtypes.float32, | ||
dtypes.int16, dtypes.float64, | ||
dtypes.int16, dtypes.int16, | ||
dtypes.int16, dtypes.int32, | ||
|
||
// int32 (2) | ||
dtypes.int32, dtypes.float64, | ||
dtypes.int32, dtypes.int32, | ||
|
||
// int8 (5) | ||
dtypes.int8, dtypes.float32, | ||
dtypes.int8, dtypes.float64, | ||
dtypes.int8, dtypes.int16, | ||
dtypes.int8, dtypes.int32, | ||
dtypes.int8, dtypes.int8, | ||
|
||
// uint16 (5) | ||
dtypes.uint16, dtypes.float32, | ||
dtypes.uint16, dtypes.float64, | ||
dtypes.uint16, dtypes.int32, | ||
dtypes.uint16, dtypes.uint16, | ||
dtypes.uint16, dtypes.uint32, | ||
|
||
// uint32 (2) | ||
dtypes.uint32, dtypes.float64, | ||
dtypes.uint32, dtypes.uint32, | ||
|
||
// uint8 (7) | ||
dtypes.uint8, dtypes.float32, | ||
dtypes.uint8, dtypes.float64, | ||
dtypes.uint8, dtypes.int16, | ||
dtypes.uint8, dtypes.int32, | ||
dtypes.uint8, dtypes.uint16, | ||
dtypes.uint8, dtypes.uint32, | ||
dtypes.uint8, dtypes.uint8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This list also omits "generic" from the list of pairings. |
||
]; | ||
|
||
|
||
// EXPORTS // | ||
|
||
module.exports = types; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@stdlib/math/special/floor", | ||
"version": "0.0.0", | ||
"description": "Round a number toward negative infinity.", | ||
"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", | ||
"math.floor", | ||
"floor", | ||
"round" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// MAIN // | ||
|
||
/** | ||
* Configuration object. | ||
* | ||
* @private | ||
* @type {Object} | ||
*/ | ||
var config = { | ||
'input_dtypes': 'numeric_and_generic', | ||
'output_dtypes': 'numeric_and_generic', | ||
'excluded_dtypes': [ 'float16', 'uint8c' ] | ||
}; | ||
|
||
|
||
// EXPORTS // | ||
|
||
module.exports = config; |
Uh oh!
There was an error while loading. Please reload this page.