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_DefaultImpl
createFrom(SortedMultiset<java.math.BigInteger> primepowersMultiset)
Constructor from a multiset of primes.java.math.BigInteger
getPrime(int index)
Return the prime at the given index.static void
main(java.lang.String[] args)
Check relationship between set of divisors and powermap.static PrimePowers
valueOf(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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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:PrimePowers
Return the prime at the given index.- Specified by:
getPrime
in 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
-