From 792fcd0bc39f8c2c226b5fbfaae1f5d17743186d Mon Sep 17 00:00:00 2001 From: "Matthias C. M. Troffaes" Date: Wed, 18 Sep 2024 13:01:33 +0100 Subject: [PATCH] Simplify doctest. --- docs/source/examples.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 46f0a9a..15345e8 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -219,10 +219,8 @@ The next example is taken from ... [-7, 1, -5, 2], # -x+5y-2z<=-7 ... [12, 3, -2, -6], # -3x+2y+6z<=12 ... ] ->>> mat1 = cdd.matrix_from_array(array, rep_type=cdd.RepType.INEQUALITY) ->>> mat2 = cdd.fourier_elimination(mat1) ->>> mat2.array +>>> mat = cdd.matrix_from_array(array, rep_type=cdd.RepType.INEQUALITY) +>>> cdd.fourier_elimination(mat).array [[-1.0, 0.0, -1.25], [-1.0, -1.0, -1.0], [-1.5, 1.0, -2.833333...]] ->>> mat3 = cdd.block_elimination(mat1, {3}) # equivalent to Fourier ->>> mat3.array +>>> cdd.block_elimination(mat, {3}).array [[-4.0, 0.0, -5.0], [-1.5, -1.5, -1.5], [-9.0, 6.0, -17.0]]