Package de.tilman_neumann.jml.partitions
Class MpiPartition
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.TreeMap<T,Integer>
-
- org.matheclipse.core.numbertheory.SortedMultiset_TopDown<Mpi>
-
- de.tilman_neumann.jml.partitions.MpiPartition
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<SortedMultiset<Mpi>>
,Map<Mpi,Integer>
,NavigableMap<Mpi,Integer>
,SortedMap<Mpi,Integer>
,Multiset<Mpi>
,SortedMultiset<Mpi>
public class MpiPartition extends SortedMultiset_TopDown<Mpi>
A partition of a multipartite integer.- Author:
- Tilman Neumann
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MpiPartition()
MpiPartition(Mpi[] elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Returns a sum-like representation of this partitions, with parts separated by "+" and the multiplicity indicated by "*".-
Methods inherited from class org.matheclipse.core.numbertheory.SortedMultiset_TopDown
add, add, addAll, addAll, addAll, compareTo, equals, getBiggestElement, getSmallestElement, getTopDownIterator, hashCode, intersect, remove, remove, removeAll, toList, toString, totalCount
-
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
-
Methods inherited from class java.util.AbstractMap
isEmpty
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size
-
Methods inherited from interface org.matheclipse.core.numbertheory.SortedMultiset
entrySet
-
-
-
-
Constructor Detail
-
MpiPartition
public MpiPartition()
-
MpiPartition
public MpiPartition(Mpi[] elements)
-
-
Method Detail
-
toString
public String toString()
Returns a sum-like representation of this partitions, with parts separated by "+" and the multiplicity indicated by "*". Biggest parts are shown first. Some example partitions of the multipartite number [3, 2, 1]: [3, 2, 1], [3, 2, 0] + [0, 0, 1], [3, 1, 1] + [0, 1, 0], [3, 1, 0] + [0, 1, 1], [3, 1, 0] + [0, 1, 0] + [0, 0, 1], [3, 0, 1] + [0, 2, 0], [3, 0, 1] + 2*[0, 1, 0], ...
-
-