|
1 | 1 | { |
2 | | - "@stdlib/math/base/special/labs": {}, |
| 2 | + "@stdlib/math/base/special/labs": { |
| 3 | + "$schema": "math/base@v1.0", |
| 4 | + "base_alias": "abs", |
| 5 | + "alias": "labs", |
| 6 | + "pkg_desc": "compute an absolute value of a signed 32-bit integer", |
| 7 | + "desc": "computes an absolute value of a signed 32-bit integer", |
| 8 | + "short_desc": "absolute value", |
| 9 | + "parameters": [ |
| 10 | + { |
| 11 | + "name": "x", |
| 12 | + "desc": "input value", |
| 13 | + "type": { |
| 14 | + "javascript": "number", |
| 15 | + "jsdoc": "integer", |
| 16 | + "c": "int32_t", |
| 17 | + "dtype": "int32" |
| 18 | + }, |
| 19 | + "domain": [ |
| 20 | + { |
| 21 | + "min": "-infinity", |
| 22 | + "max": "infinity" |
| 23 | + } |
| 24 | + ], |
| 25 | + "rand": { |
| 26 | + "prng": "random/base/discrete-uniform", |
| 27 | + "parameters": [ |
| 28 | + -10, |
| 29 | + 10 |
| 30 | + ] |
| 31 | + }, |
| 32 | + "example_values": [ |
| 33 | + 0, |
| 34 | + -5, |
| 35 | + 2, |
| 36 | + -10, |
| 37 | + -1, |
| 38 | + 2, |
| 39 | + 3, |
| 40 | + 4, |
| 41 | + 9, |
| 42 | + -16, |
| 43 | + 25, |
| 44 | + -36, |
| 45 | + -49, |
| 46 | + 64, |
| 47 | + 81, |
| 48 | + 100, |
| 49 | + -99, |
| 50 | + 10, |
| 51 | + -50, |
| 52 | + 98 |
| 53 | + ] |
| 54 | + } |
| 55 | + ], |
| 56 | + "output_policy": "real_floating_point_and_generic", |
| 57 | + "returns": { |
| 58 | + "desc": "absolute value", |
| 59 | + "type": { |
| 60 | + "javascript": "number", |
| 61 | + "jsdoc": "integer", |
| 62 | + "c": "int32_t", |
| 63 | + "dtype": "int32" |
| 64 | + } |
| 65 | + }, |
| 66 | + "keywords": [ |
| 67 | + "abs", |
| 68 | + "labs", |
| 69 | + "absolute", |
| 70 | + "magnitude" |
| 71 | + ], |
| 72 | + "extra_keywords": [ |
| 73 | + "math.abs" |
| 74 | + ] |
| 75 | + }, |
3 | 76 | "@stdlib/number/uint8/base/identity": {}, |
4 | 77 | "@stdlib/number/uint16/base/identity": {}, |
5 | 78 | "@stdlib/number/uint32/base/identity": {}, |
|
9497 | 9570 | "math.sin" |
9498 | 9571 | ] |
9499 | 9572 | }, |
9500 | | - "@stdlib/math/base/special/invf": {}, |
9501 | | - "@stdlib/math/base/special/inv": {}, |
| 9573 | + "@stdlib/math/base/special/invf": { |
| 9574 | + "$schema": "math/base@v1.0", |
| 9575 | + "base_alias": "inv", |
| 9576 | + "alias": "invf", |
| 9577 | + "pkg_desc": "compute the multiplicative inverse of a number", |
| 9578 | + "desc": "computes the multiplicative inverse of a number", |
| 9579 | + "short_desc": "multiplicative inverse", |
| 9580 | + "parameters": [ |
| 9581 | + { |
| 9582 | + "name": "x", |
| 9583 | + "desc": "input value", |
| 9584 | + "type": { |
| 9585 | + "javascript": "number", |
| 9586 | + "jsdoc": "number", |
| 9587 | + "c": "float", |
| 9588 | + "dtype": "float32" |
| 9589 | + }, |
| 9590 | + "domain": [ |
| 9591 | + { |
| 9592 | + "min": "-infinity", |
| 9593 | + "max": "infinity" |
| 9594 | + } |
| 9595 | + ], |
| 9596 | + "rand": { |
| 9597 | + "prng": "random/base/uniform", |
| 9598 | + "parameters": [ |
| 9599 | + -10, |
| 9600 | + 10 |
| 9601 | + ] |
| 9602 | + }, |
| 9603 | + "example_values": [ |
| 9604 | + 0, |
| 9605 | + -0.01, |
| 9606 | + 0.25, |
| 9607 | + 0.5, |
| 9608 | + -1, |
| 9609 | + 2, |
| 9610 | + 3, |
| 9611 | + 4, |
| 9612 | + 9, |
| 9613 | + -16, |
| 9614 | + 25, |
| 9615 | + -36, |
| 9616 | + -49, |
| 9617 | + 64, |
| 9618 | + 81, |
| 9619 | + 100, |
| 9620 | + 0.1, |
| 9621 | + 10, |
| 9622 | + -50, |
| 9623 | + 99.99 |
| 9624 | + ] |
| 9625 | + } |
| 9626 | + ], |
| 9627 | + "output_policy": "real_floating_point_and_generic", |
| 9628 | + "returns": { |
| 9629 | + "desc": "multiplicative inverse", |
| 9630 | + "type": { |
| 9631 | + "javascript": "number", |
| 9632 | + "jsdoc": "number", |
| 9633 | + "c": "float", |
| 9634 | + "dtype": "float32" |
| 9635 | + } |
| 9636 | + }, |
| 9637 | + "keywords": [ |
| 9638 | + "inv", |
| 9639 | + "multiplicative", |
| 9640 | + "inverse", |
| 9641 | + "reciprocal" |
| 9642 | + ], |
| 9643 | + "extra_keywords": [ |
| 9644 | + "math.pow" |
| 9645 | + ] |
| 9646 | + }, |
| 9647 | + "@stdlib/math/base/special/inv": { |
| 9648 | + "$schema": "math/base@v1.0", |
| 9649 | + "base_alias": "inv", |
| 9650 | + "alias": "inv", |
| 9651 | + "pkg_desc": "compute the multiplicative inverse of a number", |
| 9652 | + "desc": "computes the multiplicative inverse of a number", |
| 9653 | + "short_desc": "multiplicative inverse", |
| 9654 | + "parameters": [ |
| 9655 | + { |
| 9656 | + "name": "x", |
| 9657 | + "desc": "input value", |
| 9658 | + "type": { |
| 9659 | + "javascript": "number", |
| 9660 | + "jsdoc": "number", |
| 9661 | + "c": "double", |
| 9662 | + "dtype": "float64" |
| 9663 | + }, |
| 9664 | + "domain": [ |
| 9665 | + { |
| 9666 | + "min": "-infinity", |
| 9667 | + "max": "infinity" |
| 9668 | + } |
| 9669 | + ], |
| 9670 | + "rand": { |
| 9671 | + "prng": "random/base/uniform", |
| 9672 | + "parameters": [ |
| 9673 | + -10, |
| 9674 | + 10 |
| 9675 | + ] |
| 9676 | + }, |
| 9677 | + "example_values": [ |
| 9678 | + 0, |
| 9679 | + -0.01, |
| 9680 | + 0.25, |
| 9681 | + 0.5, |
| 9682 | + -1, |
| 9683 | + 2, |
| 9684 | + 3, |
| 9685 | + 4, |
| 9686 | + 9, |
| 9687 | + -16, |
| 9688 | + 25, |
| 9689 | + -36, |
| 9690 | + -49, |
| 9691 | + 64, |
| 9692 | + 81, |
| 9693 | + 100, |
| 9694 | + 0.1, |
| 9695 | + 10, |
| 9696 | + -50, |
| 9697 | + 99.99 |
| 9698 | + ] |
| 9699 | + } |
| 9700 | + ], |
| 9701 | + "output_policy": "real_floating_point_and_generic", |
| 9702 | + "returns": { |
| 9703 | + "desc": "multiplicative inverse", |
| 9704 | + "type": { |
| 9705 | + "javascript": "number", |
| 9706 | + "jsdoc": "number", |
| 9707 | + "c": "double", |
| 9708 | + "dtype": "float64" |
| 9709 | + } |
| 9710 | + }, |
| 9711 | + "keywords": [ |
| 9712 | + "inv", |
| 9713 | + "multiplicative", |
| 9714 | + "inverse", |
| 9715 | + "reciprocal" |
| 9716 | + ], |
| 9717 | + "extra_keywords": [ |
| 9718 | + "math.pow" |
| 9719 | + ] |
| 9720 | + }, |
9502 | 9721 | "@stdlib/math/base/special/cinvf": {}, |
9503 | 9722 | "@stdlib/math/base/special/cinv": {}, |
9504 | 9723 | "@stdlib/math/base/special/lnf": { |
|
9889 | 10108 | ], |
9890 | 10109 | "extra_keywords": [] |
9891 | 10110 | }, |
9892 | | - "@stdlib/math/base/special/rampf": {}, |
| 10111 | + "@stdlib/math/base/special/rampf": { |
| 10112 | + "$schema": "math/base@v1.0", |
| 10113 | + "base_alias": "ramp", |
| 10114 | + "alias": "rampf", |
| 10115 | + "pkg_desc": "evaluate the ramp function for a single-precision floating-point number", |
| 10116 | + "desc": "evaluates the ramp function for a single-precision floating-point number", |
| 10117 | + "short_desc": "ramp function", |
| 10118 | + "parameters": [ |
| 10119 | + { |
| 10120 | + "name": "x", |
| 10121 | + "desc": "input value", |
| 10122 | + "type": { |
| 10123 | + "javascript": "number", |
| 10124 | + "jsdoc": "number", |
| 10125 | + "c": "float", |
| 10126 | + "dtype": "float32" |
| 10127 | + }, |
| 10128 | + "domain": [ |
| 10129 | + { |
| 10130 | + "min": "-infinity", |
| 10131 | + "max": "infinity" |
| 10132 | + } |
| 10133 | + ], |
| 10134 | + "rand": { |
| 10135 | + "prng": "random/base/uniform", |
| 10136 | + "parameters": [ |
| 10137 | + -10, |
| 10138 | + 10 |
| 10139 | + ] |
| 10140 | + }, |
| 10141 | + "example_values": [ |
| 10142 | + 64, |
| 10143 | + 27, |
| 10144 | + 0, |
| 10145 | + 0.1, |
| 10146 | + -9, |
| 10147 | + 8, |
| 10148 | + -1, |
| 10149 | + 125, |
| 10150 | + -10.2, |
| 10151 | + 11.3, |
| 10152 | + -12.4, |
| 10153 | + 3.5, |
| 10154 | + -1.6, |
| 10155 | + 15.7, |
| 10156 | + -16, |
| 10157 | + 17.9, |
| 10158 | + -188, |
| 10159 | + 19.11, |
| 10160 | + -200, |
| 10161 | + 21.15 |
| 10162 | + ] |
| 10163 | + } |
| 10164 | + ], |
| 10165 | + "output_policy": "same", |
| 10166 | + "returns": { |
| 10167 | + "desc": "function value", |
| 10168 | + "type": { |
| 10169 | + "javascript": "number", |
| 10170 | + "jsdoc": "number", |
| 10171 | + "c": "float", |
| 10172 | + "dtype": "float32" |
| 10173 | + } |
| 10174 | + }, |
| 10175 | + "keywords": [ |
| 10176 | + "ramp", |
| 10177 | + "heaviside", |
| 10178 | + "max", |
| 10179 | + "maximum", |
| 10180 | + "dsp" |
| 10181 | + ], |
| 10182 | + "extra_keywords": [] |
| 10183 | + }, |
9893 | 10184 | "@stdlib/math/base/special/ramp": { |
9894 | 10185 | "$schema": "math/base@v1.0", |
9895 | 10186 | "base_alias": "ramp", |
|
0 commit comments