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
,Comparable<Mpi>
,Iterable<Integer>
public class PrimePowers_DefaultImpl extends Mpi_IntegerArrayImpl implements PrimePowers
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrimePowers_DefaultImpl
createFrom(SortedMultiset<BigInteger> primepowersMultiset)
Constructor from a multiset of primes.BigInteger
getPrime(int index)
Return the prime at the given index.static void
main(String[] args)
Check relationship between set of divisors and powermap.static PrimePowers
valueOf(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 Detail
-
createFrom
public static PrimePowers_DefaultImpl createFrom(SortedMultiset<BigInteger> primepowersMultiset)
Constructor from a multiset of primes.- Parameters:
primepowersMultiset
-- Returns:
- PrimePowers
-
valueOf
public static PrimePowers valueOf(BigInteger n)
Factory method to create Mpi from the prime powers of n.- Parameters:
n
-- Returns:
- PrimePowers
-
getPrime
public 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(String[] args)
Check relationship between set of divisors and powermap. Hypothesis confirmed from 0..203846.- Parameters:
args
- ignored
-
-