From 99d11e5a6ce0a2f3e87e88b9959037ae77006b89 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 18 May 2024 21:47:13 -0400 Subject: [PATCH] mjo/cone/permutation_invariant.py: use cones.foo() from sage --- mjo/cone/permutation_invariant.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.44.2