@stdlib/complex-base 0.0.1 → 0.1.0
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/CITATION.cff +30 -0
- package/README.md +14 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +7 -0
- package/docs/types/index.d.ts +1 -1
- package/package.json +17 -17
- package/docs/types/test.ts +0 -29
package/CITATION.cff
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: stdlib
|
|
3
|
+
message: >-
|
|
4
|
+
If you use this software, please cite it using the
|
|
5
|
+
metadata from this file.
|
|
6
|
+
|
|
7
|
+
type: software
|
|
8
|
+
|
|
9
|
+
authors:
|
|
10
|
+
- name: The Stdlib Authors
|
|
11
|
+
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
+
|
|
13
|
+
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
+
url: https://stdlib.io
|
|
15
|
+
|
|
16
|
+
abstract: |
|
|
17
|
+
Standard library for JavaScript and Node.js.
|
|
18
|
+
|
|
19
|
+
keywords:
|
|
20
|
+
- JavaScript
|
|
21
|
+
- Node.js
|
|
22
|
+
- TypeScript
|
|
23
|
+
- standard library
|
|
24
|
+
- scientific computing
|
|
25
|
+
- numerical computing
|
|
26
|
+
- statistical computing
|
|
27
|
+
|
|
28
|
+
license: Apache-2.0 AND BSL-1.0
|
|
29
|
+
|
|
30
|
+
date-released: 2016
|
package/README.md
CHANGED
|
@@ -18,6 +18,17 @@ limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
-->
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
<details>
|
|
23
|
+
<summary>
|
|
24
|
+
About stdlib...
|
|
25
|
+
</summary>
|
|
26
|
+
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
|
|
27
|
+
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
|
|
28
|
+
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
|
|
29
|
+
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
|
|
30
|
+
</details>
|
|
31
|
+
|
|
21
32
|
# Base Complex
|
|
22
33
|
|
|
23
34
|
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
@@ -142,8 +153,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
142
153
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/complex-base.svg
|
|
143
154
|
[npm-url]: https://npmjs.org/package/@stdlib/complex-base
|
|
144
155
|
|
|
145
|
-
[test-image]: https://github.com/stdlib-js/complex-base/actions/workflows/test.yml/badge.svg?branch=v0.0
|
|
146
|
-
[test-url]: https://github.com/stdlib-js/complex-base/actions/workflows/test.yml?query=branch:v0.0
|
|
156
|
+
[test-image]: https://github.com/stdlib-js/complex-base/actions/workflows/test.yml/badge.svg?branch=v0.1.0
|
|
157
|
+
[test-url]: https://github.com/stdlib-js/complex-base/actions/workflows/test.yml?query=branch:v0.1.0
|
|
147
158
|
|
|
148
159
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-base/main.svg
|
|
149
160
|
[coverage-url]: https://codecov.io/github/stdlib-js/complex-base?branch=main
|
|
@@ -156,7 +167,7 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
156
167
|
-->
|
|
157
168
|
|
|
158
169
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
159
|
-
[chat-url]: https://gitter.im
|
|
170
|
+
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
|
|
160
171
|
|
|
161
172
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
162
173
|
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var e=require('@stdlib/utils-define-read-only-property/dist'),r={};e(r,"cast",require('@stdlib/complex-base-cast-return/dist'));e(r,"wrap",require('@stdlib/complex-base-wrap-function/dist'));module.exports=r;
|
|
2
|
+
/** @license Apache-2.0 */
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../lib/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2022 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name cast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/complex/base/cast-return}\n*/\nsetReadOnly( ns, 'cast', require( '@stdlib/complex-base-cast-return' ) );\n\n/**\n* @name wrap\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/complex/base/wrap-function}\n*/\nsetReadOnly( ns, 'wrap', require( '@stdlib/complex-base-wrap-function' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
|
|
5
|
+
"mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,OAAQ,QAAS,kCAAmC,CAAE,EASvED,EAAaC,EAAI,OAAQ,QAAS,oCAAqC,CAAE,EAKzE,OAAO,QAAUA",
|
|
6
|
+
"names": ["setReadOnly", "ns"]
|
|
7
|
+
}
|
package/docs/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/complex-base",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Base (i.e., lower-level) complex number functions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@stdlib/complex-base-cast-return": "^0.0.
|
|
40
|
-
"@stdlib/complex-base-wrap-function": "^0.0
|
|
41
|
-
"@stdlib/utils-define-read-only-property": "^0.0
|
|
39
|
+
"@stdlib/complex-base-cast-return": "^0.0.1",
|
|
40
|
+
"@stdlib/complex-base-wrap-function": "^0.1.0",
|
|
41
|
+
"@stdlib/utils-define-read-only-property": "^0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@stdlib/assert-is-function": "^0.0
|
|
45
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.0
|
|
46
|
-
"@stdlib/bench": "^0.0
|
|
47
|
-
"@stdlib/complex-float32": "^0.0
|
|
48
|
-
"@stdlib/complex-imagf": "^0.0
|
|
49
|
-
"@stdlib/complex-realf": "^0.0
|
|
50
|
-
"@stdlib/math-base-assert-is-nanf": "^0.0
|
|
51
|
-
"@stdlib/math-base-ops-addf": "^0.0.
|
|
52
|
-
"@stdlib/math-base-ops-caddf": "^0.0.
|
|
53
|
-
"@stdlib/string-format": "^0.0
|
|
54
|
-
"@stdlib/utils-keys": "^0.0.
|
|
44
|
+
"@stdlib/assert-is-function": "^0.1.0",
|
|
45
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
|
|
46
|
+
"@stdlib/bench": "^0.1.0",
|
|
47
|
+
"@stdlib/complex-float32": "^0.1.0",
|
|
48
|
+
"@stdlib/complex-imagf": "^0.1.0",
|
|
49
|
+
"@stdlib/complex-realf": "^0.1.0",
|
|
50
|
+
"@stdlib/math-base-assert-is-nanf": "^0.1.0",
|
|
51
|
+
"@stdlib/math-base-ops-addf": "^0.0.1",
|
|
52
|
+
"@stdlib/math-base-ops-caddf": "^0.0.1",
|
|
53
|
+
"@stdlib/string-format": "^0.1.0",
|
|
54
|
+
"@stdlib/utils-keys": "^0.0.7",
|
|
55
55
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
56
56
|
"istanbul": "^0.4.1",
|
|
57
57
|
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"base"
|
|
84
84
|
],
|
|
85
85
|
"funding": {
|
|
86
|
-
"type": "
|
|
87
|
-
"url": "https://
|
|
86
|
+
"type": "opencollective",
|
|
87
|
+
"url": "https://opencollective.com/stdlib"
|
|
88
88
|
}
|
|
89
89
|
}
|
package/docs/types/test.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @license Apache-2.0
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2022 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
|
-
/* tslint:disable:no-unused-expression */
|
|
20
|
-
|
|
21
|
-
import ns = require( './index' );
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// TESTS //
|
|
25
|
-
|
|
26
|
-
// The exported value is the expected interface...
|
|
27
|
-
{
|
|
28
|
-
ns; // $ExpectType Namespace
|
|
29
|
-
}
|