-
-
Couldn't load subscription status.
- Fork 921
chore: add structured package data for math/base/special/cabs
#8267
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
Merged
+142
−1
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
07ab670
chore: add structured package data for `math/base/special/cabs`
nakul-krishnakumar 0edf6d1
chore: updated according to code review
nakul-krishnakumar dcff014
chore: update according to code review
nakul-krishnakumar 90295ae
docs: update descriptions
kgryte 6934cb3
docs: update descriptions
kgryte 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,5 +66,141 @@ | |
| "complex", | ||
| "cmplx", | ||
| "number" | ||
| ] | ||
| ], | ||
| "__stdlib__": { | ||
| "scaffold": { | ||
| "$schema": "math/[email protected]", | ||
| "base_alias": "cabs", | ||
| "alias": "cabs", | ||
| "pkg_desc": "compute the absolute value of a complex number", | ||
| "desc": "computes the absolute value of a complex number", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "short_desc": "absolute value", | ||
| "parameters": [ | ||
| { | ||
| "name": "z", | ||
| "desc": "input value", | ||
| "type": { | ||
| "javascript": "Complex128", | ||
| "jsdoc": "Complex128", | ||
| "c": "stdlib_complex128_t", | ||
| "dtype": "complex128" | ||
| }, | ||
| "domain": null, | ||
| "rand": { | ||
| "prng": "random/base/uniform", | ||
| "parameters": [ | ||
| [ | ||
| -10, | ||
| 10 | ||
| ], | ||
| [ | ||
| -10, | ||
| 10 | ||
| ] | ||
| ] | ||
| }, | ||
| "example_values": [ | ||
gunjjoshi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| "re": -3.14, | ||
| "im": -1.5 | ||
| }, | ||
| { | ||
| "re": 0, | ||
| "im": 0 | ||
| }, | ||
| { | ||
| "re": -1.5, | ||
| "im": 2.5 | ||
| }, | ||
| { | ||
| "re": 2.5, | ||
| "im": -1.5 | ||
| }, | ||
| { | ||
| "re": 0, | ||
| "im": -3.7 | ||
| }, | ||
| { | ||
| "re": 4.2, | ||
| "im": 0 | ||
| }, | ||
| { | ||
| "re": 21.2, | ||
| "im": 3 | ||
| }, | ||
| { | ||
| "re": 11, | ||
| "im": -5 | ||
| }, | ||
| { | ||
| "re": 33, | ||
| "im": -14.67 | ||
| }, | ||
| { | ||
| "re": -42, | ||
| "im": 9.3 | ||
| }, | ||
| { | ||
| "re": -3, | ||
| "im": 3 | ||
| }, | ||
| { | ||
| "re": 73, | ||
| "im": 31 | ||
| }, | ||
| { | ||
| "re": -2.45, | ||
| "im": 1.23 | ||
| }, | ||
| { | ||
| "re": 2.45, | ||
| "im": -1.23 | ||
| }, | ||
| { | ||
| "re": 1.77, | ||
| "im": -3.14 | ||
| }, | ||
| { | ||
| "re": -7.5, | ||
| "im": 8.2 | ||
| }, | ||
| { | ||
| "re": 5.5, | ||
| "im": -12.3 | ||
| }, | ||
| { | ||
| "re": -15.8, | ||
| "im": 0.4 | ||
| }, | ||
| { | ||
| "re": 0.99, | ||
| "im": -0.99 | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "output_policy": "real_floating_point_and_generic", | ||
| "returns": { | ||
| "desc": "absolute value", | ||
| "type": { | ||
| "javascript": "number", | ||
| "jsdoc": "number", | ||
| "c": "double", | ||
| "dtype": "float64" | ||
| } | ||
| }, | ||
| "keywords": [ | ||
| "abs", | ||
| "absolute", | ||
| "magnitude", | ||
| "modulus", | ||
| "complex", | ||
gunjjoshi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "cmplx", | ||
| "number" | ||
| ], | ||
| "extra_keywords": [ | ||
| "math.abs" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
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.