From b0a1a04f20e05e50869e73895eb12692f98362a2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 20 Feb 2022 09:51:31 -0800 Subject: [PATCH] src/sage/{matrix/matrix,modules/vector}_numpy_integer_dense.pyx: Fix doctest output in 32bit --- src/sage/matrix/matrix_numpy_integer_dense.pyx | 4 ++-- src/sage/modules/vector_numpy_integer_dense.pyx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sage/matrix/matrix_numpy_integer_dense.pyx b/src/sage/matrix/matrix_numpy_integer_dense.pyx index e832386f618..bc605df9b92 100644 --- a/src/sage/matrix/matrix_numpy_integer_dense.pyx +++ b/src/sage/matrix/matrix_numpy_integer_dense.pyx @@ -13,8 +13,8 @@ EXAMPLES:: [ 0 0 0] [ 0 0 47] sage: M.numpy() - array([[ 0, 0, 0], - [ 0, 0, 47]]) + array([[ 0, 0, 0], [ 0, 0, 47]]) # 64-bit + array([[ 0, 0, 0], [ 0, 0, 47]], dtype=int64) # 32-bit """ # **************************************************************************** diff --git a/src/sage/modules/vector_numpy_integer_dense.pyx b/src/sage/modules/vector_numpy_integer_dense.pyx index b73a21eb849..faeb8531771 100644 --- a/src/sage/modules/vector_numpy_integer_dense.pyx +++ b/src/sage/modules/vector_numpy_integer_dense.pyx @@ -10,7 +10,8 @@ EXAMPLES:: sage: v (0, 42, 0) sage: v.numpy() - array([ 0, 42, 0]) + array([ 0, 42, 0]) # 64-bit + array([ 0, 42, 0], dtype=int64) # 32-bit """ # ****************************************************************************