A polyhedral closed convex cone object representing a rearrangement
cone of order ``p`` in ``n`` dimensions.
+ SETUP::
+
+ sage: from mjo.cone.rearrangement import rearrangement_cone
+
EXAMPLES:
The rearrangement cones of order one are nonnegative orthants::
components sum to a nonnegative number), ``True`` is returned. Otherwise
``False`` is returned.
+ SETUP::
+
+ sage: from mjo.cone.rearrangement import (has_rearrangement_property,
+ ....: rearrangement_cone)
+
EXAMPLES:
Every element of a rearrangement cone should have the property::
....: for p in range(1, n-1):
....: K = rearrangement_cone(p,n)
....: v = K.random_element()
- ....: if not has_rearrangement_property(v,p): print v
+ ....: if not has_rearrangement_property(v,p):
+ ....: print(v)
"""
components = sorted(v)[0:p]