Class ShortWeierstrassCurveProjective<E>
java.lang.Object
dk.jonaslindstrom.ruffini.elliptic.structures.ShortWeierstrassCurveProjective<E>
- All Implemented Interfaces:
AdditiveGroup<ProjectivePoint<E>>
,CommutativeMonoid<ProjectivePoint<E>>
,Set<ProjectivePoint<E>>
public class ShortWeierstrassCurveProjective<E>
extends Object
implements AdditiveGroup<ProjectivePoint<E>>
-
Constructor Summary
ConstructorsConstructorDescriptionShortWeierstrassCurveProjective
(Field<E> field, E a, E b) Curve on Weierstrass form. -
Method Summary
Modifier and TypeMethodDescriptionadd
(ProjectivePoint<E> p, ProjectivePoint<E> q) Return the result of a+b.doubling
(ProjectivePoint<E> p) Return 2e.boolean
equals
(ProjectivePoint<E> p, ProjectivePoint<E> q) Returnstrue
if and only if a = b as elements of this set.getA()
getB()
getField()
negate
(ProjectivePoint<E> p) Return -a.toString()
toString
(ProjectivePoint<E> p) Returns a human-readable string representation of an element in this set.zero()
Return the zero element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup
isZero, scale, scale, subtract, sum
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid
add, add
-
Constructor Details
-
ShortWeierstrassCurveProjective
Curve on Weierstrass form. Field should have characteristics not equal to 2 or 3.
-
-
Method Details
-
getField
-
discriminant
-
getA
-
getB
-
negate
Description copied from interface:AdditiveGroup
Return -a.- Specified by:
negate
in interfaceAdditiveGroup<E>
-
add
Description copied from interface:CommutativeMonoid
Return the result of a+b.- Specified by:
add
in interfaceCommutativeMonoid<E>
-
zero
Description copied from interface:CommutativeMonoid
Return the zero element.- Specified by:
zero
in interfaceCommutativeMonoid<E>
-
toString
Description copied from interface:Set
Returns a human-readable string representation of an element in this set. -
equals
Description copied from interface:Set
Returnstrue
if and only if a = b as elements of this set. -
doubling
Description copied from interface:AdditiveGroup
Return 2e. The default implementation returns e + e but some implementations may override this with faster implementations.- Specified by:
doubling
in interfaceAdditiveGroup<E>
-
toString
-