@stdlib/ndarray-base-unary-output-dtype 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +18 -4
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -196,8 +196,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
196
196
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-unary-output-dtype.svg
|
|
197
197
|
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-unary-output-dtype
|
|
198
198
|
|
|
199
|
-
[test-image]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
200
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.2.
|
|
199
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml/badge.svg?branch=v0.2.2
|
|
200
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-unary-output-dtype/actions/workflows/test.yml?query=branch:v0.2.2
|
|
201
201
|
|
|
202
202
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-unary-output-dtype/main.svg
|
|
203
203
|
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-unary-output-dtype?branch=main
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
"use strict";var g=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}};var n=g(function(E,a){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";var g=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}};var n=g(function(E,a){"use strict";var s=require("@stdlib/ndarray-base-assert-is-floating-point-data-type"),u=require("@stdlib/ndarray-base-assert-is-real-floating-point-data-type"),o=require("@stdlib/ndarray-base-assert-is-complex-floating-point-data-type"),p=require("@stdlib/ndarray-base-assert-is-integer-data-type"),d=require("@stdlib/ndarray-base-assert-is-signed-integer-data-type"),l=require("@stdlib/ndarray-base-assert-is-unsigned-integer-data-type"),v=require("@stdlib/ndarray-base-assert-is-real-data-type"),f=require("@stdlib/ndarray-base-assert-is-numeric-data-type"),_=require("@stdlib/ndarray-base-assert-is-data-type"),r=require("@stdlib/ndarray-defaults"),m=require("@stdlib/string-format"),T={floating_point:[s,r.get("dtypes.floating_point")],real_floating_point:[u,r.get("dtypes.real_floating_point")],complex_floating_point:[o,r.get("dtypes.complex_floating_point")],integer:[p,r.get("dtypes.integer")],signed_integer:[d,r.get("dtypes.signed_integer")],unsigned_integer:[l,r.get("dtypes.unsigned_integer")],real:[v,r.get("dtypes.real")],numeric:[f,r.get("dtypes.numeric")]},q=r.get("dtypes.default");function y(t,e){var i;if(e==="default")return q;if(e==="same"||e==="promoted")return t;if(e==="bool")throw new Error("not implemented");if(i=T[e],i===void 0){if(_(e))return e;throw new TypeError(m("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return i[0](t)?t:i[1]}a.exports=y});var D=n();module.exports=D;
|
|
2
|
+
/**
|
|
3
|
+
* @license Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2023 The Stdlib Authors.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
5
19
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/ndarray-base-unary-output-dtype",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Resolve the output ndarray data type for a unary function.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@stdlib/ndarray-base-assert-is-complex-floating-point-data-type": "^0.2.1",
|
|
34
34
|
"@stdlib/ndarray-base-assert-is-data-type": "^0.2.1",
|
|
35
|
-
"@stdlib/ndarray-base-assert-is-floating-point-data-type": "^0.2.
|
|
36
|
-
"@stdlib/ndarray-base-assert-is-integer-data-type": "^0.2.
|
|
37
|
-
"@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.2.
|
|
38
|
-
"@stdlib/ndarray-base-assert-is-real-data-type": "^0.2.
|
|
39
|
-
"@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.2.
|
|
40
|
-
"@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.2.
|
|
41
|
-
"@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.2.
|
|
42
|
-
"@stdlib/ndarray-defaults": "^0.
|
|
43
|
-
"@stdlib/string-format": "^0.2.
|
|
44
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.2.
|
|
35
|
+
"@stdlib/ndarray-base-assert-is-floating-point-data-type": "^0.2.2",
|
|
36
|
+
"@stdlib/ndarray-base-assert-is-integer-data-type": "^0.2.2",
|
|
37
|
+
"@stdlib/ndarray-base-assert-is-numeric-data-type": "^0.2.2",
|
|
38
|
+
"@stdlib/ndarray-base-assert-is-real-data-type": "^0.2.2",
|
|
39
|
+
"@stdlib/ndarray-base-assert-is-real-floating-point-data-type": "^0.2.2",
|
|
40
|
+
"@stdlib/ndarray-base-assert-is-signed-integer-data-type": "^0.2.2",
|
|
41
|
+
"@stdlib/ndarray-base-assert-is-unsigned-integer-data-type": "^0.2.2",
|
|
42
|
+
"@stdlib/ndarray-defaults": "^0.3.0",
|
|
43
|
+
"@stdlib/string-format": "^0.2.2",
|
|
44
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {},
|
|
47
47
|
"engines": {
|