Kind: global class
this: {FP16}
Creates an instance of FP16.
Reduces all components of possibly unreduced FP16 mod Modulus
Kind: instance method of FP16
this: {FP16}
Normalises the components of an FP16
Kind: instance method of FP16
this: {FP16}
Tests for FP16 equal to zero
Kind: instance method of FP16
this: {FP16}
Tests for FP16 equal to unity
Kind: instance method of FP16
this: {FP16}
Conditional copy of FP16 number
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
g | FP16 instance |
d | copy depends on this value |
test is w real? That is in a+ib test b is zero
Kind: instance method of FP16
this: {FP16}
extract real part a
Kind: instance method of FP16
this: {FP16}
extract a from this
Kind: instance method of FP16
this: {FP16}
extract b from this
Kind: instance method of FP16
this: {FP16}
Tests for equality of two FP16s
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
x | FP16 instance to compare |
Copy FP16 to another FP16
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
x | FP16 instance to be copied |
Set FP16 to zero
Kind: instance method of FP16
this: {FP16}
Set FP16 to unity
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
x | FP16 instance to be set to one |
Set FP16 from two FP8 values
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
c | FP8 instance |
d | FP8 instance |
Set FP16 from one FP8 value
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
c | FP8 instance |
this=-this
Kind: instance method of FP16
this: {FP16}
Conjugation of FP16
Kind: instance method of FP16
this: {FP16}
Negative conjugation of FP16
Kind: instance method of FP16
this: {FP16}
addition of two FP16s
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
x | FP16 instance |
subtraction of two FP16s
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
x | FP16 instance |
Multiplication of an FP16 by an FP8
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
s | FP8 instance |
Multiplication of an FP16 by an FP2
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
s | FP2 instance |
Multiplication of an FP16 by a small integer
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
s | integer |
Fast Squaring of an FP16
Kind: instance method of FP16
this: {FP16}
Full unconditional Multiplication of two FP16s
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
y | FP16 instance, the multiplier |
convert this to hex string
Kind: instance method of FP16
this: {FP16}
Inverting an FP16
Kind: instance method of FP16
this: {FP16}
multiplies an FP16 instance by irreducible polynomial sqrt(1+sqrt(-1))
Kind: instance method of FP16
this: {FP16}
multiplies an FP16 instance by irreducible polynomial (1+sqrt(-1))
Kind: instance method of FP16
this: {FP16}
multiplies an FP16 instance by irreducible polynomial (1+sqrt(-1))
Kind: instance method of FP16
this: {FP16}
Raises an FP16 to the power of the internal modulus p, using the Frobenius
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
f | Modulus |
Raises an FP16 to the power of a BIG
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
e | BIG instance exponent |
Calculates the XTR addition function r=w*x-conj(x)*y+z
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
w | FP16 instance |
y | FP16 instance |
z | FP16 instance |
Calculates the XTR doubling function r=x^2-2*conj(x)
Kind: instance method of FP16
this: {FP16}
Calculates FP16 trace of an FP16 raised to the power of a BIG number
Kind: instance method of FP16
this: {FP16}
Param | Description |
---|---|
n | Big number |
Calculates FP16 trace of c^a.d^b, where c and d are derived from FP16 traces of FP16s
Kind: instance method of FP16
this: {FP16}