Class ARing<E>

java.lang.Object
cc.redberry.rings.ARing<E>
All Implemented Interfaces:
IParser<E>, Stringifiable<E>, Ring<E>, Serializable, Iterable<E>, Comparator<E>
Direct Known Subclasses:
Integers, IntegersZp, MultivariateRing, QuotientRing, SimpleFieldExtension, UnivariateRing

public abstract class ARing<E>
extends Object
implements Ring<E>
Abstract ring which holds perfect power decomposition of its cardinality.
Since:
1.0
See Also:
Serialized Form
  • Constructor Details

    • ARing

      public ARing()
  • Method Details

    • isPerfectPower

      public boolean isPerfectPower()
      Description copied from interface: Ring
      Returns whether the cardinality is a perfect power (p^k with k > 1)
      Specified by:
      isPerfectPower in interface Ring<E>
      Returns:
      whether the cardinality is a perfect power (p^k with k > 1)
    • perfectPowerBase

      public BigInteger perfectPowerBase()
      Description copied from interface: Ring
      Returns base so that cardinality == base^exponent or null if cardinality is not finite
      Specified by:
      perfectPowerBase in interface Ring<E>
      Returns:
      base so that cardinality == base^exponent or null if cardinality is not finite
    • perfectPowerExponent

      public BigInteger perfectPowerExponent()
      Description copied from interface: Ring
      Returns exponent so that cardinality == base^exponent or null if cardinality is not finite
      Specified by:
      perfectPowerExponent in interface Ring<E>
      Returns:
      exponent so that cardinality == base^exponent or null if cardinality is not finite