Package de.tilman_neumann.jml.partitions
Interface PrimePowers
- All Known Implementing Classes:
PrimePowers_DefaultImpl
public interface PrimePowers extends Mpi
Product of primes implemented as an multipartite integer.
-
Method Summary
Modifier and Type Method Description java.math.BigInteger
getPrime(int index)
Return the prime at the given index.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
-
getPrime
java.math.BigInteger getPrime(int index)Return the prime at the given index.- Parameters:
index
-- Returns:
- prime
-