BN.FQP (bn v0.2.2)

Link to this section Summary

Link to this section Types

Specs

t() :: %BN.FQP{coef: [BN.FQ.t()], dim: term(), modulus_coef: [integer()]}

Link to this section Functions

Link to this function

add(fqp1, fqp2)

Specs

add(t(), t()) :: t() | no_return()
Link to this function

divide(fqp1, fqp2)

Specs

divide(t(), t()) :: t() | no_return()

Specs

inverse(t()) :: t() | no_return()

Specs

mult(t(), t() | BN.FQ.t() | integer()) :: t() | no_return()

Specs

negate(t()) :: t()
Link to this function

new(coef, modulus_coef, params \\ [])

Specs

new([integer()], [integer()], keyword()) :: t() | no_return()

Specs

pow(t(), integer()) :: t() | no_return()
Link to this function

sub(fqp1, fqp2)

Specs

sub(t(), t()) :: t() | no_return()

Specs

zero?(t()) :: boolean()