From: Michael Orlitzky Date: Sun, 19 May 2024 01:47:13 +0000 (-0400) Subject: mjo/cone/permutation_invariant.py: use cones.foo() from sage X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=99d11e5a6ce0a2f3e87e88b9959037ae77006b89;p=sage.d.git mjo/cone/permutation_invariant.py: use cones.foo() from sage --- diff --git a/mjo/cone/permutation_invariant.py b/mjo/cone/permutation_invariant.py index d071586..982dd29 100644 --- a/mjo/cone/permutation_invariant.py +++ b/mjo/cone/permutation_invariant.py @@ -50,22 +50,22 @@ def is_permutation_invariant(K): SETUP:: - sage: from mjo.cone.nonnegative_orthant import nonnegative_orthant - sage: from mjo.cone.permutation_invariant import is_permutation_invariant - sage: from mjo.cone.rearrangement import rearrangement_cone + sage: from mjo.cone.permutation_invariant import ( + ....: is_permutation_invariant + ....: ) EXAMPLES: The rearrangement cone is permutation-invariant:: - sage: all( is_permutation_invariant(rearrangement_cone(p,n)) + sage: all( is_permutation_invariant(cones.rearrangement(p,n)) ....: for n in range(3, 6) ....: for p in range(1, n) ) True As is the nonnegative orthant:: - sage: K = nonnegative_orthant(ZZ.random_element(5)) + sage: K = cones.nonnegative_orthant(ZZ.random_element(5)) sage: is_permutation_invariant(K) True