Class MpiPartition

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.TreeMap<T,​java.lang.Integer>
de.tilman_neumann.util.SortedMultiset_TopDown<Mpi>
de.tilman_neumann.jml.partitions.MpiPartition
All Implemented Interfaces:
Multiset<Mpi>, SortedMultiset<Mpi>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SortedMultiset<Mpi>>, java.util.Map<Mpi,​java.lang.Integer>, java.util.NavigableMap<Mpi,​java.lang.Integer>, java.util.SortedMap<Mpi,​java.lang.Integer>

public class MpiPartition
extends SortedMultiset_TopDown<Mpi>
A partition of a multipartite integer.
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>

    Nested classes/interfaces inherited from interface java.util.Map

    java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
  • Constructor Summary

    Constructors
    Constructor Description
    MpiPartition()  
    MpiPartition​(Mpi[] elements)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()
    Returns a sum-like representation of this partitions, with parts separated by "+" and the multiplicity indicated by "*".

    Methods inherited from class java.util.TreeMap

    ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putIfAbsent, 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 de.tilman_neumann.util.Multiset

    entrySet, get, keySet, size

    Methods inherited from interface java.util.SortedMap

    comparator, entrySet, firstKey, keySet, lastKey, values
  • Constructor Details

    • MpiPartition

      public MpiPartition()
    • MpiPartition

      public MpiPartition​(Mpi[] elements)
  • Method Details

    • toString

      public java.lang.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], ...
      Specified by:
      toString in interface Multiset<Mpi>
      Overrides:
      toString in class java.util.AbstractMap<Mpi,​java.lang.Integer>