Package de.tilman_neumann.jml.partitions
Class PrimePowers_DefaultImpl
java.lang.Object
de.tilman_neumann.jml.partitions.Mpi_IntegerArrayImpl
de.tilman_neumann.jml.partitions.PrimePowers_DefaultImpl
- All Implemented Interfaces:
Mpi,PrimePowers,java.lang.Comparable<Mpi>,java.lang.Iterable<java.lang.Integer>
public class PrimePowers_DefaultImpl extends Mpi_IntegerArrayImpl implements PrimePowers
-
Method Summary
Modifier and Type Method Description static PrimePowers_DefaultImplcreateFrom(SortedMultiset<java.math.BigInteger> primepowersMultiset)Constructor from a multiset of primes.java.math.BigIntegergetPrime(int index)Return the prime at the given index.static voidmain(java.lang.String[] args)Check relationship between set of divisors and powermap.static PrimePowersvalueOf(java.math.BigInteger n)Factory method to create Mpi from the prime powers of n.Methods inherited from class de.tilman_neumann.jml.partitions.Mpi_IntegerArrayImpl
compareTo, complement, div2, equals, firstNonZeroPartIndex, getCardinality, getDim, getElem, hashCode, iterator, maxNextPart, setElem, subtract, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface de.tilman_neumann.jml.partitions.Mpi
compareTo, complement, div2, firstNonZeroPartIndex, getCardinality, getDim, getElem, maxNextPart, setElem, subtract
-
Method Details
-
createFrom
public static PrimePowers_DefaultImpl createFrom(SortedMultiset<java.math.BigInteger> primepowersMultiset)Constructor from a multiset of primes.- Parameters:
primepowersMultiset-- Returns:
- PrimePowers
-
valueOf
Factory method to create Mpi from the prime powers of n.- Parameters:
n-- Returns:
- PrimePowers
-
getPrime
public java.math.BigInteger getPrime(int index)Description copied from interface:PrimePowersReturn the prime at the given index.- Specified by:
getPrimein interfacePrimePowers- Returns:
- prime
-
main
public static void main(java.lang.String[] args)Check relationship between set of divisors and powermap. Hypothesis confirmed from 0..203846.- Parameters:
args- ignored
-