Scalar API quick reference#
Scalar type conversion#
Function |
Type In |
Type Out |
---|---|---|
|
|
|
|
|
|
|
||
|
||
|
||
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixed-point scalar ops#
Function |
Input Depth |
Fractional Bits |
Brief |
---|---|---|---|
16 |
0 |
\(x^{-1}\) |
|
32 |
0 |
\(x^{-1}\) |
|
32 |
31 |
\(\sin(x)\) |
|
32 |
31 |
\(\tan(x)\) |
|
32 |
24 |
\(\sin(x)\) |
|
32 |
24 |
\(\cos(x)\) |
|
32 |
24 |
\(\tan(x)\) |
|
32 |
30 |
\(\exp(x)\) |
|
32 |
24 |
\(\frac{1}{1+e^{-x}}\) |
|
32 |
24 |
\(\frac{1}{1+e^{-x}}\) |
|
32 |
30 |
\((0,x,x^2,x^3,\dots)\) |
|
32 |
0 |
\(\lceil\log_2(x)\rceil\) |
IEEE 754 float ops#
Function |
Brief |
---|---|
\(sin(x)\) |
|
\(cos(x)\) |
|
\(log_2(x)\) |
|
Evaluate Power Series |
|
Normalized Form A |
Non-standard scalar float ops#
Function |
Brief |
---|---|
\(x \times y\) |
|
\(x + y\) |
|
\(x - y\) |
|
\(\frac{x}{y}\) |
|
\(\left|x\right|\) |
|
\(x > y\) |
|
\(x \ge y\) |
|
\(\alpha x + (1 - \alpha) y\) |
|
\(\sqrt{x}\) |
|
\(exp(x)\) |
|
\(x \times y\) |
|
\(\sqrt{x}\) |
|
\(x \times y\) |
|
\(x, x^3, x^5, x^7, \dots\) |
Non-standard complex scalar float ops#
Function |
Brief |
---|---|
\(x \times y\) |
|
\(x + y\) |
|
\(x - y\) |
|
\(x \times y\) |
|
\(x + y\) |
|
\(x - y\) |