/* Generated by Cython 3.2.4 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "CYTHON_EXTERN_C",
                "extern \"C++\""
            ]
        ],
        "depends": [
            "/usr/include/fplll/bkz.h",
            "/usr/include/fplll/bkz_param.h",
            "/usr/include/fplll/defs.h",
            "/usr/include/fplll/enum/enumerate.h",
            "/usr/include/fplll/enum/enumerate_ext.h",
            "/usr/include/fplll/enum/evaluator.h",
            "/usr/include/fplll/fplll.h",
            "/usr/include/fplll/fplll_config.h",
            "/usr/include/fplll/gso.h",
            "/usr/include/fplll/gso_gram.h",
            "/usr/include/fplll/gso_interface.h",
            "/usr/include/fplll/lll.h",
            "/usr/include/fplll/nr/matrix.h",
            "/usr/include/fplll/nr/nr.h",
            "/usr/include/fplll/nr/numvect.h",
            "/usr/include/fplll/pruner/pruner.h",
            "/usr/include/fplll/svpcvp.h",
            "/usr/include/fplll/threadpool.h",
            "/usr/include/fplll/util.h",
            "/usr/include/fplll/wrapper.h",
            "/usr/include/gmp.h",
            "/usr/include/mpfr.h",
            "/usr/include/qd/dd_real.h",
            "/usr/include/qd/qd_real.h",
            "/usr/lib/python3.14/site-packages/cysignals/macros.h",
            "/usr/lib/python3.14/site-packages/cysignals/struct_signals.h",
            "src/fpylll/fplll/enumeration_callback_helper.h"
        ],
        "extra_compile_args": [
            "-std=c++11",
            "-march=x86-64",
            "-mtune=generic",
            "-O2",
            "-pipe",
            "-fno-plt",
            "-fexceptions",
            "-Wp,-D_FORTIFY_SOURCE=3",
            "-Wformat",
            "-Werror=format-security",
            "-fstack-clash-protection",
            "-fcf-protection",
            "-fno-omit-frame-pointer",
            "-mno-omit-leaf-frame-pointer",
            "-Wp,-D_GLIBCXX_ASSERTIONS",
            "-g",
            "-ffile-prefix-map=/build/fpylll/src=/usr/src/debug/fpylll",
            "-flto=auto"
        ],
        "extra_link_args": [
            "-std=c++11"
        ],
        "include_dirs": [
            "src/fpylll/fplll",
            "/usr/lib/python3.14/site-packages/cysignals",
            "/usr/include",
            "/usr/lib/python3.14/site-packages/numpy/_core/include"
        ],
        "language": "c++",
        "libraries": [
            "gmp",
            "mpfr",
            "fplll",
            "qd"
        ],
        "library_dirs": [
            "/usr/lib"
        ],
        "name": "fpylll.fplll.gso",
        "sources": [
            "src/fpylll/fplll/gso.pyx"
        ]
    },
    "module_name": "fpylll.fplll.gso"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_4"
#define CYTHON_HEX_VERSION 0x030204F0
#define CYTHON_FUTURE_DIVISION 0
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CppInitCode */
#ifndef __cplusplus
  #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #else
    #define CYTHON_INLINE inline
  #endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
    x.~T();
}
template<typename T>
class __Pyx_FakeReference {
  public:
    __Pyx_FakeReference() : ptr(NULL) { }
    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
    T *operator->() { return ptr; }
    T *operator&() { return ptr; }
    operator T&() { return *ptr; }
    template<typename U> bool operator ==(const U& other) const { return *ptr == other; }
    template<typename U> bool operator !=(const U& other) const { return *ptr != other; }
    template<typename U> bool operator==(const __Pyx_FakeReference<U>& other) const { return *ptr == *other.ptr; }
    template<typename U> bool operator!=(const __Pyx_FakeReference<U>& other) const { return *ptr != *other.ptr; }
  private:
    T *ptr;
};

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
    #define __PYX_EXTERN_C extern "C++"
#endif

#define __PYX_HAVE__fpylll__fplll__gso
#define __PYX_HAVE_API__fpylll__fplll__gso
/* Early includes */
#include <string.h>
#include <stdio.h>
#include "gmp.h"
#include <stdint.h>
#include "mpfr.h"
#include "ios"
#include "new"
#include "stdexcept"
#include "typeinfo"
#include <vector>
#include <string_view>
#include <string>
#include <utility>

    #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
    // move should be defined for these versions of MSVC, but __cplusplus isn't set usefully
    #include <type_traits>

    namespace cython_std {
    template <typename T> typename std::remove_reference<T>::type&& move(T& t) noexcept { return std::move(t); }
    template <typename T> typename std::remove_reference<T>::type&& move(T&& t) noexcept { return std::move(t); }
    }

    #endif
    
#include <functional>
#include <map>
#include "fplll/fplll_config.h"

    #ifdef FPLLL_WITH_RECURSIVE_ENUM
    #define FPLLL_HAVE_RECURSIVE_ENUM 1
    #else
    #define FPLLL_HAVE_RECURSIVE_ENUM 0
    #endif
    
#include "fplll/nr/nr.h"
#include "fplll/defs.h"
#include "fplll/nr/numvect.h"
#include "fplll/nr/matrix.h"
#include "fplll/gso.h"
#include "fplll/gso_gram.h"
#include "fplll/gso_interface.h"
#include "fplll/lll.h"
#include "fplll/wrapper.h"
#include "enumeration_callback_helper.h"
#include "fplll/enum/evaluator.h"
#include "fplll/enum/enumerate.h"
#include "fplll/enum/enumerate_ext.h"
#include "fplll/svpcvp.h"
#include "fplll/bkz_param.h"
#include "fplll/bkz.h"
#include "fplll/util.h"
#include "fplll/pruner/pruner.h"
#include "fplll/threadpool.h"
#include "fplll/fplll.h"
#include "qd/dd_real.h"
#include "qd/qd_real.h"
#include "struct_signals.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "src/fpylll/fplll/gso.pyx",
  "src/fpylll/fplll/integer_matrix.pxd",
  "cpython/type.pxd",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

/* #### Code section: numeric_typedefs ### */

/* "decl.pxd":23
 * from libcpp.vector cimport vector
 * 
 * ctypedef double d_t             # <<<<<<<<<<<<<<
 * 
 * IF HAVE_LONG_DOUBLE:
*/
typedef double __pyx_t_6fpylll_5fplll_4decl_d_t;

/* "decl.pxd":26
 * 
 * IF HAVE_LONG_DOUBLE:
 *     ctypedef long double ld_t             # <<<<<<<<<<<<<<
 * 
 * IF HAVE_QD:
*/
typedef long double __pyx_t_6fpylll_5fplll_4decl_ld_t;
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix;
struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow;
struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO;
union __pyx_t_6fpylll_5fplll_4decl_zz_mat_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_zz_mat_core_t __pyx_t_6fpylll_5fplll_4decl_zz_mat_core_t;
struct __pyx_t_6fpylll_5fplll_4decl_z_nr_t;
typedef struct __pyx_t_6fpylll_5fplll_4decl_z_nr_t __pyx_t_6fpylll_5fplll_4decl_z_nr_t;
struct __pyx_t_6fpylll_5fplll_4decl_fp_nr_t;
typedef struct __pyx_t_6fpylll_5fplll_4decl_fp_nr_t __pyx_t_6fpylll_5fplll_4decl_fp_nr_t;
union __pyx_t_6fpylll_5fplll_4decl_mat_gso_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_mat_gso_core_t __pyx_t_6fpylll_5fplll_4decl_mat_gso_core_t;
union __pyx_t_6fpylll_5fplll_4decl_lll_reduction_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_lll_reduction_core_t __pyx_t_6fpylll_5fplll_4decl_lll_reduction_core_t;
union __pyx_t_6fpylll_5fplll_4decl_bkz_auto_abort_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_bkz_auto_abort_core_t __pyx_t_6fpylll_5fplll_4decl_bkz_auto_abort_core_t;
union __pyx_t_6fpylll_5fplll_4decl_bkz_reduction_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_bkz_reduction_core_t __pyx_t_6fpylll_5fplll_4decl_bkz_reduction_core_t;
union __pyx_t_6fpylll_5fplll_4decl_fast_evaluator_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_fast_evaluator_core_t __pyx_t_6fpylll_5fplll_4decl_fast_evaluator_core_t;
union __pyx_t_6fpylll_5fplll_4decl_evaluator_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_evaluator_core_t __pyx_t_6fpylll_5fplll_4decl_evaluator_core_t;
union __pyx_t_6fpylll_5fplll_4decl_enumeration_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_enumeration_core_t __pyx_t_6fpylll_5fplll_4decl_enumeration_core_t;
union __pyx_t_6fpylll_5fplll_4decl_pruner_core_t;
typedef union __pyx_t_6fpylll_5fplll_4decl_pruner_core_t __pyx_t_6fpylll_5fplll_4decl_pruner_core_t;
struct __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t;
typedef struct __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t;
struct __pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t;
typedef struct __pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t __pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t;

/* "decl.pxd":32
 *     ctypedef qd_real qd_t
 * 
 * ctypedef enum fplll_mat_gso_alg_type_t:             # <<<<<<<<<<<<<<
 *     mat_gso_gso_t  = 0
 *     mat_gso_gram_t = 1
*/
enum __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_alg_type_t {
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t = 0,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_gram_t = 1
};
typedef enum __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_alg_type_t __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_alg_type_t;

/* "decl.pxd":37
 * 
 * IF HAVE_QD:
 *     ctypedef enum fplll_mat_gso_data_type_t:             # <<<<<<<<<<<<<<
 *         mat_gso_mpz_d      =    1
 *         mat_gso_mpz_ld     =    2
*/
enum __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_data_type_t {
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d = 1,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld = 2,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe = 4,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd = 8,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd = 16,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr = 32,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d = 64,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld = 0x80,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe = 0x100,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd = 0x200,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd = 0x400,
  __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr = 0x800
};
typedef enum __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_data_type_t __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_data_type_t;

/* "decl.pxd":63
 * 
 * IF HAVE_QD:
 *     ctypedef enum fplll_nr_type_t:             # <<<<<<<<<<<<<<
 *         nr_d      =  1
 *         nr_ld     =  2
*/
enum __pyx_t_6fpylll_5fplll_4decl_fplll_nr_type_t {
  __pyx_e_6fpylll_5fplll_4decl_nr_d = 1,
  __pyx_e_6fpylll_5fplll_4decl_nr_ld = 2,
  __pyx_e_6fpylll_5fplll_4decl_nr_dpe = 4,
  __pyx_e_6fpylll_5fplll_4decl_nr_dd = 8,
  __pyx_e_6fpylll_5fplll_4decl_nr_qd = 16,
  __pyx_e_6fpylll_5fplll_4decl_nr_mpfr = 32
};
typedef enum __pyx_t_6fpylll_5fplll_4decl_fplll_nr_type_t __pyx_t_6fpylll_5fplll_4decl_fplll_nr_type_t;

/* "decl.pxd":77
 *         nr_mpfr   = 32
 * 
 * ctypedef enum fplll_z_type_t:             # <<<<<<<<<<<<<<
 *     z_long    =  1
 *     z_mpz     =  2
*/
enum __pyx_t_6fpylll_5fplll_4decl_fplll_z_type_t {
  __pyx_e_6fpylll_5fplll_4decl_z_long = 1,
  __pyx_e_6fpylll_5fplll_4decl_z_mpz = 2
};
typedef enum __pyx_t_6fpylll_5fplll_4decl_fplll_z_type_t __pyx_t_6fpylll_5fplll_4decl_fplll_z_type_t;

/* "decl.pxd":29
 * 
 * IF HAVE_QD:
 *     ctypedef dd_real dd_t             # <<<<<<<<<<<<<<
 *     ctypedef qd_real qd_t
 * 
*/
typedef dd_real __pyx_t_6fpylll_5fplll_4decl_dd_t;

/* "decl.pxd":30
 * IF HAVE_QD:
 *     ctypedef dd_real dd_t
 *     ctypedef qd_real qd_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef enum fplll_mat_gso_alg_type_t:
*/
typedef qd_real __pyx_t_6fpylll_5fplll_4decl_qd_t;

/* "decl.pxd":81
 *     z_mpz     =  2
 * 
 * ctypedef union zz_mat_core_t:             # <<<<<<<<<<<<<<
 *     ZZ_mat[long]  *long
 *     ZZ_mat[mpz_t] *mpz
*/
union __pyx_t_6fpylll_5fplll_4decl_zz_mat_core_t {
  fplll::ZZ_mat<long>  *__pyx_long;
  fplll::ZZ_mat<mpz_t>  *mpz;
};

/* "decl.pxd":85
 *     ZZ_mat[mpz_t] *mpz
 * 
 * ctypedef struct z_nr_t:             # <<<<<<<<<<<<<<
 *     Z_NR[long] long
 *     Z_NR[mpz_t] mpz
*/
struct __pyx_t_6fpylll_5fplll_4decl_z_nr_t {
  fplll::Z_NR<long>  __pyx_long;
  fplll::Z_NR<mpz_t>  mpz;
};

/* "decl.pxd":92
 *     IF HAVE_QD:
 *         # we cannot use a union because of non-trivial constructors
 *         ctypedef struct fp_nr_t:             # <<<<<<<<<<<<<<
 *             FP_NR[d_t] d
 *             FP_NR[ld_t] ld
*/
struct __pyx_t_6fpylll_5fplll_4decl_fp_nr_t {
  fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t>  d;
  fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t>  ld;
  fplll::FP_NR<dpe_t>  dpe;
  fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t>  dd;
  fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t>  qd;
  fplll::FP_NR<mpfr_t>  mpfr;
};

/* "decl.pxd":107
 * 
 *     IF HAVE_QD:
 *         ctypedef union mat_gso_core_t:             # <<<<<<<<<<<<<<
 *             MatGSOInterface[Z_NR[mpz_t], FP_NR[d_t]] *mpz_d
 *             MatGSOInterface[Z_NR[mpz_t], FP_NR[ld_t]] *mpz_ld
*/
union __pyx_t_6fpylll_5fplll_4decl_mat_gso_core_t {
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *mpz_d;
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *mpz_ld;
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *mpz_dpe;
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *mpz_dd;
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *mpz_qd;
  fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *mpz_mpfr;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *long_d;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *long_ld;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *long_dpe;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *long_dd;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *long_qd;
  fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *long_mpfr;
};

/* "decl.pxd":132
 * 
 *     IF HAVE_QD:
 *         ctypedef union lll_reduction_core_t:             # <<<<<<<<<<<<<<
 *             LLLReduction[Z_NR[mpz_t], FP_NR[d_t]] *mpz_d
 *             LLLReduction[Z_NR[mpz_t], FP_NR[ld_t]] *mpz_ld
*/
union __pyx_t_6fpylll_5fplll_4decl_lll_reduction_core_t {
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *mpz_d;
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *mpz_ld;
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *mpz_dpe;
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *mpz_dd;
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *mpz_qd;
  fplll::LLLReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *mpz_mpfr;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *long_d;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *long_ld;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *long_dpe;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *long_dd;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *long_qd;
  fplll::LLLReduction<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *long_mpfr;
};

/* "decl.pxd":157
 * 
 *     IF HAVE_QD:
 *         ctypedef union bkz_auto_abort_core_t:             # <<<<<<<<<<<<<<
 *             BKZAutoAbort[Z_NR[mpz_t], FP_NR[d_t]] *mpz_d
 *             BKZAutoAbort[Z_NR[mpz_t], FP_NR[ld_t]] *mpz_ld
*/
union __pyx_t_6fpylll_5fplll_4decl_bkz_auto_abort_core_t {
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *mpz_d;
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *mpz_ld;
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *mpz_dpe;
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *mpz_dd;
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *mpz_qd;
  fplll::BKZAutoAbort<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *mpz_mpfr;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *long_d;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *long_ld;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *long_dpe;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *long_dd;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *long_qd;
  fplll::BKZAutoAbort<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *long_mpfr;
};

/* "decl.pxd":182
 * 
 *     IF HAVE_QD:
 *         ctypedef union bkz_reduction_core_t:             # <<<<<<<<<<<<<<
 *             BKZReduction[Z_NR[mpz_t], FP_NR[d_t]] *mpz_d
 *             BKZReduction[Z_NR[mpz_t], FP_NR[ld_t]] *mpz_ld
*/
union __pyx_t_6fpylll_5fplll_4decl_bkz_reduction_core_t {
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *mpz_d;
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *mpz_ld;
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *mpz_dpe;
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *mpz_dd;
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *mpz_qd;
  fplll::BKZReduction<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *mpz_mpfr;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *long_d;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *long_ld;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *long_dpe;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *long_dd;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *long_qd;
  fplll::BKZReduction<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *long_mpfr;
};

/* "decl.pxd":207
 * 
 *     IF HAVE_QD:
 *         ctypedef union fast_evaluator_core_t:             # <<<<<<<<<<<<<<
 *             FastEvaluator[FP_NR[d_t]] *d
 *             FastEvaluator[FP_NR[ld_t]] *ld
*/
union __pyx_t_6fpylll_5fplll_4decl_fast_evaluator_core_t {
  fplll::FastEvaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *d;
  fplll::FastEvaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *ld;
  fplll::FastEvaluator<fplll::FP_NR<dpe_t> >  *dpe;
  fplll::FastEvaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *dd;
  fplll::FastEvaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *qd;
  fplll::FastErrorBoundedEvaluator *mpfr;
};

/* "decl.pxd":222
 * 
 *     IF HAVE_QD:
 *         ctypedef union evaluator_core_t:             # <<<<<<<<<<<<<<
 *             Evaluator[FP_NR[d_t]] *d
 *             Evaluator[FP_NR[ld_t]] *ld
*/
union __pyx_t_6fpylll_5fplll_4decl_evaluator_core_t {
  fplll::Evaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *d;
  fplll::Evaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *ld;
  fplll::Evaluator<fplll::FP_NR<dpe_t> >  *dpe;
  fplll::Evaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *dd;
  fplll::Evaluator<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *qd;
  fplll::ErrorBoundedEvaluator *mpfr;
};

/* "decl.pxd":237
 * 
 *     IF HAVE_QD:
 *         ctypedef union enumeration_core_t:             # <<<<<<<<<<<<<<
 *             Enumeration[Z_NR[mpz_t], FP_NR[d_t]] *mpz_d
 *             Enumeration[Z_NR[mpz_t], FP_NR[ld_t]] *mpz_ld
*/
union __pyx_t_6fpylll_5fplll_4decl_enumeration_core_t {
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *mpz_d;
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *mpz_ld;
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *mpz_dpe;
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *mpz_dd;
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *mpz_qd;
  fplll::Enumeration<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *mpz_mpfr;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *long_d;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *long_ld;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *long_dpe;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *long_dd;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *long_qd;
  fplll::Enumeration<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *long_mpfr;
};

/* "decl.pxd":262
 * 
 *     IF HAVE_QD:
 *         ctypedef union pruner_core_t:             # <<<<<<<<<<<<<<
 *             Pruner[FP_NR[d_t]] *d
 *             Pruner[FP_NR[ld_t]] *ld
*/
union __pyx_t_6fpylll_5fplll_4decl_pruner_core_t {
  fplll::Pruner<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *d;
  fplll::Pruner<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *ld;
  fplll::Pruner<fplll::FP_NR<dpe_t> >  *dpe;
  fplll::Pruner<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *dd;
  fplll::Pruner<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *qd;
  fplll::Pruner<fplll::FP_NR<mpfr_t> >  *mpfr;
};

/* "decl.pxd":278
 *     IF HAVE_QD:
 *         # we cannot use a union because of non-trivial constructors
 *         ctypedef struct vector_fp_nr_t:             # <<<<<<<<<<<<<<
 *             vector[FP_NR[d_t]] d
 *             vector[FP_NR[ld_t]] ld
*/
struct __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t {
  std::vector<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  d;
  std::vector<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  ld;
  std::vector<fplll::FP_NR<dpe_t> >  dpe;
  std::vector<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  dd;
  std::vector<fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  qd;
  std::vector<fplll::FP_NR<mpfr_t> >  mpfr;
};

/* "decl.pxd":464
 *             vector[FP_NR[mpfr_t]] mpfr
 * 
 * ctypedef struct vector_z_nr_t:             # <<<<<<<<<<<<<<
 *     vector[Z_NR[mpz_t]] mpz
 *     vector[Z_NR[long]] long
*/
struct __pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t {
  std::vector<fplll::Z_NR<mpz_t> >  mpz;
  std::vector<fplll::Z_NR<long> >  __pyx_long;
};

/* "integer_matrix.pxd":7
 * from .decl cimport zz_mat_core_t
 * 
 * cdef class IntegerMatrix:             # <<<<<<<<<<<<<<
 *     cdef IntType _type
 *     cdef zz_mat_core_t _core
*/
struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix {
  PyObject_HEAD
  struct __pyx_vtabstruct_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_vtab;
  enum fplll::IntType _type;
  __pyx_t_6fpylll_5fplll_4decl_zz_mat_core_t _core;
};


/* "integer_matrix.pxd":15
 *     cdef int _set(self, int i, int j, value) except -1
 * 
 * cdef class IntegerMatrixRow:             # <<<<<<<<<<<<<<
 *     cdef int row
 *     cdef IntegerMatrix m
*/
struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow {
  PyObject_HEAD
  int row;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *m;
};


/* "fpylll/fplll/gso.pxd":6
 * from .decl cimport mat_gso_core_t, fplll_mat_gso_data_type_t, fplll_mat_gso_alg_type_t
 * 
 * cdef class MatGSO:             # <<<<<<<<<<<<<<
 *     cdef fplll_mat_gso_data_type_t _type
 *     cdef fplll_mat_gso_alg_type_t  _alg
*/
struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO {
  PyObject_HEAD
  __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_data_type_t _type;
  __pyx_t_6fpylll_5fplll_4decl_fplll_mat_gso_alg_type_t _alg;
  __pyx_t_6fpylll_5fplll_4decl_mat_gso_core_t _core;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *B;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *_G;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *U;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *UinvT;
};



/* "integer_matrix.pxd":7
 * from .decl cimport zz_mat_core_t
 * 
 * cdef class IntegerMatrix:             # <<<<<<<<<<<<<<
 *     cdef IntType _type
 *     cdef zz_mat_core_t _core
*/

struct __pyx_vtabstruct_6fpylll_5fplll_14integer_matrix_IntegerMatrix {
  long (*_nrows)(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *);
  long (*_ncols)(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *);
  PyObject *(*_get)(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *, int, int);
  int (*_set)(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *, int, int, PyObject *);
};
static struct __pyx_vtabstruct_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_vtabptr_6fpylll_5fplll_14integer_matrix_IntegerMatrix;
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto (used by BytesEquals) */
#include <string.h>

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto (used by PyObjectCallOneArg) */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* PyObjectDelAttr.proto (used by PyObjectSetAttrStr) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
#define __Pyx_PyObject_DelAttr(o, n) PyObject_SetAttr(o, n, NULL)
#else
#define __Pyx_PyObject_DelAttr(o, n) PyObject_DelAttr(o, n)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   __Pyx_PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* RaiseException.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* PyRange_Check.proto */
#if CYTHON_COMPILING_IN_PYPY && !defined(PyRange_Check)
  #define PyRange_Check(obj)  __Pyx_TypeCheck((obj), &PyRange_Type)
#endif

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* PyNotImplementedError_Check.proto */
#define __Pyx_PyExc_NotImplementedError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_NotImplementedError)

/* PyObjectVectorCallKwBuilder.proto */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* PyRuntimeError_Check.proto */
#define __Pyx_PyExc_RuntimeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_RuntimeError)

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* pybytes_as_double.proto (used by pyobject_as_double) */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj);
static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length);
static CYTHON_INLINE double __Pyx_PyBytes_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    as_c_string = PyBytes_AS_STRING(obj);
    size = PyBytes_GET_SIZE(obj);
#else
    if (PyBytes_AsStringAndSize(obj, &as_c_string, &size) < 0) {
        return (double)-1;
    }
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}
static CYTHON_INLINE double __Pyx_PyByteArray_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    as_c_string = PyByteArray_AS_STRING(obj);
    size = PyByteArray_GET_SIZE(obj);
#else
    as_c_string = PyByteArray_AsString(obj);
    if (as_c_string == NULL) {
        return (double)-1;
    }
    size = PyByteArray_Size(obj);
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}

/* pyunicode_as_double.proto (used by pyobject_as_double) */
#if !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
static const char* __Pyx__PyUnicode_AsDouble_Copy(const void* data, const int kind, char* buffer, Py_ssize_t start, Py_ssize_t end) {
    int last_was_punctuation;
    Py_ssize_t i;
    last_was_punctuation = 1;
    for (i=start; i <= end; i++) {
        Py_UCS4 chr = PyUnicode_READ(kind, data, i);
        int is_punctuation = (chr == '_') | (chr == '.');
        *buffer = (char)chr;
        buffer += (chr != '_');
        if (unlikely(chr > 127)) goto parse_failure;
        if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure;
        last_was_punctuation = is_punctuation;
    }
    if (unlikely(last_was_punctuation)) goto parse_failure;
    *buffer = '\0';
    return buffer;
parse_failure:
    return NULL;
}
static double __Pyx__PyUnicode_AsDouble_inf_nan(const void* data, int kind, Py_ssize_t start, Py_ssize_t length) {
    int matches = 1;
    Py_UCS4 chr;
    Py_UCS4 sign = PyUnicode_READ(kind, data, start);
    int is_signed = (sign == '-') | (sign == '+');
    start += is_signed;
    length -= is_signed;
    switch (PyUnicode_READ(kind, data, start)) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'a') | (chr == 'A');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'n') | (chr == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'f') | (chr == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+3);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+4);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+5);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+6);
            matches &= (chr == 't') | (chr == 'T');
            chr = PyUnicode_READ(kind, data, start+7);
            matches &= (chr == 'y') | (chr == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static double __Pyx_PyUnicode_AsDouble_WithSpaces(PyObject *obj) {
    double value;
    const char *last;
    char *end;
    Py_ssize_t start, length = PyUnicode_GET_LENGTH(obj);
    const int kind = PyUnicode_KIND(obj);
    const void* data = PyUnicode_DATA(obj);
    start = 0;
    while (Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, start)))
        start++;
    while (start < length - 1 && Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, length - 1)))
        length--;
    length -= start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyUnicode_AsDouble_inf_nan(data, kind, start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    if (length < 40) {
        char number[40];
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((length + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}
#endif
static CYTHON_INLINE double __Pyx_PyUnicode_AsDouble(PyObject *obj) {
#if !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(__Pyx_PyUnicode_READY(obj) == -1))
        return (double)-1;
    if (likely(PyUnicode_IS_ASCII(obj))) {
        const char *s;
        Py_ssize_t length;
        s = PyUnicode_AsUTF8AndSize(obj, &length);
        return __Pyx__PyBytes_AsDouble(obj, s, length);
    }
    return __Pyx_PyUnicode_AsDouble_WithSpaces(obj);
#else
    return __Pyx_SlowPyString_AsDouble(obj);
#endif
}

/* pyobject_as_double.proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
 likely(PyLong_CheckExact(obj)) ?\
 PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?  __Pyx_PyFloat_AS_DOUBLE(obj) :\
 likely(PyLong_CheckExact(obj)) ?\
 PyLong_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#endif

/* FloatExceptionCheck.proto */
#define __PYX_CHECK_FLOAT_EXCEPTION(value, error_value)\
    ((error_value) == (error_value) ?\
     (value) == (error_value) :\
     (value) != (value))

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyLongCompare.proto */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* CallTypeTraverse.proto */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectGetMethod.proto (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod0.proto (used by PyType_Ready) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto_3_2_4
#define __PYX_HAVE_RT_ImportType_proto_3_2_4
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#include <stdalign.h>
#endif
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
#define __PYX_GET_STRUCT_ALIGNMENT_3_2_4(s) alignof(s)
#else
#define __PYX_GET_STRUCT_ALIGNMENT_3_2_4(s) sizeof(void*)
#endif
enum __Pyx_ImportType_CheckSize_3_2_4 {
   __Pyx_ImportType_CheckSize_Error_3_2_4 = 0,
   __Pyx_ImportType_CheckSize_Warn_3_2_4 = 1,
   __Pyx_ImportType_CheckSize_Ignore_3_2_4 = 2
};
static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_4 check_size);
#endif

/* GetVTable.proto */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* VoidPtrImport.proto */
static int __Pyx_ImportVoidPtr_3_2_4(PyObject *module, const char *name, void **p, const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_2_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* Py3UpdateBases.proto */
static PyObject* __Pyx_PEP560_update_bases(PyObject *bases);

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* PyObjectCall2Args.proto (used by Py3ClassCreate) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectLookupSpecial.proto (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* GCCDiagnostics.proto */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(enum fplll::MatGSOInterfaceFlags value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum fplll::FloatType __Pyx_PyLong_As_enum__fplll_3a__3a_FloatType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."


/* Module declarations from "libc.string" */

/* Module declarations from "libc.stdio" */

/* Module declarations from "fpylll.gmp.types" */

/* Module declarations from "libc.stdint" */

/* Module declarations from "fpylll.gmp.mpz" */

/* Module declarations from "fpylll.mpfr.mpfr" */

/* Module declarations from "fpylll.gmp.random" */

/* Module declarations from "libcpp.vector" */

/* Module declarations from "libcpp.string_view" */

/* Module declarations from "libcpp.string" */

/* Module declarations from "libcpp.utility" */

/* Module declarations from "libcpp.pair" */

/* Module declarations from "libcpp" */

/* Module declarations from "libcpp.functional" */

/* Module declarations from "fpylll.fplll.fplll" */

/* Module declarations from "fpylll.qd.qd" */

/* Module declarations from "fpylll.fplll.decl" */

/* Module declarations from "fpylll.fplll.integer_matrix" */

/* Module declarations from "__builtin__" */

/* Module declarations from "cpython.type" */

/* Module declarations from "cpython" */

/* Module declarations from "cpython.object" */

/* Module declarations from "cysignals.signals" */
static cysigs_t *__pyx_vp_9cysignals_7signals_cysigs = 0;
#define cysigs (*__pyx_vp_9cysignals_7signals_cysigs)
static void (*__pyx_f_9cysignals_7signals_verify_exc_value)(void); /*proto*/
static void (*_sig_on_interrupt_received)(void); /*proto*/
static void (*_sig_on_recover)(void); /*proto*/
static void (*_do_raise_exception)(int); /*proto*/
static void (*_sig_off_warning)(char const *, int); /*proto*/
static void (*print_backtrace)(void); /*proto*/

/* Module declarations from "fpylll.util" */
static PyObject *(*__pyx_f_6fpylll_4util_check_float_type)(PyObject *); /*proto*/
static int (*__pyx_f_6fpylll_4util_preprocess_indices)(int &, int &, int, int); /*proto*/

/* Module declarations from "fpylll.io" */
static PyObject *(*__pyx_f_6fpylll_2io_mpz_get_python)(mpz_srcptr); /*proto*/
static void (*__pyx_f_6fpylll_2io_vector_fp_nr_barf)(__pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t &, PyObject *, enum fplll::FloatType); /*proto*/
static PyObject *(*__pyx_f_6fpylll_2io_vector_fp_nr_slurp)(__pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t &, enum fplll::FloatType); /*proto*/
static PyObject *(*__pyx_f_6fpylll_2io_vector_z_nr_slurp)(__pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t &, enum fplll::IntType); /*proto*/

/* Module declarations from "fpylll.fplll.gso" */
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "fpylll.fplll.gso"
extern int __pyx_module_is_main_fpylll__fplll__gso;
int __pyx_module_is_main_fpylll__fplll__gso = 0;

/* Implementation of "fpylll.fplll.gso" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_object;
/* #### Code section: string_decls ### */
static const char __pyx_k_Elementary_basis_operations_Gra[] = "\nElementary basis operations, Gram matrix and Gram-Schmidt orthogonalization.\n\n..  moduleauthor:: Martin R.  Albrecht <martinralbrecht+fpylll@googlemail.com>\n\nA ``MatGSO`` object stores the following information:\n\n    - The integral basis `B`,\n\n    - the Gram-Schmidt coefficients `\316\274_{i,j} = `\342\237\250b_i, b^*_j\342\237\251 / ||b^*_j||^2` for `i>j`, and\n\n    - the coefficients `r_{i,j} = \342\237\250b_i, b^*_j\342\237\251` for `i\342\211\245j`\n\nIt holds that: `B = R \303\227 Q = (\316\274 \303\227 D) \303\227 (D^{-1} \303\227 B^*)` where `Q` is orthonormal and `R` is lower\ntriangular.\n\n";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_M, PyObject *__pyx_v_i, PyObject *__pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_2__enter__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_4__exit__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exception_type, CYTHON_UNUSED PyObject *__pyx_v_exception_value, CYTHON_UNUSED PyObject *__pyx_v_exception_traceback); /* proto */
static int __pyx_pf_6fpylll_5fplll_3gso_6MatGSO___init__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_v_B, PyObject *__pyx_v_U, PyObject *__pyx_v_UinvT, int __pyx_v_flags, PyObject *__pyx_v_float_type, PyObject *__pyx_v_gram, PyObject *__pyx_v_update); /* proto */
static void __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2__dealloc__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_4__reduce__(CYTHON_UNUSED struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1G___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10float_type___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8int_type___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1d___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8row_op_end(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10row_ops(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_12get_gram(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16get_r(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_20get_mu(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_24update_gso(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_last_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_30move_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_old_r, int __pyx_v_new_r); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_32swap_rows(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_34negate_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_36row_addmul(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j, PyObject *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_38create_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_44get_root_det(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_46get_log_det(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row, int __pyx_v_block_size); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_50from_canonical(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_w, int __pyx_v_start, int __pyx_v_dimension); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_52to_canonical(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_v, int __pyx_v_start); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_54babai(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_v, int __pyx_v_start, int __pyx_v_dimension, PyObject *__pyx_v_gso); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_56r(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_end); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1B___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2_G___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1U___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_5UinvT___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self); /* proto */
static PyObject *__pyx_tp_new_6fpylll_5fplll_3gso_MatGSO(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
/* #### Code section: late_includes ### */
#include "macros.h"
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  PyTypeObject *__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix;
  PyTypeObject *__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow;
  PyTypeObject *__pyx_ptype_7cpython_4type_type;
  PyObject *__pyx_type_6fpylll_5fplll_3gso_MatGSO;
  PyTypeObject *__pyx_ptype_6fpylll_5fplll_3gso_MatGSO;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  int __pyx_k_;
  PyObject *__pyx_tuple[6];
  PyObject *__pyx_codeobj_tab[30];
  PyObject *__pyx_string_tab[222];
  PyObject *__pyx_number_tab[4];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;

/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_A_context_in_which_performing_r __pyx_string_tab[0]
#define __pyx_kp_u_Can_only_convert_to_GSO_represen __pyx_string_tab[1]
#define __pyx_kp_u_Changes_the_behaviour_of_row_ad __pyx_string_tab[2]
#define __pyx_kp_u_Computation_of_the_inverse_tran __pyx_string_tab[3]
#define __pyx_kp_u_Computation_of_the_transform_ma __pyx_string_tab[4]
#define __pyx_kp_u_Computing_the_Gram_Matrix_curren __pyx_string_tab[5]
#define __pyx_kp_u_Diagonal_of_input_matrix_has_neg __pyx_string_tab[6]
#define __pyx_kp_u_Exact_computation_of_dot_produc __pyx_string_tab[7]
#define __pyx_kp_u_Float_type_s_not_understood __pyx_string_tab[8]
#define __pyx_kp_u_Given_a_vector_w_wrt_the_canonic __pyx_string_tab[9]
#define __pyx_kp_u_MatGSO_G___get___line_445 __pyx_string_tab[10]
#define __pyx_kp_u_MatGSO___init___line_98 __pyx_string_tab[11]
#define __pyx_kp_u_MatGSO_babai_line_2306 __pyx_string_tab[12]
#define __pyx_kp_u_MatGSO_d___get___line_616 __pyx_string_tab[13]
#define __pyx_kp_u_MatGSO_float_type___get___line_5 __pyx_string_tab[14]
#define __pyx_kp_u_MatGSO_from_canonical_line_2037 __pyx_string_tab[15]
#define __pyx_kp_u_MatGSO_get_r_line_1095 __pyx_string_tab[16]
#define __pyx_kp_u_MatGSO_int_gram_enabled___get __pyx_string_tab[17]
#define __pyx_kp_u_MatGSO_inverse_transform_enabled __pyx_string_tab[18]
#define __pyx_kp_u_MatGSO_negate_row_line_1538 __pyx_string_tab[19]
#define __pyx_kp_u_MatGSO_object_s_has_no_core __pyx_string_tab[20]
#define __pyx_kp_u_MatGSO_row_expo_enabled___get __pyx_string_tab[21]
#define __pyx_kp_u_MatGSO_row_op_force_long___get __pyx_string_tab[22]
#define __pyx_kp_u_MatGSO_transform_enabled___get __pyx_string_tab[23]
#define __pyx_kp_u_Normalization_of_each_row_of_b __pyx_string_tab[24]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[25]
#define __pyx_kp_u_Number_of_rows_of_B_dimension_o __pyx_string_tab[26]
#define __pyx_kp_u_Return_b_i_b__j_param_i_param_j __pyx_string_tab[27]
#define __pyx_kp_u_Return_the_Gram_matrix_If_this __pyx_string_tab[28]
#define __pyx_kp_u_Return_vector_w_s_t_wB_v_is_sma __pyx_string_tab[29]
#define __pyx_kp_u_Set_b_i_to_b_i_param_int_i_index __pyx_string_tab[30]
#define __pyx_kp_u_This_function_is_only_defined_fo __pyx_string_tab[31]
#define __pyx_kp_u_U_int_type_B_int_type __pyx_string_tab[32]
#define __pyx_kp_u_U_nrows_B_nrows __pyx_string_tab[33]
#define __pyx_kp_u_UinvT_int_type_B_int_type __pyx_string_tab[34]
#define __pyx_kp_u_UinvT_nrows_B_nrows __pyx_string_tab[35]
#define __pyx_kp_u_Uinvt_None_but_U_None __pyx_string_tab[36]
#define __pyx_kp_u__2 __pyx_string_tab[37]
#define __pyx_kp_u_add_note __pyx_string_tab[38]
#define __pyx_kp_u_create_row_is_incompatible_with __pyx_string_tab[39]
#define __pyx_kp_u_disable __pyx_string_tab[40]
#define __pyx_kp_u_enable __pyx_string_tab[41]
#define __pyx_kp_u_from_fpylll_import_IntegerMatri __pyx_string_tab[42]
#define __pyx_kp_u_gc __pyx_string_tab[43]
#define __pyx_kp_u_isenabled __pyx_string_tab[44]
#define __pyx_kp_u_long_double __pyx_string_tab[45]
#define __pyx_kp_u_param_IntegerMatrix_B_The_matri __pyx_string_tab[46]
#define __pyx_kp_u_remove_last_row_is_incompatible __pyx_string_tab[47]
#define __pyx_kp_u_src_fpylll_fplll_gso_pyx __pyx_string_tab[48]
#define __pyx_kp_u_type_of_U_s_not_supported __pyx_string_tab[49]
#define __pyx_kp_u_type_of_UinvT_s_not_supported __pyx_string_tab[50]
#define __pyx_n_u_B __pyx_string_tab[51]
#define __pyx_n_u_DEFAULT __pyx_string_tab[52]
#define __pyx_n_u_GSO __pyx_string_tab[53]
#define __pyx_n_u_INT_GRAM __pyx_string_tab[54]
#define __pyx_n_u_M __pyx_string_tab[55]
#define __pyx_n_u_Mat __pyx_string_tab[56]
#define __pyx_n_u_MatGSO __pyx_string_tab[57]
#define __pyx_n_u_MatGSORowOpContext __pyx_string_tab[58]
#define __pyx_n_u_MatGSORowOpContext___enter __pyx_string_tab[59]
#define __pyx_n_u_MatGSORowOpContext___exit __pyx_string_tab[60]
#define __pyx_n_u_MatGSORowOpContext___init __pyx_string_tab[61]
#define __pyx_n_u_MatGSO___reduce __pyx_string_tab[62]
#define __pyx_n_u_MatGSO_babai __pyx_string_tab[63]
#define __pyx_n_u_MatGSO_create_row __pyx_string_tab[64]
#define __pyx_n_u_MatGSO_discover_all_rows __pyx_string_tab[65]
#define __pyx_n_u_MatGSO_from_canonical __pyx_string_tab[66]
#define __pyx_n_u_MatGSO_get_current_slope __pyx_string_tab[67]
#define __pyx_n_u_MatGSO_get_gram __pyx_string_tab[68]
#define __pyx_n_u_MatGSO_get_int_gram __pyx_string_tab[69]
#define __pyx_n_u_MatGSO_get_log_det __pyx_string_tab[70]
#define __pyx_n_u_MatGSO_get_mu __pyx_string_tab[71]
#define __pyx_n_u_MatGSO_get_mu_exp __pyx_string_tab[72]
#define __pyx_n_u_MatGSO_get_r __pyx_string_tab[73]
#define __pyx_n_u_MatGSO_get_r_exp __pyx_string_tab[74]
#define __pyx_n_u_MatGSO_get_root_det __pyx_string_tab[75]
#define __pyx_n_u_MatGSO_get_slide_potential __pyx_string_tab[76]
#define __pyx_n_u_MatGSO_move_row __pyx_string_tab[77]
#define __pyx_n_u_MatGSO_negate_row __pyx_string_tab[78]
#define __pyx_n_u_MatGSO_r __pyx_string_tab[79]
#define __pyx_n_u_MatGSO_remove_last_row __pyx_string_tab[80]
#define __pyx_n_u_MatGSO_row_addmul __pyx_string_tab[81]
#define __pyx_n_u_MatGSO_row_op_begin __pyx_string_tab[82]
#define __pyx_n_u_MatGSO_row_op_end __pyx_string_tab[83]
#define __pyx_n_u_MatGSO_row_ops __pyx_string_tab[84]
#define __pyx_n_u_MatGSO_swap_rows __pyx_string_tab[85]
#define __pyx_n_u_MatGSO_to_canonical __pyx_string_tab[86]
#define __pyx_n_u_MatGSO_update_gso __pyx_string_tab[87]
#define __pyx_n_u_MatGSO_update_gso_row __pyx_string_tab[88]
#define __pyx_n_u_OP_FORCE_LONG __pyx_string_tab[89]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[90]
#define __pyx_n_u_ROW_EXPO __pyx_string_tab[91]
#define __pyx_n_u_U __pyx_string_tab[92]
#define __pyx_n_u_UinvT __pyx_string_tab[93]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[94]
#define __pyx_n_u_babai __pyx_string_tab[95]
#define __pyx_n_u_block_size __pyx_string_tab[96]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[97]
#define __pyx_n_u_create_row __pyx_string_tab[98]
#define __pyx_n_u_cv __pyx_string_tab[99]
#define __pyx_n_u_cw __pyx_string_tab[100]
#define __pyx_n_u_d __pyx_string_tab[101]
#define __pyx_n_u_dd __pyx_string_tab[102]
#define __pyx_n_u_dimension __pyx_string_tab[103]
#define __pyx_n_u_discover_all_rows __pyx_string_tab[104]
#define __pyx_n_u_doc __pyx_string_tab[105]
#define __pyx_n_u_double __pyx_string_tab[106]
#define __pyx_n_u_dpe __pyx_string_tab[107]
#define __pyx_n_u_end __pyx_string_tab[108]
#define __pyx_n_u_enter __pyx_string_tab[109]
#define __pyx_n_u_exception_traceback __pyx_string_tab[110]
#define __pyx_n_u_exception_type __pyx_string_tab[111]
#define __pyx_n_u_exception_value __pyx_string_tab[112]
#define __pyx_n_u_exit __pyx_string_tab[113]
#define __pyx_n_u_expo __pyx_string_tab[114]
#define __pyx_n_u_first __pyx_string_tab[115]
#define __pyx_n_u_flags __pyx_string_tab[116]
#define __pyx_n_u_float_type __pyx_string_tab[117]
#define __pyx_n_u_fpylll_fplll_gso __pyx_string_tab[118]
#define __pyx_n_u_from_canonical __pyx_string_tab[119]
#define __pyx_n_u_func __pyx_string_tab[120]
#define __pyx_n_u_get_current_slope __pyx_string_tab[121]
#define __pyx_n_u_get_gram __pyx_string_tab[122]
#define __pyx_n_u_get_int_gram __pyx_string_tab[123]
#define __pyx_n_u_get_log_det __pyx_string_tab[124]
#define __pyx_n_u_get_mu __pyx_string_tab[125]
#define __pyx_n_u_get_mu_exp __pyx_string_tab[126]
#define __pyx_n_u_get_r __pyx_string_tab[127]
#define __pyx_n_u_get_r_exp __pyx_string_tab[128]
#define __pyx_n_u_get_root_det __pyx_string_tab[129]
#define __pyx_n_u_get_slide_potential __pyx_string_tab[130]
#define __pyx_n_u_gram __pyx_string_tab[131]
#define __pyx_n_u_gso __pyx_string_tab[132]
#define __pyx_n_u_i __pyx_string_tab[133]
#define __pyx_n_u_init __pyx_string_tab[134]
#define __pyx_n_u_int_gram_enabled __pyx_string_tab[135]
#define __pyx_n_u_int_type __pyx_string_tab[136]
#define __pyx_n_u_inverse_transform_enabled __pyx_string_tab[137]
#define __pyx_n_u_is_coroutine __pyx_string_tab[138]
#define __pyx_n_u_items __pyx_string_tab[139]
#define __pyx_n_u_j __pyx_string_tab[140]
#define __pyx_n_u_last __pyx_string_tab[141]
#define __pyx_n_u_last_j __pyx_string_tab[142]
#define __pyx_n_u_long __pyx_string_tab[143]
#define __pyx_n_u_main __pyx_string_tab[144]
#define __pyx_n_u_metaclass __pyx_string_tab[145]
#define __pyx_n_u_module __pyx_string_tab[146]
#define __pyx_n_u_move_row __pyx_string_tab[147]
#define __pyx_n_u_mpfr __pyx_string_tab[148]
#define __pyx_n_u_mpz __pyx_string_tab[149]
#define __pyx_n_u_mro_entries __pyx_string_tab[150]
#define __pyx_n_u_name __pyx_string_tab[151]
#define __pyx_n_u_negate_row __pyx_string_tab[152]
#define __pyx_n_u_new_r __pyx_string_tab[153]
#define __pyx_n_u_nrows __pyx_string_tab[154]
#define __pyx_n_u_object __pyx_string_tab[155]
#define __pyx_n_u_old_r __pyx_string_tab[156]
#define __pyx_n_u_pop __pyx_string_tab[157]
#define __pyx_n_u_prepare __pyx_string_tab[158]
#define __pyx_n_u_pyx_vtable __pyx_string_tab[159]
#define __pyx_n_u_qd __pyx_string_tab[160]
#define __pyx_n_u_qualname __pyx_string_tab[161]
#define __pyx_n_u_r __pyx_string_tab[162]
#define __pyx_n_u_reduce __pyx_string_tab[163]
#define __pyx_n_u_remove_last_row __pyx_string_tab[164]
#define __pyx_n_u_row_addmul __pyx_string_tab[165]
#define __pyx_n_u_row_op_begin __pyx_string_tab[166]
#define __pyx_n_u_row_op_end __pyx_string_tab[167]
#define __pyx_n_u_row_ops __pyx_string_tab[168]
#define __pyx_n_u_self __pyx_string_tab[169]
#define __pyx_n_u_set_name __pyx_string_tab[170]
#define __pyx_n_u_setdefault __pyx_string_tab[171]
#define __pyx_n_u_start __pyx_string_tab[172]
#define __pyx_n_u_start_row __pyx_string_tab[173]
#define __pyx_n_u_stop_row __pyx_string_tab[174]
#define __pyx_n_u_swap_rows __pyx_string_tab[175]
#define __pyx_n_u_t __pyx_string_tab[176]
#define __pyx_n_u_test __pyx_string_tab[177]
#define __pyx_n_u_tmp __pyx_string_tab[178]
#define __pyx_n_u_to_canonical __pyx_string_tab[179]
#define __pyx_n_u_update __pyx_string_tab[180]
#define __pyx_n_u_update_gso __pyx_string_tab[181]
#define __pyx_n_u_update_gso_row __pyx_string_tab[182]
#define __pyx_n_u_v __pyx_string_tab[183]
#define __pyx_n_u_values __pyx_string_tab[184]
#define __pyx_n_u_w __pyx_string_tab[185]
#define __pyx_n_u_x __pyx_string_tab[186]
#define __pyx_n_u_x_2 __pyx_string_tab[187]
#define __pyx_kp_b_PyObject_PyObject_int_int_int_in __pyx_string_tab[188]
#define __pyx_kp_b_PyObject___pyx_t_6fpylll_5fplll __pyx_string_tab[189]
#define __pyx_kp_b_cysigs_t_cysigs __pyx_string_tab[190]
#define __pyx_kp_b_iso88591_37_v_T_Cr_4s_D_c_1A_4q_t7_Q_c_a __pyx_string_tab[191]
#define __pyx_kp_b_iso88591_4vS_1A_4wc_Qd_Q_0_F_arQUUWW_1_Q __pyx_string_tab[192]
#define __pyx_kp_b_iso88591_A4_4vS_1A_4wc_Qd_Q_0_F_PQQSSWWY __pyx_string_tab[193]
#define __pyx_kp_b_iso88591_AD_Kq_3a __pyx_string_tab[194]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV6_4s_F_t7_Q_t6_a __pyx_string_tab[195]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV7_1D_2V1_t7_Q_t6 __pyx_string_tab[196]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV9AQd_RvQ_t7_Q_t6 __pyx_string_tab[197]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV9AS_t7_Q_t6_Q_4w __pyx_string_tab[198]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_F_1Cs_y_3a_t7_Q_D_g __pyx_string_tab[199]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_F_3c_iq_3a_t7_Q_D_g __pyx_string_tab[200]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_e5_4vV_as_Rq_t7_Q_Q __pyx_string_tab[201]
#define __pyx_kp_b_iso88591_A_3c_T_Q_4wc_fM_6_A_4y_t7_Q_F_aq __pyx_string_tab[202]
#define __pyx_kp_b_iso88591_A_4q_AQ_4wc_4vV_31_t7_Q_t6_8_4wc __pyx_string_tab[203]
#define __pyx_kp_b_iso88591_A_4q_AQ_4wc_4vV_a_t7_Q_t6_1_4wc __pyx_string_tab[204]
#define __pyx_kp_b_iso88591_A_4wc_4q_F_q_1_t7_Q_t1D_g_AS_4wc __pyx_string_tab[205]
#define __pyx_kp_b_iso88591_A_4wc_4vV_5Q_t7_Q_t6_4wc_4vX_7q __pyx_string_tab[206]
#define __pyx_kp_b_iso88591_A_4wc_4vV_awa_t7_Q_t6_1G1_4wc_4v __pyx_string_tab[207]
#define __pyx_kp_b_iso88591_A_4wc_4vV_t7_Q_t6_QgQ_4wc_4vX_7 __pyx_string_tab[208]
#define __pyx_kp_b_iso88591_A_4wc_D_fKq_4q_t7_Q_F_A_t1A_4wc __pyx_string_tab[209]
#define __pyx_kp_b_iso88591_A_7_T_Q_4wc_4vV9AWA_t7_Q_t6_4wc __pyx_string_tab[210]
#define __pyx_kp_b_iso88591_A_Bk_d_a_q __pyx_string_tab[211]
#define __pyx_kp_b_iso88591_A_Bm1D_D_q __pyx_string_tab[212]
#define __pyx_kp_b_iso88591_A_E_E_E __pyx_string_tab[213]
#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[214]
#define __pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_2_a_1_1_t7_Q_a_D __pyx_string_tab[215]
#define __pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_4A_U_1_1_1_F_6a __pyx_string_tab[216]
#define __pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_A_q_1_1_1_F_a_6 __pyx_string_tab[217]
#define __pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_Qk_1_1_1_F_q_9F __pyx_string_tab[218]
#define __pyx_kp_b_iso88591_A_q __pyx_string_tab[219]
#define __pyx_kp_b_iso88591_ha_4t1_a_uAQd_Ct5_QgQ __pyx_string_tab[220]
#define __pyx_kp_b_void_char_const_int_void_int_voi __pyx_string_tab[221]
#define __pyx_float_neg_2_0 __pyx_number_tab[0]
#define __pyx_int_0 __pyx_number_tab[1]
#define __pyx_int_neg_1 __pyx_number_tab[2]
#define __pyx_int_1 __pyx_number_tab[3]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix);
  Py_CLEAR(clear_module_state->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type);
  Py_CLEAR(clear_module_state->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO);
  Py_CLEAR(clear_module_state->__pyx_type_6fpylll_5fplll_3gso_MatGSO);
  for (int i=0; i<6; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<30; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<222; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<4; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix);
  Py_VISIT(traverse_module_state->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type);
  Py_VISIT(traverse_module_state->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO);
  Py_VISIT(traverse_module_state->__pyx_type_6fpylll_5fplll_3gso_MatGSO);
  for (int i=0; i<6; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<30; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<222; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<4; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "cysignals/signals.pxd":62
 * # (PyErr_Occurred() is non-NULL). To Cython, it will look like
 * # cython_check_exception() actually raised the exception.
 * cdef inline void cython_check_exception() except * nogil:             # <<<<<<<<<<<<<<
 *     pass
 * 
*/

static CYTHON_INLINE void __pyx_f_9cysignals_7signals_cython_check_exception(void) {

  /* function exit code */
}

/* "cysignals/signals.pxd":68
 * cdef void verify_exc_value() noexcept
 * 
 * cdef inline PyObject* sig_occurred() noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Borrowed reference to the exception which is currently being
*/

static CYTHON_INLINE PyObject *__pyx_f_9cysignals_7signals_sig_occurred(void) {
  PyObject *__pyx_r;
  int __pyx_t_1;

  /* "cysignals/signals.pxd":82
 *     exception is stored somewhere.
 *     """
 *     if unlikely(cysigs.exc_value is not NULL):             # <<<<<<<<<<<<<<
 *         verify_exc_value()
 *     return cysigs.exc_value
*/
  __pyx_t_1 = (unlikely((cysigs.exc_value != NULL)) != 0);
  if (__pyx_t_1) {

    /* "cysignals/signals.pxd":83
 *     """
 *     if unlikely(cysigs.exc_value is not NULL):
 *         verify_exc_value()             # <<<<<<<<<<<<<<
 *     return cysigs.exc_value
 * 
*/
    __pyx_f_9cysignals_7signals_verify_exc_value();

    /* "cysignals/signals.pxd":82
 *     exception is stored somewhere.
 *     """
 *     if unlikely(cysigs.exc_value is not NULL):             # <<<<<<<<<<<<<<
 *         verify_exc_value()
 *     return cysigs.exc_value
*/
  }

  /* "cysignals/signals.pxd":84
 *     if unlikely(cysigs.exc_value is not NULL):
 *         verify_exc_value()
 *     return cysigs.exc_value             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = cysigs.exc_value;
  goto __pyx_L0;

  /* "cysignals/signals.pxd":68
 * cdef void verify_exc_value() noexcept
 * 
 * cdef inline PyObject* sig_occurred() noexcept:             # <<<<<<<<<<<<<<
 *     """
 *     Borrowed reference to the exception which is currently being
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cysignals/signals.pxd":99
 * 
 * 
 * cdef inline void __generate_declarations() noexcept:             # <<<<<<<<<<<<<<
 *     cysigs
 *     _sig_on_interrupt_received
*/

static CYTHON_INLINE void __pyx_f_9cysignals_7signals___generate_declarations(void) {

  /* "cysignals/signals.pxd":100
 * 
 * cdef inline void __generate_declarations() noexcept:
 *     cysigs             # <<<<<<<<<<<<<<
 *     _sig_on_interrupt_received
 *     _sig_on_recover
*/
  (void)(cysigs);

  /* "cysignals/signals.pxd":101
 * cdef inline void __generate_declarations() noexcept:
 *     cysigs
 *     _sig_on_interrupt_received             # <<<<<<<<<<<<<<
 *     _sig_on_recover
 *     _do_raise_exception
*/
  (void)(_sig_on_interrupt_received);

  /* "cysignals/signals.pxd":102
 *     cysigs
 *     _sig_on_interrupt_received
 *     _sig_on_recover             # <<<<<<<<<<<<<<
 *     _do_raise_exception
 *     _sig_off_warning
*/
  (void)(_sig_on_recover);

  /* "cysignals/signals.pxd":103
 *     _sig_on_interrupt_received
 *     _sig_on_recover
 *     _do_raise_exception             # <<<<<<<<<<<<<<
 *     _sig_off_warning
 *     print_backtrace
*/
  (void)(_do_raise_exception);

  /* "cysignals/signals.pxd":104
 *     _sig_on_recover
 *     _do_raise_exception
 *     _sig_off_warning             # <<<<<<<<<<<<<<
 *     print_backtrace
*/
  (void)(_sig_off_warning);

  /* "cysignals/signals.pxd":105
 *     _do_raise_exception
 *     _sig_off_warning
 *     print_backtrace             # <<<<<<<<<<<<<<
*/
  (void)(print_backtrace);

  /* "cysignals/signals.pxd":99
 * 
 * 
 * cdef inline void __generate_declarations() noexcept:             # <<<<<<<<<<<<<<
 *     cysigs
 *     _sig_on_interrupt_received
*/

  /* function exit code */
}

/* "fpylll/fplll/gso.pyx":58
 *     updates are performed by calling ``row_op_end()``.
 *     """
 *     def __init__(self, M, i, j):             # <<<<<<<<<<<<<<
 *         """Construct new context for ``M[i:j]``.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext___init__, "MatGSORowOpContext.__init__(self, M, i, j)\n\nConstruct new context for ``M[i:j]``.\n\n:param M: MatGSO object\n:param i: start row\n:param j: stop row");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext___init__};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_M = 0;
  PyObject *__pyx_v_i = 0;
  PyObject *__pyx_v_j = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_M,&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 58, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 58, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 58, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 58, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 58, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 58, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, i); __PYX_ERR(0, 58, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 58, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 58, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 58, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 58, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_M = values[1];
    __pyx_v_i = values[2];
    __pyx_v_j = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 58, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext___init__(__pyx_self, __pyx_v_self, __pyx_v_M, __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_M, PyObject *__pyx_v_i, PyObject *__pyx_v_j) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "fpylll/fplll/gso.pyx":66
 * 
 *         """
 *         self.i = i             # <<<<<<<<<<<<<<
 *         self.j = j
 *         self.M = M
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_i, __pyx_v_i) < (0)) __PYX_ERR(0, 66, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":67
 *         """
 *         self.i = i
 *         self.j = j             # <<<<<<<<<<<<<<
 *         self.M = M
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_j, __pyx_v_j) < (0)) __PYX_ERR(0, 67, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":68
 *         self.i = i
 *         self.j = j
 *         self.M = M             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_M, __pyx_v_M) < (0)) __PYX_ERR(0, 68, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":58
 *     updates are performed by calling ``row_op_end()``.
 *     """
 *     def __init__(self, M, i, j):             # <<<<<<<<<<<<<<
 *         """Construct new context for ``M[i:j]``.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":70
 *         self.M = M
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Enter context for working on rows.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_3__enter__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext_2__enter__, "MatGSORowOpContext.__enter__(self)\n\nEnter context for working on rows.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_3__enter__ = {"__enter__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_3__enter__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext_2__enter__};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_3__enter__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 70, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 70, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__enter__", 0) < (0)) __PYX_ERR(0, 70, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__enter__", 1, 1, 1, i); __PYX_ERR(0, 70, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 70, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__enter__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 70, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__enter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_2__enter__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_2__enter__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "fpylll/fplll/gso.pyx":75
 * 
 *         """
 *         self.M.row_op_begin(self.i, self.j)             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_M); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_4, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_row_op_begin, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "fpylll/fplll/gso.pyx":76
 *         """
 *         self.M.row_op_begin(self.i, self.j)
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __exit__(self, exception_type, exception_value, exception_traceback):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self);
  __pyx_r = __pyx_v_self;
  goto __pyx_L0;

  /* "fpylll/fplll/gso.pyx":70
 *         self.M = M
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Enter context for working on rows.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__enter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":78
 *         return self
 * 
 *     def __exit__(self, exception_type, exception_value, exception_traceback):             # <<<<<<<<<<<<<<
 *         """
 *         Exit context for working on rows.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_5__exit__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext_4__exit__, "MatGSORowOpContext.__exit__(self, exception_type, exception_value, exception_traceback)\n\nExit context for working on rows.\n\n:param exception_type:\n:param exception_value:\n:param exception_traceback:");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_5__exit__ = {"__exit__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_5__exit__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_18MatGSORowOpContext_4__exit__};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_18MatGSORowOpContext_5__exit__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_exception_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_exception_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_exception_traceback = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_exception_type,&__pyx_mstate_global->__pyx_n_u_exception_value,&__pyx_mstate_global->__pyx_n_u_exception_traceback,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 78, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 78, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__exit__", 0) < (0)) __PYX_ERR(0, 78, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 4, 4, i); __PYX_ERR(0, 78, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 78, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 78, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 78, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 78, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_exception_type = values[1];
    __pyx_v_exception_value = values[2];
    __pyx_v_exception_traceback = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 78, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_4__exit__(__pyx_self, __pyx_v_self, __pyx_v_exception_type, __pyx_v_exception_value, __pyx_v_exception_traceback);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_18MatGSORowOpContext_4__exit__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exception_type, CYTHON_UNUSED PyObject *__pyx_v_exception_value, CYTHON_UNUSED PyObject *__pyx_v_exception_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "fpylll/fplll/gso.pyx":87
 * 
 *         """
 *         self.M.row_op_end(self.i, self.j)             # <<<<<<<<<<<<<<
 *         return False
 * 
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_M); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_4, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_row_op_end, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "fpylll/fplll/gso.pyx":88
 *         """
 *         self.M.row_op_end(self.i, self.j)
 *         return False             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_False);
  __pyx_r = Py_False;
  goto __pyx_L0;

  /* "fpylll/fplll/gso.pyx":78
 *         return self
 * 
 *     def __exit__(self, exception_type, exception_value, exception_traceback):             # <<<<<<<<<<<<<<
 *         """
 *         Exit context for working on rows.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSORowOpContext.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":98
 *     """
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,             # <<<<<<<<<<<<<<
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):
 *         """
*/

/* Python wrapper */
static int __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO___init__, "\n        :param IntegerMatrix B: The matrix on which row operations are performed.  It must not be\n            empty.\n        :param IntegerMatrix U: If ``U`` is not empty, operations on ``B`` are also done on ``u``\n            (in this case both must have the same number of rows).  If ``u`` is initially the\n            identity matrix, multiplying transform by the initial basis gives the current basis.\n        :param IntegerMatrix UinvT: Inverse transform (should be empty, which disables the\n            computation, or initialized with identity matrix).  It works only if ``U`` is not empty.\n        :param int flags: Flags\n\n                - ``GSO.INT_GRAM`` - If true, coefficients of the Gram matrix are computed with\n                  exact integer arithmetic.  Otherwise, they are computed in floating-point.  Note\n                  that when exact arithmetic is used, all coefficients of the first ``n_known_rows``\n                  are continuously updated, whereas in floating-point, they are computed only\n                  on-demand.  This option cannot be enabled when ``GSO.ROW_EXPO`` is set.\n\n                - ``GSO.ROW_EXPO`` - If true, each row of ``B`` is normalized by a power of 2 before\n                  doing conversion to floating-point, which hopefully avoids some overflows.  This\n                  option cannot be enabled if ``GSO.INT_GRAM`` is set and works only with\n                  ``float_type=\"double\"`` and ``float_type=\"long double\"``.  It is useless and\n                  **must not** be used for ``float_type=\"dpe\"``, ``float_type=\"dd\"``,\n                  ``float_type=\"qd\"`` or ``float_type=mpfr_t``.\n\n                - ``GSO.OP_FORCE_LONG`` - Affects the behaviour of ``row_addmul``.  See its\n                  documentation.\n\n        :param float_type: A floating point type, i.e. an element of ``fpylll.config.float_types``.\n            If ``float_type=\"mpfr\"`` set precision with ``set_precision()`` before con""structing this\n            object and do not change the precision during the lifetime of this object.\n\n        :param gram: The input ``B`` is a Gram matrix of the lattice, rather than a basis.\n\n        :param update: Call ``update_gso()``.\n\n        Note that matching integer types for ``B``, ``U`` and ``UinvT`` are enforced::\n\n            >>> from fpylll import IntegerMatrix, LLL, GSO\n            >>> B = IntegerMatrix.random(5, 'uniform', bits = 8, int_type = \"long\")\n            >>> M = GSO.Mat(B, U = IntegerMatrix.identity(B.nrows))\n            Traceback (most recent call last):\n            ...\n            TypeError: U.int_type != B.int_type\n\n            >>> from fpylll import IntegerMatrix, LLL, GSO\n            >>> B = IntegerMatrix.random(5, 'uniform', bits=8, int_type=\"long\")\n            >>> M = GSO.Mat(B, U = IntegerMatrix.identity(B.nrows, int_type=\"long\"))\n\n        ");
#if CYTHON_UPDATE_DESCRIPTOR_DOC
struct wrapperbase __pyx_wrapperbase_6fpylll_5fplll_3gso_6MatGSO___init__;
#endif
static int __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_v_B = 0;
  PyObject *__pyx_v_U = 0;
  PyObject *__pyx_v_UinvT = 0;
  int __pyx_v_flags;
  PyObject *__pyx_v_float_type = 0;
  PyObject *__pyx_v_gram = 0;
  PyObject *__pyx_v_update = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_B,&__pyx_mstate_global->__pyx_n_u_U,&__pyx_mstate_global->__pyx_n_u_UinvT,&__pyx_mstate_global->__pyx_n_u_flags,&__pyx_mstate_global->__pyx_n_u_float_type,&__pyx_mstate_global->__pyx_n_u_gram,&__pyx_mstate_global->__pyx_n_u_update,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 98, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_VARARGS(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_VARARGS(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 98, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_double));

      /* "fpylll/fplll/gso.pyx":99
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):             # <<<<<<<<<<<<<<
 *         """
 *         :param IntegerMatrix B: The matrix on which row operations are performed.  It must not be
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 7, i); __PYX_ERR(0, 98, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_VARARGS(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_VARARGS(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 98, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "fpylll/fplll/gso.pyx":98
 *     """
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,             # <<<<<<<<<<<<<<
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):
 *         """
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_double));

      /* "fpylll/fplll/gso.pyx":99
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):             # <<<<<<<<<<<<<<
 *         """
 *         :param IntegerMatrix B: The matrix on which row operations are performed.  It must not be
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_B = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)values[0]);
    __pyx_v_U = values[1];
    __pyx_v_UinvT = values[2];
    if (values[3]) {
      __pyx_v_flags = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 99, __pyx_L3_error)
    } else {
      __pyx_v_flags = __pyx_mstate_global->__pyx_k_;
    }
    __pyx_v_float_type = values[4];
    __pyx_v_gram = values[5];
    __pyx_v_update = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 7, __pyx_nargs); __PYX_ERR(0, 98, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix, 1, "B", 0))) __PYX_ERR(0, 98, __pyx_L1_error)
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO___init__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_B, __pyx_v_U, __pyx_v_UinvT, __pyx_v_flags, __pyx_v_float_type, __pyx_v_gram, __pyx_v_update);

  /* "fpylll/fplll/gso.pyx":98
 *     """
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,             # <<<<<<<<<<<<<<
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):
 *         """
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6fpylll_5fplll_3gso_6MatGSO___init__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_v_B, PyObject *__pyx_v_U, PyObject *__pyx_v_UinvT, int __pyx_v_flags, PyObject *__pyx_v_float_type, PyObject *__pyx_v_gram, PyObject *__pyx_v_update) {
  fplll::Matrix<fplll::Z_NR<mpz_t> >  *__pyx_v_b_m;
  fplll::Matrix<fplll::Z_NR<mpz_t> >  *__pyx_v_u_m;
  fplll::Matrix<fplll::Z_NR<mpz_t> >  *__pyx_v_u_inv_t_m;
  fplll::Matrix<fplll::Z_NR<long> >  *__pyx_v_b_l;
  fplll::Matrix<fplll::Z_NR<long> >  *__pyx_v_u_l;
  fplll::Matrix<fplll::Z_NR<long> >  *__pyx_v_u_inv_t_l;
  enum fplll::FloatType __pyx_v_float_type_;
  PyObject *__pyx_v_i = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  enum fplll::FloatType __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "fpylll/fplll/gso.pyx":149
 *         """
 * 
 *         if U is None:             # <<<<<<<<<<<<<<
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):
*/
  __pyx_t_1 = (__pyx_v_U == Py_None);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":150
 * 
 *         if U is None:
 *             self.U = IntegerMatrix(0, 0)             # <<<<<<<<<<<<<<
 *         elif isinstance(U, IntegerMatrix):
 *             if U.nrows != B.nrows:
*/
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix), __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->U);
    __Pyx_DECREF((PyObject *)__pyx_v_self->U);
    __pyx_v_self->U = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "fpylll/fplll/gso.pyx":149
 *         """
 * 
 *         if U is None:             # <<<<<<<<<<<<<<
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):
*/
    goto __pyx_L3;
  }

  /* "fpylll/fplll/gso.pyx":151
 *         if U is None:
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):             # <<<<<<<<<<<<<<
 *             if U.nrows != B.nrows:
 *                 raise ValueError("U.nrows != B.nrows")
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_U, __pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix); 
  if (likely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":152
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):
 *             if U.nrows != B.nrows:             # <<<<<<<<<<<<<<
 *                 raise ValueError("U.nrows != B.nrows")
 *             if U.int_type != B.int_type:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_U, __pyx_mstate_global->__pyx_n_u_nrows); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_n_u_nrows); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 152, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "fpylll/fplll/gso.pyx":153
 *         elif isinstance(U, IntegerMatrix):
 *             if U.nrows != B.nrows:
 *                 raise ValueError("U.nrows != B.nrows")             # <<<<<<<<<<<<<<
 *             if U.int_type != B.int_type:
 *                 raise TypeError("U.int_type != B.int_type")
*/
      __pyx_t_3 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_U_nrows_B_nrows};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 153, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":152
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):
 *             if U.nrows != B.nrows:             # <<<<<<<<<<<<<<
 *                 raise ValueError("U.nrows != B.nrows")
 *             if U.int_type != B.int_type:
*/
    }

    /* "fpylll/fplll/gso.pyx":154
 *             if U.nrows != B.nrows:
 *                 raise ValueError("U.nrows != B.nrows")
 *             if U.int_type != B.int_type:             # <<<<<<<<<<<<<<
 *                 raise TypeError("U.int_type != B.int_type")
 *             self.U = U
*/
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_U, __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 154, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "fpylll/fplll/gso.pyx":155
 *                 raise ValueError("U.nrows != B.nrows")
 *             if U.int_type != B.int_type:
 *                 raise TypeError("U.int_type != B.int_type")             # <<<<<<<<<<<<<<
 *             self.U = U
 *         else:
*/
      __pyx_t_3 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_U_int_type_B_int_type};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 155, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":154
 *             if U.nrows != B.nrows:
 *                 raise ValueError("U.nrows != B.nrows")
 *             if U.int_type != B.int_type:             # <<<<<<<<<<<<<<
 *                 raise TypeError("U.int_type != B.int_type")
 *             self.U = U
*/
    }

    /* "fpylll/fplll/gso.pyx":156
 *             if U.int_type != B.int_type:
 *                 raise TypeError("U.int_type != B.int_type")
 *             self.U = U             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError("type of U (%s) not supported"%type(U))
*/
    __pyx_t_2 = __pyx_v_U;
    __Pyx_INCREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix))))) __PYX_ERR(0, 156, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->U);
    __Pyx_DECREF((PyObject *)__pyx_v_self->U);
    __pyx_v_self->U = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "fpylll/fplll/gso.pyx":151
 *         if U is None:
 *             self.U = IntegerMatrix(0, 0)
 *         elif isinstance(U, IntegerMatrix):             # <<<<<<<<<<<<<<
 *             if U.nrows != B.nrows:
 *                 raise ValueError("U.nrows != B.nrows")
*/
    goto __pyx_L3;
  }

  /* "fpylll/fplll/gso.pyx":158
 *             self.U = U
 *         else:
 *             raise TypeError("type of U (%s) not supported"%type(U))             # <<<<<<<<<<<<<<
 * 
 *         if UinvT is None:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_type_of_U_s_not_supported, ((PyObject *)Py_TYPE(__pyx_v_U))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 158, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "fpylll/fplll/gso.pyx":160
 *             raise TypeError("type of U (%s) not supported"%type(U))
 * 
 *         if UinvT is None:             # <<<<<<<<<<<<<<
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):
*/
  __pyx_t_1 = (__pyx_v_UinvT == Py_None);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":161
 * 
 *         if UinvT is None:
 *             self.UinvT = IntegerMatrix(0, 0)             # <<<<<<<<<<<<<<
 *         elif isinstance(UinvT, IntegerMatrix):
 *             if U is None:
*/
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix), __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->UinvT);
    __Pyx_DECREF((PyObject *)__pyx_v_self->UinvT);
    __pyx_v_self->UinvT = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "fpylll/fplll/gso.pyx":160
 *             raise TypeError("type of U (%s) not supported"%type(U))
 * 
 *         if UinvT is None:             # <<<<<<<<<<<<<<
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):
*/
    goto __pyx_L6;
  }

  /* "fpylll/fplll/gso.pyx":162
 *         if UinvT is None:
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):             # <<<<<<<<<<<<<<
 *             if U is None:
 *                 raise ValueError("Uinvt != None but U == None.")
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_UinvT, __pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix); 
  if (likely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":163
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):
 *             if U is None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Uinvt != None but U == None.")
 *             if UinvT.nrows != B.nrows:
*/
    __pyx_t_1 = (__pyx_v_U == Py_None);
    if (unlikely(__pyx_t_1)) {

      /* "fpylll/fplll/gso.pyx":164
 *         elif isinstance(UinvT, IntegerMatrix):
 *             if U is None:
 *                 raise ValueError("Uinvt != None but U == None.")             # <<<<<<<<<<<<<<
 *             if UinvT.nrows != B.nrows:
 *                 raise ValueError("UinvT.nrows != B.nrows")
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Uinvt_None_but_U_None};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 164, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":163
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):
 *             if U is None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Uinvt != None but U == None.")
 *             if UinvT.nrows != B.nrows:
*/
    }

    /* "fpylll/fplll/gso.pyx":165
 *             if U is None:
 *                 raise ValueError("Uinvt != None but U == None.")
 *             if UinvT.nrows != B.nrows:             # <<<<<<<<<<<<<<
 *                 raise ValueError("UinvT.nrows != B.nrows")
 *             self.UinvT = UinvT
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_UinvT, __pyx_mstate_global->__pyx_n_u_nrows); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_n_u_nrows); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "fpylll/fplll/gso.pyx":166
 *                 raise ValueError("Uinvt != None but U == None.")
 *             if UinvT.nrows != B.nrows:
 *                 raise ValueError("UinvT.nrows != B.nrows")             # <<<<<<<<<<<<<<
 *             self.UinvT = UinvT
 *             if UinvT.int_type != B.int_type:
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_UinvT_nrows_B_nrows};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 166, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":165
 *             if U is None:
 *                 raise ValueError("Uinvt != None but U == None.")
 *             if UinvT.nrows != B.nrows:             # <<<<<<<<<<<<<<
 *                 raise ValueError("UinvT.nrows != B.nrows")
 *             self.UinvT = UinvT
*/
    }

    /* "fpylll/fplll/gso.pyx":167
 *             if UinvT.nrows != B.nrows:
 *                 raise ValueError("UinvT.nrows != B.nrows")
 *             self.UinvT = UinvT             # <<<<<<<<<<<<<<
 *             if UinvT.int_type != B.int_type:
 *                 raise TypeError("UinvT.int_type != B.int_type")
*/
    __pyx_t_3 = __pyx_v_UinvT;
    __Pyx_INCREF(__pyx_t_3);
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix))))) __PYX_ERR(0, 167, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->UinvT);
    __Pyx_DECREF((PyObject *)__pyx_v_self->UinvT);
    __pyx_v_self->UinvT = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "fpylll/fplll/gso.pyx":168
 *                 raise ValueError("UinvT.nrows != B.nrows")
 *             self.UinvT = UinvT
 *             if UinvT.int_type != B.int_type:             # <<<<<<<<<<<<<<
 *                 raise TypeError("UinvT.int_type != B.int_type")
 *         else:
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_UinvT, __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 168, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "fpylll/fplll/gso.pyx":169
 *             self.UinvT = UinvT
 *             if UinvT.int_type != B.int_type:
 *                 raise TypeError("UinvT.int_type != B.int_type")             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError("type of UinvT (%s) not supported"%type(UinvT))
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_UinvT_int_type_B_int_type};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 169, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 169, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":168
 *                 raise ValueError("UinvT.nrows != B.nrows")
 *             self.UinvT = UinvT
 *             if UinvT.int_type != B.int_type:             # <<<<<<<<<<<<<<
 *                 raise TypeError("UinvT.int_type != B.int_type")
 *         else:
*/
    }

    /* "fpylll/fplll/gso.pyx":162
 *         if UinvT is None:
 *             self.UinvT = IntegerMatrix(0, 0)
 *         elif isinstance(UinvT, IntegerMatrix):             # <<<<<<<<<<<<<<
 *             if U is None:
 *                 raise ValueError("Uinvt != None but U == None.")
*/
    goto __pyx_L6;
  }

  /* "fpylll/fplll/gso.pyx":171
 *                 raise TypeError("UinvT.int_type != B.int_type")
 *         else:
 *             raise TypeError("type of UinvT (%s) not supported"%type(UinvT))             # <<<<<<<<<<<<<<
 * 
 *         cdef Matrix[Z_NR[mpz_t]] *b_m = <Matrix[Z_NR[mpz_t]]*>B._core.mpz
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_type_of_UinvT_s_not_supported, ((PyObject *)Py_TYPE(__pyx_v_UinvT))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 171, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "fpylll/fplll/gso.pyx":173
 *             raise TypeError("type of UinvT (%s) not supported"%type(UinvT))
 * 
 *         cdef Matrix[Z_NR[mpz_t]] *b_m = <Matrix[Z_NR[mpz_t]]*>B._core.mpz             # <<<<<<<<<<<<<<
 *         cdef Matrix[Z_NR[mpz_t]] *u_m = <Matrix[Z_NR[mpz_t]]*>self.U._core.mpz
 *         cdef Matrix[Z_NR[mpz_t]] *u_inv_t_m = <Matrix[Z_NR[mpz_t]]*>self.UinvT._core.mpz
*/
  __pyx_v_b_m = ((fplll::Matrix<fplll::Z_NR<mpz_t> >  *)__pyx_v_B->_core.mpz);

  /* "fpylll/fplll/gso.pyx":174
 * 
 *         cdef Matrix[Z_NR[mpz_t]] *b_m = <Matrix[Z_NR[mpz_t]]*>B._core.mpz
 *         cdef Matrix[Z_NR[mpz_t]] *u_m = <Matrix[Z_NR[mpz_t]]*>self.U._core.mpz             # <<<<<<<<<<<<<<
 *         cdef Matrix[Z_NR[mpz_t]] *u_inv_t_m = <Matrix[Z_NR[mpz_t]]*>self.UinvT._core.mpz
 *         cdef Matrix[Z_NR[long]] *b_l = <Matrix[Z_NR[long]]*>B._core.long
*/
  __pyx_v_u_m = ((fplll::Matrix<fplll::Z_NR<mpz_t> >  *)__pyx_v_self->U->_core.mpz);

  /* "fpylll/fplll/gso.pyx":175
 *         cdef Matrix[Z_NR[mpz_t]] *b_m = <Matrix[Z_NR[mpz_t]]*>B._core.mpz
 *         cdef Matrix[Z_NR[mpz_t]] *u_m = <Matrix[Z_NR[mpz_t]]*>self.U._core.mpz
 *         cdef Matrix[Z_NR[mpz_t]] *u_inv_t_m = <Matrix[Z_NR[mpz_t]]*>self.UinvT._core.mpz             # <<<<<<<<<<<<<<
 *         cdef Matrix[Z_NR[long]] *b_l = <Matrix[Z_NR[long]]*>B._core.long
 *         cdef Matrix[Z_NR[long]] *u_l = <Matrix[Z_NR[long]]*>self.U._core.long
*/
  __pyx_v_u_inv_t_m = ((fplll::Matrix<fplll::Z_NR<mpz_t> >  *)__pyx_v_self->UinvT->_core.mpz);

  /* "fpylll/fplll/gso.pyx":176
 *         cdef Matrix[Z_NR[mpz_t]] *u_m = <Matrix[Z_NR[mpz_t]]*>self.U._core.mpz
 *         cdef Matrix[Z_NR[mpz_t]] *u_inv_t_m = <Matrix[Z_NR[mpz_t]]*>self.UinvT._core.mpz
 *         cdef Matrix[Z_NR[long]] *b_l = <Matrix[Z_NR[long]]*>B._core.long             # <<<<<<<<<<<<<<
 *         cdef Matrix[Z_NR[long]] *u_l = <Matrix[Z_NR[long]]*>self.U._core.long
 *         cdef Matrix[Z_NR[long]] *u_inv_t_l = <Matrix[Z_NR[long]]*>self.UinvT._core.long
*/
  __pyx_v_b_l = ((fplll::Matrix<fplll::Z_NR<long> >  *)__pyx_v_B->_core.__pyx_long);

  /* "fpylll/fplll/gso.pyx":177
 *         cdef Matrix[Z_NR[mpz_t]] *u_inv_t_m = <Matrix[Z_NR[mpz_t]]*>self.UinvT._core.mpz
 *         cdef Matrix[Z_NR[long]] *b_l = <Matrix[Z_NR[long]]*>B._core.long
 *         cdef Matrix[Z_NR[long]] *u_l = <Matrix[Z_NR[long]]*>self.U._core.long             # <<<<<<<<<<<<<<
 *         cdef Matrix[Z_NR[long]] *u_inv_t_l = <Matrix[Z_NR[long]]*>self.UinvT._core.long
 * 
*/
  __pyx_v_u_l = ((fplll::Matrix<fplll::Z_NR<long> >  *)__pyx_v_self->U->_core.__pyx_long);

  /* "fpylll/fplll/gso.pyx":178
 *         cdef Matrix[Z_NR[long]] *b_l = <Matrix[Z_NR[long]]*>B._core.long
 *         cdef Matrix[Z_NR[long]] *u_l = <Matrix[Z_NR[long]]*>self.U._core.long
 *         cdef Matrix[Z_NR[long]] *u_inv_t_l = <Matrix[Z_NR[long]]*>self.UinvT._core.long             # <<<<<<<<<<<<<<
 * 
 *         cdef FloatType float_type_ = check_float_type(float_type)
*/
  __pyx_v_u_inv_t_l = ((fplll::Matrix<fplll::Z_NR<long> >  *)__pyx_v_self->UinvT->_core.__pyx_long);

  /* "fpylll/fplll/gso.pyx":180
 *         cdef Matrix[Z_NR[long]] *u_inv_t_l = <Matrix[Z_NR[long]]*>self.UinvT._core.long
 * 
 *         cdef FloatType float_type_ = check_float_type(float_type)             # <<<<<<<<<<<<<<
 * 
 *         if gram:
*/
  __pyx_t_2 = __pyx_f_6fpylll_4util_check_float_type(__pyx_v_float_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = ((enum fplll::FloatType)__Pyx_PyLong_As_enum__fplll_3a__3a_FloatType(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_float_type_ = __pyx_t_6;

  /* "fpylll/fplll/gso.pyx":182
 *         cdef FloatType float_type_ = check_float_type(float_type)
 * 
 *         if gram:             # <<<<<<<<<<<<<<
 *             # Do some sanity checking that we're not getting a random non-Gram matrix
 *             #
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_gram); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 182, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":186
 *             #
 *             # This isn't sufficient but the full check would be too expensive.
 *             for i in range(B.nrows):             # <<<<<<<<<<<<<<
 *                 if B._get(i, i) < 0:
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_B), __pyx_mstate_global->__pyx_n_u_nrows); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_7(__pyx_t_4);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 186, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "fpylll/fplll/gso.pyx":187
 *             # This isn't sufficient but the full check would be too expensive.
 *             for i in range(B.nrows):
 *                 if B._get(i, i) < 0:             # <<<<<<<<<<<<<<
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
 * 
*/
      __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 187, __pyx_L1_error)
      __pyx_t_2 = ((struct __pyx_vtabstruct_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_v_B->__pyx_vtab)->_get(__pyx_v_B, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 187, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(__pyx_t_1)) {

        /* "fpylll/fplll/gso.pyx":188
 *             for i in range(B.nrows):
 *                 if B._get(i, i) < 0:
 *                         raise ValueError("Diagonal of input matrix has negative entries.")             # <<<<<<<<<<<<<<
 * 
 *         if not gram:
*/
        __pyx_t_2 = NULL;
        __pyx_t_5 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Diagonal_of_input_matrix_has_neg};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 188, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 188, __pyx_L1_error)

        /* "fpylll/fplll/gso.pyx":187
 *             # This isn't sufficient but the full check would be too expensive.
 *             for i in range(B.nrows):
 *                 if B._get(i, i) < 0:             # <<<<<<<<<<<<<<
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
 * 
*/
      }

      /* "fpylll/fplll/gso.pyx":186
 *             #
 *             # This isn't sufficient but the full check would be too expensive.
 *             for i in range(B.nrows):             # <<<<<<<<<<<<<<
 *                 if B._get(i, i) < 0:
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "fpylll/fplll/gso.pyx":182
 *         cdef FloatType float_type_ = check_float_type(float_type)
 * 
 *         if gram:             # <<<<<<<<<<<<<<
 *             # Do some sanity checking that we're not getting a random non-Gram matrix
 *             #
*/
  }

  /* "fpylll/fplll/gso.pyx":190
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
 * 
 *         if not gram:             # <<<<<<<<<<<<<<
 *             self._alg = mat_gso_gso_t
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_gram); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 190, __pyx_L1_error)
  __pyx_t_10 = (!__pyx_t_1);
  if (__pyx_t_10) {

    /* "fpylll/fplll/gso.pyx":191
 * 
 *         if not gram:
 *             self._alg = mat_gso_gso_t             # <<<<<<<<<<<<<<
 * 
 *             if B._type == ZT_MPZ:
*/
    __pyx_v_self->_alg = __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t;

    /* "fpylll/fplll/gso.pyx":193
 *             self._alg = mat_gso_gso_t
 * 
 *             if B._type == ZT_MPZ:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
*/
    switch (__pyx_v_B->_type) {
      case fplll::ZT_MPZ:

      /* "fpylll/fplll/gso.pyx":194
 * 
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
      switch (__pyx_v_float_type_) {
        case fplll::FT_DOUBLE:

        /* "fpylll/fplll/gso.pyx":195
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d             # <<<<<<<<<<<<<<
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d;

        /* "fpylll/fplll/gso.pyx":196
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
*/
        __pyx_v_self->_core.mpz_d = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":194
 * 
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        case fplll::FT_LONG_DOUBLE:

        /* "fpylll/fplll/gso.pyx":199
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld             # <<<<<<<<<<<<<<
 *                         self._core.mpz_ld = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[ld_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                     ELSE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld;

        /* "fpylll/fplll/gso.pyx":200
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld
 *                         self._core.mpz_ld = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[ld_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
*/
        __pyx_v_self->_core.mpz_ld = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":197
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:             # <<<<<<<<<<<<<<
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld
*/
        break;
        case fplll::FT_DPE:

        /* "fpylll/fplll/gso.pyx":204
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_mpz_dpe             # <<<<<<<<<<<<<<
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe;

        /* "fpylll/fplll/gso.pyx":205
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr
*/
        __pyx_v_self->_core.mpz_dpe = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":203
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        case fplll::FT_MPFR:

        /* "fpylll/fplll/gso.pyx":207
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr             # <<<<<<<<<<<<<<
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 else:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr;

        /* "fpylll/fplll/gso.pyx":208
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
        __pyx_v_self->_core.mpz_mpfr = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":206
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_mpfr
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":211
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        switch (__pyx_v_float_type_) {
          case fplll::FT_DD:

          /* "fpylll/fplll/gso.pyx":212
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_mpz_dd             # <<<<<<<<<<<<<<
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd;

          /* "fpylll/fplll/gso.pyx":213
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd
*/
          __pyx_v_self->_core.mpz_dd = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":211
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
          break;
          case fplll::FT_QD:

          /* "fpylll/fplll/gso.pyx":215
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd             # <<<<<<<<<<<<<<
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         else:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd;

          /* "fpylll/fplll/gso.pyx":216
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_v_self->_core.mpz_qd = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)new fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":214
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_qd
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":218
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_t_3 = NULL;
          __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Float_type_s_not_understood, __pyx_v_float_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 218, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_Raise(__pyx_t_4, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __PYX_ERR(0, 218, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":193
 *             self._alg = mat_gso_gso_t
 * 
 *             if B._type == ZT_MPZ:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
*/
      break;
      case fplll::ZT_LONG:

      /* "fpylll/fplll/gso.pyx":222
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSO_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
      switch (__pyx_v_float_type_) {
        case fplll::FT_DOUBLE:

        /* "fpylll/fplll/gso.pyx":223
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d             # <<<<<<<<<<<<<<
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSO_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d;

        /* "fpylll/fplll/gso.pyx":224
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSO_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
*/
        __pyx_v_self->_core.long_d = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":222
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSO_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        case fplll::FT_LONG_DOUBLE:

        /* "fpylll/fplll/gso.pyx":227
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld             # <<<<<<<<<<<<<<
 *                         self._core.long_ld = <MatGSOInterface_c[Z_NR[long],FP_NR[ld_t]]*> new MatGSO_c[Z_NR[long],FP_NR[ld_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                     ELSE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld;

        /* "fpylll/fplll/gso.pyx":228
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld
 *                         self._core.long_ld = <MatGSOInterface_c[Z_NR[long],FP_NR[ld_t]]*> new MatGSO_c[Z_NR[long],FP_NR[ld_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
*/
        __pyx_v_self->_core.long_ld = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":225
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSO_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:             # <<<<<<<<<<<<<<
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld
*/
        break;
        case fplll::FT_DPE:

        /* "fpylll/fplll/gso.pyx":232
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_long_dpe             # <<<<<<<<<<<<<<
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe;

        /* "fpylll/fplll/gso.pyx":233
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr
*/
        __pyx_v_self->_core.long_dpe = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":231
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        case fplll::FT_MPFR:

        /* "fpylll/fplll/gso.pyx":235
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr             # <<<<<<<<<<<<<<
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSO_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 else:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr;

        /* "fpylll/fplll/gso.pyx":236
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSO_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
        __pyx_v_self->_core.long_mpfr = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":234
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSO_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_mpfr
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSO_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":239
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        switch (__pyx_v_float_type_) {
          case fplll::FT_DD:

          /* "fpylll/fplll/gso.pyx":240
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_long_dd             # <<<<<<<<<<<<<<
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd;

          /* "fpylll/fplll/gso.pyx":241
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd
*/
          __pyx_v_self->_core.long_dd = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":239
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
          break;
          case fplll::FT_QD:

          /* "fpylll/fplll/gso.pyx":243
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd             # <<<<<<<<<<<<<<
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         else:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd;

          /* "fpylll/fplll/gso.pyx":244
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_v_self->_core.long_qd = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)new fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":242
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_qd
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":246
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSO_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_t_2 = NULL;
          __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Float_type_s_not_understood, __pyx_v_float_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_Raise(__pyx_t_4, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __PYX_ERR(0, 246, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":221
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":249
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             self.B = B             # <<<<<<<<<<<<<<
 *         else:
 *             flags |= GSO_INT_GRAM
*/
    __Pyx_INCREF((PyObject *)__pyx_v_B);
    __Pyx_GIVEREF((PyObject *)__pyx_v_B);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->B);
    __Pyx_DECREF((PyObject *)__pyx_v_self->B);
    __pyx_v_self->B = __pyx_v_B;

    /* "fpylll/fplll/gso.pyx":190
 *                         raise ValueError("Diagonal of input matrix has negative entries.")
 * 
 *         if not gram:             # <<<<<<<<<<<<<<
 *             self._alg = mat_gso_gso_t
 * 
*/
    goto __pyx_L15;
  }

  /* "fpylll/fplll/gso.pyx":251
 *             self.B = B
 *         else:
 *             flags |= GSO_INT_GRAM             # <<<<<<<<<<<<<<
 *             self._alg = mat_gso_gram_t
 * 
*/
  /*else*/ {
    __pyx_v_flags = (__pyx_v_flags | fplll::GSO_INT_GRAM);

    /* "fpylll/fplll/gso.pyx":252
 *         else:
 *             flags |= GSO_INT_GRAM
 *             self._alg = mat_gso_gram_t             # <<<<<<<<<<<<<<
 * 
 *             if B._type == ZT_MPZ:
*/
    __pyx_v_self->_alg = __pyx_e_6fpylll_5fplll_4decl_mat_gso_gram_t;

    /* "fpylll/fplll/gso.pyx":254
 *             self._alg = mat_gso_gram_t
 * 
 *             if B._type == ZT_MPZ:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
*/
    switch (__pyx_v_B->_type) {
      case fplll::ZT_MPZ:

      /* "fpylll/fplll/gso.pyx":255
 * 
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSOGram_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
      switch (__pyx_v_float_type_) {
        case fplll::FT_DOUBLE:

        /* "fpylll/fplll/gso.pyx":256
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d             # <<<<<<<<<<<<<<
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSOGram_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d;

        /* "fpylll/fplll/gso.pyx":257
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSOGram_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
*/
        __pyx_v_self->_core.mpz_d = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":255
 * 
 *             if B._type == ZT_MPZ:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSOGram_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        case fplll::FT_LONG_DOUBLE:

        /* "fpylll/fplll/gso.pyx":260
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld             # <<<<<<<<<<<<<<
 *                         self._core.mpz_ld = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[ld_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[ld_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                     ELSE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld;

        /* "fpylll/fplll/gso.pyx":261
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld
 *                         self._core.mpz_ld = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[ld_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[ld_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
*/
        __pyx_v_self->_core.mpz_ld = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":258
 *                     self._type = mat_gso_mpz_d
 *                     self._core.mpz_d = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[d_t]]*>new MatGSOGram_c[Z_NR[mpz_t],FP_NR[d_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:             # <<<<<<<<<<<<<<
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_mpz_ld
*/
        break;
        case fplll::FT_DPE:

        /* "fpylll/fplll/gso.pyx":265
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_mpz_dpe             # <<<<<<<<<<<<<<
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe;

        /* "fpylll/fplll/gso.pyx":266
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr
*/
        __pyx_v_self->_core.mpz_dpe = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":264
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        case fplll::FT_MPFR:

        /* "fpylll/fplll/gso.pyx":268
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr             # <<<<<<<<<<<<<<
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 else:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr;

        /* "fpylll/fplll/gso.pyx":269
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_mpz_mpfr
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
        __pyx_v_self->_core.mpz_mpfr = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":267
 *                     self._type = mat_gso_mpz_dpe
 *                     self._core.mpz_dpe = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dpe_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                 elif float_type_ == FT_MPFR:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_mpz_mpfr
 *                     self._core.mpz_mpfr = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[mpfr_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":272
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
        switch (__pyx_v_float_type_) {
          case fplll::FT_DD:

          /* "fpylll/fplll/gso.pyx":273
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_mpz_dd             # <<<<<<<<<<<<<<
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd;

          /* "fpylll/fplll/gso.pyx":274
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd
*/
          __pyx_v_self->_core.mpz_dd = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":272
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
          break;
          case fplll::FT_QD:

          /* "fpylll/fplll/gso.pyx":276
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd             # <<<<<<<<<<<<<<
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         else:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd;

          /* "fpylll/fplll/gso.pyx":277
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_mpz_qd
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_v_self->_core.mpz_qd = ((fplll::MatGSOInterface<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> > ((__pyx_v_b_m[0]), (__pyx_v_u_m[0]), (__pyx_v_u_inv_t_m[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":275
 *                             self._type = mat_gso_mpz_dd
 *                             self._core.mpz_dd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[dd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[dd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         elif float_type_ == FT_QD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_mpz_qd
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":279
 *                             self._core.mpz_qd = <MatGSOInterface_c[Z_NR[mpz_t],FP_NR[qd_t]]*> new MatGSOGram_c[Z_NR[mpz_t],FP_NR[qd_t]](b_m[0], u_m[0], u_inv_t_m[0], flags)
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_t_3 = NULL;
          __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Float_type_s_not_understood, __pyx_v_float_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_Raise(__pyx_t_4, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __PYX_ERR(0, 279, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":254
 *             self._alg = mat_gso_gram_t
 * 
 *             if B._type == ZT_MPZ:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_mpz_d
*/
      break;
      case fplll::ZT_LONG:

      /* "fpylll/fplll/gso.pyx":283
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
      switch (__pyx_v_float_type_) {
        case fplll::FT_DOUBLE:

        /* "fpylll/fplll/gso.pyx":284
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d             # <<<<<<<<<<<<<<
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d;

        /* "fpylll/fplll/gso.pyx":285
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
*/
        __pyx_v_self->_core.long_d = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":283
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:
 *                 if float_type_ == FT_DOUBLE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        case fplll::FT_LONG_DOUBLE:

        /* "fpylll/fplll/gso.pyx":288
 *                 elif float_type_ == FT_LONG_DOUBLE:
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld             # <<<<<<<<<<<<<<
 *                         self._core.long_ld = <MatGSOInterface_c[Z_NR[long],FP_NR[ld_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[ld_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                     ELSE:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld;

        /* "fpylll/fplll/gso.pyx":289
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld
 *                         self._core.long_ld = <MatGSOInterface_c[Z_NR[long],FP_NR[ld_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[ld_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
*/
        __pyx_v_self->_core.long_ld = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":286
 *                     self._type = mat_gso_long_d
 *                     self._core.long_d = <MatGSOInterface_c[Z_NR[long],FP_NR[d_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[d_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_LONG_DOUBLE:             # <<<<<<<<<<<<<<
 *                     IF HAVE_LONG_DOUBLE:
 *                         self._type = mat_gso_long_ld
*/
        break;
        case fplll::FT_DPE:

        /* "fpylll/fplll/gso.pyx":293
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_long_dpe             # <<<<<<<<<<<<<<
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe;

        /* "fpylll/fplll/gso.pyx":294
 *                 elif float_type_ == FT_DPE:
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr
*/
        __pyx_v_self->_core.long_dpe = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":292
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood." % float_type)
 *                 elif float_type_ == FT_DPE:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        case fplll::FT_MPFR:

        /* "fpylll/fplll/gso.pyx":296
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr             # <<<<<<<<<<<<<<
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 else:
*/
        __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr;

        /* "fpylll/fplll/gso.pyx":297
 *                 elif float_type_ == FT_MPFR:
 *                     self._type = mat_gso_long_mpfr
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
        __pyx_v_self->_core.long_mpfr = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

        /* "fpylll/fplll/gso.pyx":295
 *                     self._type = mat_gso_long_dpe
 *                     self._core.long_dpe = <MatGSOInterface_c[Z_NR[long],FP_NR[dpe_t]]*> new MatGSOGram_c[Z_NR[long],FP_NR[dpe_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                 elif float_type_ == FT_MPFR:             # <<<<<<<<<<<<<<
 *                     self._type = mat_gso_long_mpfr
 *                     self._core.long_mpfr = <MatGSOInterface_c[Z_NR[long],FP_NR[mpfr_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[mpfr_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":300
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
        switch (__pyx_v_float_type_) {
          case fplll::FT_DD:

          /* "fpylll/fplll/gso.pyx":301
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_long_dd             # <<<<<<<<<<<<<<
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd;

          /* "fpylll/fplll/gso.pyx":302
 *                         if float_type_ == FT_DD:
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd
*/
          __pyx_v_self->_core.long_dd = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":300
 *                 else:
 *                     IF HAVE_QD:
 *                         if float_type_ == FT_DD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
          break;
          case fplll::FT_QD:

          /* "fpylll/fplll/gso.pyx":304
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd             # <<<<<<<<<<<<<<
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         else:
*/
          __pyx_v_self->_type = __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd;

          /* "fpylll/fplll/gso.pyx":305
 *                         elif float_type_ == FT_QD:
 *                             self._type = mat_gso_long_qd
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_v_self->_core.long_qd = ((fplll::MatGSOInterface<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)new fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> > ((__pyx_v_b_l[0]), (__pyx_v_u_l[0]), (__pyx_v_u_inv_t_l[0]), __pyx_v_flags));

          /* "fpylll/fplll/gso.pyx":303
 *                             self._type = mat_gso_long_dd
 *                             self._core.long_dd = <MatGSOInterface_c[Z_NR[long],FP_NR[dd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[dd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         elif float_type_ == FT_QD:             # <<<<<<<<<<<<<<
 *                             self._type = mat_gso_long_qd
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":307
 *                             self._core.long_qd = <MatGSOInterface_c[Z_NR[long],FP_NR[qd_t]]*>new MatGSOGram_c[Z_NR[long],FP_NR[qd_t]](b_l[0], u_l[0], u_inv_t_l[0], flags)
 *                         else:
 *                             raise ValueError("Float type '%s' not understood."%float_type)             # <<<<<<<<<<<<<<
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
*/
          __pyx_t_2 = NULL;
          __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Float_type_s_not_understood, __pyx_v_float_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 307, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 307, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_Raise(__pyx_t_4, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __PYX_ERR(0, 307, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":282
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             elif B._type == ZT_LONG:             # <<<<<<<<<<<<<<
 *                 if float_type_ == FT_DOUBLE:
 *                     self._type = mat_gso_long_d
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":310
 *                     ELSE:
 *                         raise ValueError("Float type '%s' not understood."%float_type)
 *             self._G = B             # <<<<<<<<<<<<<<
 * 
 *         if update:
*/
    __Pyx_INCREF((PyObject *)__pyx_v_B);
    __Pyx_GIVEREF((PyObject *)__pyx_v_B);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->_G);
    __Pyx_DECREF((PyObject *)__pyx_v_self->_G);
    __pyx_v_self->_G = __pyx_v_B;
  }
  __pyx_L15:;

  /* "fpylll/fplll/gso.pyx":312
 *             self._G = B
 * 
 *         if update:             # <<<<<<<<<<<<<<
 *             self.update_gso()
 * 
*/
  __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_v_update); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 312, __pyx_L1_error)
  if (__pyx_t_10) {

    /* "fpylll/fplll/gso.pyx":313
 * 
 *         if update:
 *             self.update_gso()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update_gso, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 313, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "fpylll/fplll/gso.pyx":312
 *             self._G = B
 * 
 *         if update:             # <<<<<<<<<<<<<<
 *             self.update_gso()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":98
 *     """
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,             # <<<<<<<<<<<<<<
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):
 *         """
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":315
 *             self.update_gso()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         # We are making sure the correct destructor is called, even when it's not virtual, by explicit casting
 *         cdef MatGSO_c[Z_NR[long], FP_NR[double]]* gso_long_d
*/

/* Python wrapper */
static void __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2__dealloc__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2__dealloc__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<double> >  *__pyx_v_gso_long_d;
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *__pyx_v_gso_long_ld;
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *__pyx_v_gso_long_dpe;
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *__pyx_v_gso_long_dd;
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *__pyx_v_gso_long_qd;
  fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *__pyx_v_gso_long_mpfr;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<double> >  *__pyx_v_gso_mpz_d;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *__pyx_v_gso_mpz_ld;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *__pyx_v_gso_mpz_dpe;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *__pyx_v_gso_mpz_dd;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *__pyx_v_gso_mpz_qd;
  fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *__pyx_v_gso_mpz_mpfr;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<double> >  *__pyx_v_gram_long_d;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *__pyx_v_gram_long_ld;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *__pyx_v_gram_long_dpe;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *__pyx_v_gram_long_dd;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *__pyx_v_gram_long_qd;
  fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *__pyx_v_gram_long_mpfr;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<double> >  *__pyx_v_gram_mpz_d;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *__pyx_v_gram_mpz_ld;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *__pyx_v_gram_mpz_dpe;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *__pyx_v_gram_mpz_dd;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *__pyx_v_gram_mpz_qd;
  fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *__pyx_v_gram_mpz_mpfr;
  int __pyx_t_1;

  /* "fpylll/fplll/gso.pyx":353
 *         cdef MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]* gram_mpz_mpfr
 * 
 *         if self._alg == mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_d:
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
*/
  switch (__pyx_v_self->_alg) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t:

    /* "fpylll/fplll/gso.pyx":354
 * 
 *         if self._alg == mat_gso_gso_t:
 *             if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gso_long_d
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":355
 *         if self._alg == mat_gso_gso_t:
 *             if self._type == mat_gso_long_d:
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d             # <<<<<<<<<<<<<<
 *                 del gso_long_d
 *             IF HAVE_LONG_DOUBLE:
*/
      __pyx_v_gso_long_d = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<double> >  *)__pyx_v_self->_core.long_d);

      /* "fpylll/fplll/gso.pyx":356
 *             if self._type == mat_gso_long_d:
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gso_long_d             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
*/
      delete __pyx_v_gso_long_d;

      /* "fpylll/fplll/gso.pyx":354
 * 
 *         if self._alg == mat_gso_gso_t:
 *             if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gso_long_d
*/
    }

    /* "fpylll/fplll/gso.pyx":358
 *                 del gso_long_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gso_long_ld
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":359
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld             # <<<<<<<<<<<<<<
 *                     del gso_long_ld
 *             if self._type == mat_gso_long_dpe:
*/
      __pyx_v_gso_long_ld = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.long_ld);

      /* "fpylll/fplll/gso.pyx":360
 *                 if self._type == mat_gso_long_ld:
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gso_long_ld             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_dpe:
 *                 gso_long_dpe = <MatGSO_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
*/
      delete __pyx_v_gso_long_ld;

      /* "fpylll/fplll/gso.pyx":358
 *                 del gso_long_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gso_long_ld
*/
    }

    /* "fpylll/fplll/gso.pyx":361
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gso_long_ld
 *             if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                 gso_long_dpe = <MatGSO_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gso_long_dpe
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":362
 *                     del gso_long_ld
 *             if self._type == mat_gso_long_dpe:
 *                 gso_long_dpe = <MatGSO_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe             # <<<<<<<<<<<<<<
 *                 del gso_long_dpe
 *             IF HAVE_QD:
*/
      __pyx_v_gso_long_dpe = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *)__pyx_v_self->_core.long_dpe);

      /* "fpylll/fplll/gso.pyx":363
 *             if self._type == mat_gso_long_dpe:
 *                 gso_long_dpe = <MatGSO_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gso_long_dpe             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
*/
      delete __pyx_v_gso_long_dpe;

      /* "fpylll/fplll/gso.pyx":361
 *                     gso_long_ld = <MatGSO_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gso_long_ld
 *             if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                 gso_long_dpe = <MatGSO_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gso_long_dpe
*/
    }

    /* "fpylll/fplll/gso.pyx":365
 *                 del gso_long_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gso_long_dd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":366
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd             # <<<<<<<<<<<<<<
 *                     del gso_long_dd
 *                 if self._type == mat_gso_long_qd:
*/
      __pyx_v_gso_long_dd = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.long_dd);

      /* "fpylll/fplll/gso.pyx":367
 *                 if self._type == mat_gso_long_dd:
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gso_long_dd             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_long_qd:
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
*/
      delete __pyx_v_gso_long_dd;

      /* "fpylll/fplll/gso.pyx":365
 *                 del gso_long_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gso_long_dd
*/
    }

    /* "fpylll/fplll/gso.pyx":368
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gso_long_dd
 *                 if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gso_long_qd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":369
 *                     del gso_long_dd
 *                 if self._type == mat_gso_long_qd:
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd             # <<<<<<<<<<<<<<
 *                     del gso_long_qd
 *             if self._type == mat_gso_long_mpfr:
*/
      __pyx_v_gso_long_qd = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)__pyx_v_self->_core.long_qd);

      /* "fpylll/fplll/gso.pyx":370
 *                 if self._type == mat_gso_long_qd:
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gso_long_qd             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_mpfr:
 *                 gso_long_mpfr = <MatGSO_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
*/
      delete __pyx_v_gso_long_qd;

      /* "fpylll/fplll/gso.pyx":368
 *                     gso_long_dd = <MatGSO_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gso_long_dd
 *                 if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gso_long_qd
*/
    }

    /* "fpylll/fplll/gso.pyx":371
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gso_long_qd
 *             if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 gso_long_mpfr = <MatGSO_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gso_long_mpfr
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":372
 *                     del gso_long_qd
 *             if self._type == mat_gso_long_mpfr:
 *                 gso_long_mpfr = <MatGSO_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr             # <<<<<<<<<<<<<<
 *                 del gso_long_mpfr
 * 
*/
      __pyx_v_gso_long_mpfr = ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.long_mpfr);

      /* "fpylll/fplll/gso.pyx":373
 *             if self._type == mat_gso_long_mpfr:
 *                 gso_long_mpfr = <MatGSO_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gso_long_mpfr             # <<<<<<<<<<<<<<
 * 
 *             if self._type == mat_gso_mpz_d:
*/
      delete __pyx_v_gso_long_mpfr;

      /* "fpylll/fplll/gso.pyx":371
 *                     gso_long_qd = <MatGSO_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gso_long_qd
 *             if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 gso_long_mpfr = <MatGSO_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gso_long_mpfr
*/
    }

    /* "fpylll/fplll/gso.pyx":375
 *                 del gso_long_mpfr
 * 
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 gso_mpz_d = <MatGSO_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gso_mpz_d
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":376
 * 
 *             if self._type == mat_gso_mpz_d:
 *                 gso_mpz_d = <MatGSO_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d             # <<<<<<<<<<<<<<
 *                 del gso_mpz_d
 *             IF HAVE_LONG_DOUBLE:
*/
      __pyx_v_gso_mpz_d = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<double> >  *)__pyx_v_self->_core.mpz_d);

      /* "fpylll/fplll/gso.pyx":377
 *             if self._type == mat_gso_mpz_d:
 *                 gso_mpz_d = <MatGSO_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gso_mpz_d             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
*/
      delete __pyx_v_gso_mpz_d;

      /* "fpylll/fplll/gso.pyx":375
 *                 del gso_long_mpfr
 * 
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 gso_mpz_d = <MatGSO_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gso_mpz_d
*/
    }

    /* "fpylll/fplll/gso.pyx":379
 *                 del gso_mpz_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gso_mpz_ld
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":380
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld             # <<<<<<<<<<<<<<
 *                     del gso_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:
*/
      __pyx_v_gso_mpz_ld = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.mpz_ld);

      /* "fpylll/fplll/gso.pyx":381
 *                 if self._type == mat_gso_mpz_ld:
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gso_mpz_ld             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_dpe:
 *                 gso_mpz_dpe = <MatGSO_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
*/
      delete __pyx_v_gso_mpz_ld;

      /* "fpylll/fplll/gso.pyx":379
 *                 del gso_mpz_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gso_mpz_ld
*/
    }

    /* "fpylll/fplll/gso.pyx":382
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gso_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                 gso_mpz_dpe = <MatGSO_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gso_mpz_dpe
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":383
 *                     del gso_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:
 *                 gso_mpz_dpe = <MatGSO_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe             # <<<<<<<<<<<<<<
 *                 del gso_mpz_dpe
 *             IF HAVE_QD:
*/
      __pyx_v_gso_mpz_dpe = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *)__pyx_v_self->_core.mpz_dpe);

      /* "fpylll/fplll/gso.pyx":384
 *             if self._type == mat_gso_mpz_dpe:
 *                 gso_mpz_dpe = <MatGSO_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gso_mpz_dpe             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
*/
      delete __pyx_v_gso_mpz_dpe;

      /* "fpylll/fplll/gso.pyx":382
 *                     gso_mpz_ld = <MatGSO_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gso_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                 gso_mpz_dpe = <MatGSO_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gso_mpz_dpe
*/
    }

    /* "fpylll/fplll/gso.pyx":386
 *                 del gso_mpz_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gso_mpz_dd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":387
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd             # <<<<<<<<<<<<<<
 *                     del gso_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:
*/
      __pyx_v_gso_mpz_dd = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.mpz_dd);

      /* "fpylll/fplll/gso.pyx":388
 *                 if self._type == mat_gso_mpz_dd:
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gso_mpz_dd             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_mpz_qd:
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
*/
      delete __pyx_v_gso_mpz_dd;

      /* "fpylll/fplll/gso.pyx":386
 *                 del gso_mpz_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gso_mpz_dd
*/
    }

    /* "fpylll/fplll/gso.pyx":389
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gso_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gso_mpz_qd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":390
 *                     del gso_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd             # <<<<<<<<<<<<<<
 *                     del gso_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:
*/
      __pyx_v_gso_mpz_qd = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)__pyx_v_self->_core.mpz_qd);

      /* "fpylll/fplll/gso.pyx":391
 *                 if self._type == mat_gso_mpz_qd:
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gso_mpz_qd             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
*/
      delete __pyx_v_gso_mpz_qd;

      /* "fpylll/fplll/gso.pyx":389
 *                     gso_mpz_dd = <MatGSO_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gso_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gso_mpz_qd
*/
    }

    /* "fpylll/fplll/gso.pyx":392
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gso_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gso_mpz_mpfr
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":393
 *                     del gso_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr             # <<<<<<<<<<<<<<
 *                 del gso_mpz_mpfr
 *         elif self._alg == mat_gso_gram_t:
*/
      __pyx_v_gso_mpz_mpfr = ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.mpz_mpfr);

      /* "fpylll/fplll/gso.pyx":394
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gso_mpz_mpfr             # <<<<<<<<<<<<<<
 *         elif self._alg == mat_gso_gram_t:
 *             if self._type == mat_gso_long_d:
*/
      delete __pyx_v_gso_mpz_mpfr;

      /* "fpylll/fplll/gso.pyx":392
 *                     gso_mpz_qd = <MatGSO_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gso_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gso_mpz_mpfr
*/
    }

    /* "fpylll/fplll/gso.pyx":353
 *         cdef MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]* gram_mpz_mpfr
 * 
 *         if self._alg == mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_d:
 *                 gso_long_d = <MatGSO_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_gram_t:

    /* "fpylll/fplll/gso.pyx":396
 *                 del gso_mpz_mpfr
 *         elif self._alg == mat_gso_gram_t:
 *             if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 gram_long_d = <MatGSOGram_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gram_long_d
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":397
 *         elif self._alg == mat_gso_gram_t:
 *             if self._type == mat_gso_long_d:
 *                 gram_long_d = <MatGSOGram_c[Z_NR[long], FP_NR[double]]*>self._core.long_d             # <<<<<<<<<<<<<<
 *                 del gram_long_d
 *             IF HAVE_LONG_DOUBLE:
*/
      __pyx_v_gram_long_d = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<double> >  *)__pyx_v_self->_core.long_d);

      /* "fpylll/fplll/gso.pyx":398
 *             if self._type == mat_gso_long_d:
 *                 gram_long_d = <MatGSOGram_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gram_long_d             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
*/
      delete __pyx_v_gram_long_d;

      /* "fpylll/fplll/gso.pyx":396
 *                 del gso_mpz_mpfr
 *         elif self._alg == mat_gso_gram_t:
 *             if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 gram_long_d = <MatGSOGram_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
 *                 del gram_long_d
*/
    }

    /* "fpylll/fplll/gso.pyx":400
 *                 del gram_long_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gram_long_ld
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":401
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld             # <<<<<<<<<<<<<<
 *                     del gram_long_ld
 *             if self._type == mat_gso_long_dpe:
*/
      __pyx_v_gram_long_ld = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.long_ld);

      /* "fpylll/fplll/gso.pyx":402
 *                 if self._type == mat_gso_long_ld:
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gram_long_ld             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_dpe:
 *                 gram_long_dpe = <MatGSOGram_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
*/
      delete __pyx_v_gram_long_ld;

      /* "fpylll/fplll/gso.pyx":400
 *                 del gram_long_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gram_long_ld
*/
    }

    /* "fpylll/fplll/gso.pyx":403
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gram_long_ld
 *             if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                 gram_long_dpe = <MatGSOGram_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gram_long_dpe
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":404
 *                     del gram_long_ld
 *             if self._type == mat_gso_long_dpe:
 *                 gram_long_dpe = <MatGSOGram_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe             # <<<<<<<<<<<<<<
 *                 del gram_long_dpe
 *             IF HAVE_QD:
*/
      __pyx_v_gram_long_dpe = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<dpe_t> >  *)__pyx_v_self->_core.long_dpe);

      /* "fpylll/fplll/gso.pyx":405
 *             if self._type == mat_gso_long_dpe:
 *                 gram_long_dpe = <MatGSOGram_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gram_long_dpe             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
*/
      delete __pyx_v_gram_long_dpe;

      /* "fpylll/fplll/gso.pyx":403
 *                     gram_long_ld = <MatGSOGram_c[Z_NR[long], FP_NR[ld_t]]*>self._core.long_ld
 *                     del gram_long_ld
 *             if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                 gram_long_dpe = <MatGSOGram_c[Z_NR[long], FP_NR[dpe_t]]*>self._core.long_dpe
 *                 del gram_long_dpe
*/
    }

    /* "fpylll/fplll/gso.pyx":407
 *                 del gram_long_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gram_long_dd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":408
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd             # <<<<<<<<<<<<<<
 *                     del gram_long_dd
 *                 if self._type == mat_gso_long_qd:
*/
      __pyx_v_gram_long_dd = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.long_dd);

      /* "fpylll/fplll/gso.pyx":409
 *                 if self._type == mat_gso_long_dd:
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gram_long_dd             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_long_qd:
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
*/
      delete __pyx_v_gram_long_dd;

      /* "fpylll/fplll/gso.pyx":407
 *                 del gram_long_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gram_long_dd
*/
    }

    /* "fpylll/fplll/gso.pyx":410
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gram_long_dd
 *                 if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gram_long_qd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":411
 *                     del gram_long_dd
 *                 if self._type == mat_gso_long_qd:
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd             # <<<<<<<<<<<<<<
 *                     del gram_long_qd
 *             if self._type == mat_gso_long_mpfr:
*/
      __pyx_v_gram_long_qd = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)__pyx_v_self->_core.long_qd);

      /* "fpylll/fplll/gso.pyx":412
 *                 if self._type == mat_gso_long_qd:
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gram_long_qd             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_mpfr:
 *                 gram_long_mpfr = <MatGSOGram_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
*/
      delete __pyx_v_gram_long_qd;

      /* "fpylll/fplll/gso.pyx":410
 *                     gram_long_dd = <MatGSOGram_c[Z_NR[long], FP_NR[dd_t]]*>self._core.long_dd
 *                     del gram_long_dd
 *                 if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gram_long_qd
*/
    }

    /* "fpylll/fplll/gso.pyx":413
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gram_long_qd
 *             if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 gram_long_mpfr = <MatGSOGram_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gram_long_mpfr
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":414
 *                     del gram_long_qd
 *             if self._type == mat_gso_long_mpfr:
 *                 gram_long_mpfr = <MatGSOGram_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr             # <<<<<<<<<<<<<<
 *                 del gram_long_mpfr
 * 
*/
      __pyx_v_gram_long_mpfr = ((fplll::MatGSOGram<fplll::Z_NR<long> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.long_mpfr);

      /* "fpylll/fplll/gso.pyx":415
 *             if self._type == mat_gso_long_mpfr:
 *                 gram_long_mpfr = <MatGSOGram_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gram_long_mpfr             # <<<<<<<<<<<<<<
 * 
 *             if self._type == mat_gso_mpz_d:
*/
      delete __pyx_v_gram_long_mpfr;

      /* "fpylll/fplll/gso.pyx":413
 *                     gram_long_qd = <MatGSOGram_c[Z_NR[long], FP_NR[qd_t]]*>self._core.long_qd
 *                     del gram_long_qd
 *             if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 gram_long_mpfr = <MatGSOGram_c[Z_NR[long], FP_NR[mpfr_t]]*>self._core.long_mpfr
 *                 del gram_long_mpfr
*/
    }

    /* "fpylll/fplll/gso.pyx":417
 *                 del gram_long_mpfr
 * 
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 gram_mpz_d = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gram_mpz_d
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":418
 * 
 *             if self._type == mat_gso_mpz_d:
 *                 gram_mpz_d = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d             # <<<<<<<<<<<<<<
 *                 del gram_mpz_d
 *             IF HAVE_LONG_DOUBLE:
*/
      __pyx_v_gram_mpz_d = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<double> >  *)__pyx_v_self->_core.mpz_d);

      /* "fpylll/fplll/gso.pyx":419
 *             if self._type == mat_gso_mpz_d:
 *                 gram_mpz_d = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gram_mpz_d             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
*/
      delete __pyx_v_gram_mpz_d;

      /* "fpylll/fplll/gso.pyx":417
 *                 del gram_long_mpfr
 * 
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 gram_mpz_d = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[double]]*>self._core.mpz_d
 *                 del gram_mpz_d
*/
    }

    /* "fpylll/fplll/gso.pyx":421
 *                 del gram_mpz_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gram_mpz_ld
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":422
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld             # <<<<<<<<<<<<<<
 *                     del gram_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:
*/
      __pyx_v_gram_mpz_ld = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.mpz_ld);

      /* "fpylll/fplll/gso.pyx":423
 *                 if self._type == mat_gso_mpz_ld:
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gram_mpz_ld             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_dpe:
 *                 gram_mpz_dpe = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
*/
      delete __pyx_v_gram_mpz_ld;

      /* "fpylll/fplll/gso.pyx":421
 *                 del gram_mpz_d
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gram_mpz_ld
*/
    }

    /* "fpylll/fplll/gso.pyx":424
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gram_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                 gram_mpz_dpe = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gram_mpz_dpe
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":425
 *                     del gram_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:
 *                 gram_mpz_dpe = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe             # <<<<<<<<<<<<<<
 *                 del gram_mpz_dpe
 *             IF HAVE_QD:
*/
      __pyx_v_gram_mpz_dpe = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<dpe_t> >  *)__pyx_v_self->_core.mpz_dpe);

      /* "fpylll/fplll/gso.pyx":426
 *             if self._type == mat_gso_mpz_dpe:
 *                 gram_mpz_dpe = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gram_mpz_dpe             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
*/
      delete __pyx_v_gram_mpz_dpe;

      /* "fpylll/fplll/gso.pyx":424
 *                     gram_mpz_ld = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[ld_t]]*>self._core.mpz_ld
 *                     del gram_mpz_ld
 *             if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                 gram_mpz_dpe = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dpe_t]]*>self._core.mpz_dpe
 *                 del gram_mpz_dpe
*/
    }

    /* "fpylll/fplll/gso.pyx":428
 *                 del gram_mpz_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gram_mpz_dd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":429
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd             # <<<<<<<<<<<<<<
 *                     del gram_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:
*/
      __pyx_v_gram_mpz_dd = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.mpz_dd);

      /* "fpylll/fplll/gso.pyx":430
 *                 if self._type == mat_gso_mpz_dd:
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gram_mpz_dd             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_mpz_qd:
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
*/
      delete __pyx_v_gram_mpz_dd;

      /* "fpylll/fplll/gso.pyx":428
 *                 del gram_mpz_dpe
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gram_mpz_dd
*/
    }

    /* "fpylll/fplll/gso.pyx":431
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gram_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gram_mpz_qd
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":432
 *                     del gram_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd             # <<<<<<<<<<<<<<
 *                     del gram_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:
*/
      __pyx_v_gram_mpz_qd = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)__pyx_v_self->_core.mpz_qd);

      /* "fpylll/fplll/gso.pyx":433
 *                 if self._type == mat_gso_mpz_qd:
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gram_mpz_qd             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gram_mpz_mpfr = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
*/
      delete __pyx_v_gram_mpz_qd;

      /* "fpylll/fplll/gso.pyx":431
 *                     gram_mpz_dd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[dd_t]]*>self._core.mpz_dd
 *                     del gram_mpz_dd
 *                 if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gram_mpz_qd
*/
    }

    /* "fpylll/fplll/gso.pyx":434
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gram_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 gram_mpz_mpfr = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gram_mpz_mpfr
*/
    __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":435
 *                     del gram_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gram_mpz_mpfr = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr             # <<<<<<<<<<<<<<
 *                 del gram_mpz_mpfr
 * 
*/
      __pyx_v_gram_mpz_mpfr = ((fplll::MatGSOGram<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.mpz_mpfr);

      /* "fpylll/fplll/gso.pyx":436
 *             if self._type == mat_gso_mpz_mpfr:
 *                 gram_mpz_mpfr = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gram_mpz_mpfr             # <<<<<<<<<<<<<<
 * 
 * 
*/
      delete __pyx_v_gram_mpz_mpfr;

      /* "fpylll/fplll/gso.pyx":434
 *                     gram_mpz_qd = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[qd_t]]*>self._core.mpz_qd
 *                     del gram_mpz_qd
 *             if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 gram_mpz_mpfr = <MatGSOGram_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gram_mpz_mpfr
*/
    }

    /* "fpylll/fplll/gso.pyx":395
 *                 gso_mpz_mpfr = <MatGSO_c[Z_NR[mpz_t], FP_NR[mpfr_t]]*>self._core.mpz_mpfr
 *                 del gso_mpz_mpfr
 *         elif self._alg == mat_gso_gram_t:             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_d:
 *                 gram_long_d = <MatGSOGram_c[Z_NR[long], FP_NR[double]]*>self._core.long_d
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":315
 *             self.update_gso()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         # We are making sure the correct destructor is called, even when it's not virtual, by explicit casting
 *         cdef MatGSO_c[Z_NR[long], FP_NR[double]]* gso_long_d
*/

  /* function exit code */
}

/* "fpylll/fplll/gso.pyx":439
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Make sure attempts at pickling raise an error until proper pickling is implemented.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_4__reduce__, "MatGSO.__reduce__(self)\n\nMake sure attempts at pickling raise an error until proper pickling is implemented.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_5__reduce__ = {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_4__reduce__};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_4__reduce__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_4__reduce__(CYTHON_UNUSED struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce__", 0);

  /* "fpylll/fplll/gso.pyx":443
 *         Make sure attempts at pickling raise an error until proper pickling is implemented.
 *         """
 *         raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 443, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":439
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Make sure attempts at pickling raise an error until proper pickling is implemented.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":445
 *         raise NotImplementedError
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def G(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1G_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1G_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1G___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1G___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  long __pyx_v_i;
  long __pyx_v_j;
  struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *__pyx_v_G = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  long __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  long __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":488
 * 
 *         cdef long i, j
 *         if self._alg == mat_gso_gram_t:             # <<<<<<<<<<<<<<
 *             return self._G
 *         elif self.int_gram_enabled:
*/
  __pyx_t_1 = (__pyx_v_self->_alg == __pyx_e_6fpylll_5fplll_4decl_mat_gso_gram_t);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":489
 *         cdef long i, j
 *         if self._alg == mat_gso_gram_t:
 *             return self._G             # <<<<<<<<<<<<<<
 *         elif self.int_gram_enabled:
 *             if self.int_type == "mpz":
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_G);
    __pyx_r = ((PyObject *)__pyx_v_self->_G);
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":488
 * 
 *         cdef long i, j
 *         if self._alg == mat_gso_gram_t:             # <<<<<<<<<<<<<<
 *             return self._G
 *         elif self.int_gram_enabled:
*/
  }

  /* "fpylll/fplll/gso.pyx":490
 *         if self._alg == mat_gso_gram_t:
 *             return self._G
 *         elif self.int_gram_enabled:             # <<<<<<<<<<<<<<
 *             if self.int_type == "mpz":
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_int_gram_enabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":491
 *             return self._G
 *         elif self.int_gram_enabled:
 *             if self.int_type == "mpz":             # <<<<<<<<<<<<<<
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
 *                 if self._type == mat_gso_mpz_d:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_mpz, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 491, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":492
 *         elif self.int_gram_enabled:
 *             if self.int_type == "mpz":
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_mpz_d:
 *                     for i in range(self.d):
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 492, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 492, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_t_4, __pyx_t_5};
        __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 492, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_int_type, __pyx_mstate_global->__pyx_n_u_mpz, __pyx_t_7, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 492, __pyx_L1_error)
        __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 492, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_2);
      }
      __pyx_v_G = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "fpylll/fplll/gso.pyx":493
 *             if self.int_type == "mpz":
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
 *                 if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
      switch (__pyx_v_self->_type) {
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

        /* "fpylll/fplll/gso.pyx":494
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
 *                 if self._type == mat_gso_mpz_d:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_d.get_g_matrix()[i][j].get_data())
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 494, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 494, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":495
 *                 if self._type == mat_gso_mpz_d:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = mpz_get_python(self._core.mpz_d.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_dpe:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 495, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 495, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":496
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_d.get_g_matrix()[i][j].get_data())             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_dpe:
 *                     for i in range(self.d):
*/
            __pyx_t_2 = __pyx_f_6fpylll_2io_mpz_get_python(((__pyx_v_self->_core.mpz_d->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 496, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 496, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 496, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 496, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_GIVEREF(__pyx_t_7);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 496, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_5);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 496, __pyx_L1_error);
            __pyx_t_7 = 0;
            __pyx_t_5 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 496, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":493
 *             if self.int_type == "mpz":
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
 *                 if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:

        /* "fpylll/fplll/gso.pyx":498
 *                             G[i, j] = mpz_get_python(self._core.mpz_d.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_dpe:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_dpe.get_g_matrix()[i][j].get_data())
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 498, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 498, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":499
 *                 elif self._type == mat_gso_mpz_dpe:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = mpz_get_python(self._core.mpz_dpe.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_mpfr:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":500
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_dpe.get_g_matrix()[i][j].get_data())             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_mpfr:
 *                     for i in range(self.d):
*/
            __pyx_t_2 = __pyx_f_6fpylll_2io_mpz_get_python(((__pyx_v_self->_core.mpz_dpe->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 500, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_4 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 500, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 500, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 500, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_GIVEREF(__pyx_t_4);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 500, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_5);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 500, __pyx_L1_error);
            __pyx_t_4 = 0;
            __pyx_t_5 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_7, __pyx_t_2) < 0))) __PYX_ERR(0, 500, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":497
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_d.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

        /* "fpylll/fplll/gso.pyx":502
 *                             G[i, j] = mpz_get_python(self._core.mpz_dpe.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_mpfr:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_mpfr.get_g_matrix()[i][j].get_data())
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 502, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":503
 *                 elif self._type == mat_gso_mpz_mpfr:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = mpz_get_python(self._core.mpz_mpfr.get_g_matrix()[i][j].get_data())
 *                 else:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 503, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 503, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":504
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_mpfr.get_g_matrix()[i][j].get_data())             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
            __pyx_t_2 = __pyx_f_6fpylll_2io_mpz_get_python(((__pyx_v_self->_core.mpz_mpfr->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 504, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 504, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 504, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 504, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_GIVEREF(__pyx_t_7);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 504, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_5);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 504, __pyx_L1_error);
            __pyx_t_7 = 0;
            __pyx_t_5 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 504, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":501
 *                         for j in range(self.d):
 *                             G[i, j] = mpz_get_python(self._core.mpz_dpe.get_g_matrix()[i][j].get_data())
 *                 elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":507
 *                 else:
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
        switch (__pyx_v_self->_type) {
          case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

          /* "fpylll/fplll/gso.pyx":508
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_mpz_dd:
 *                             for i in range(self.d):             # <<<<<<<<<<<<<<
 *                                 for j in range(self.d):
 *                                     G[i, j] = mpz_get_python(self._core.mpz_dd.get_g_matrix()[i][j].get_data())
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 508, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 508, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_9 = __pyx_t_8;
          for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
            __pyx_v_i = __pyx_t_10;

            /* "fpylll/fplll/gso.pyx":509
 *                         if self._type == mat_gso_mpz_dd:
 *                             for i in range(self.d):
 *                                 for j in range(self.d):             # <<<<<<<<<<<<<<
 *                                     G[i, j] = mpz_get_python(self._core.mpz_dd.get_g_matrix()[i][j].get_data())
 *                         elif self._type == mat_gso_mpz_qd:
*/
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 509, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = __pyx_t_11;
            for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
              __pyx_v_j = __pyx_t_13;

              /* "fpylll/fplll/gso.pyx":510
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
 *                                     G[i, j] = mpz_get_python(self._core.mpz_dd.get_g_matrix()[i][j].get_data())             # <<<<<<<<<<<<<<
 *                         elif self._type == mat_gso_mpz_qd:
 *                             for i in range(self.d):
*/
              __pyx_t_2 = __pyx_f_6fpylll_2io_mpz_get_python(((__pyx_v_self->_core.mpz_dd->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 510, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_4 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 510, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 510, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_5);
              __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 510, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
              __Pyx_GIVEREF(__pyx_t_4);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 510, __pyx_L1_error);
              __Pyx_GIVEREF(__pyx_t_5);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 510, __pyx_L1_error);
              __pyx_t_4 = 0;
              __pyx_t_5 = 0;
              if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_7, __pyx_t_2) < 0))) __PYX_ERR(0, 510, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
          }

          /* "fpylll/fplll/gso.pyx":507
 *                 else:
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
          break;
          case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

          /* "fpylll/fplll/gso.pyx":512
 *                                     G[i, j] = mpz_get_python(self._core.mpz_dd.get_g_matrix()[i][j].get_data())
 *                         elif self._type == mat_gso_mpz_qd:
 *                             for i in range(self.d):             # <<<<<<<<<<<<<<
 *                                 for j in range(self.d):
 *                                     G[i, j] = mpz_get_python(self._core.mpz_qd.get_g_matrix()[i][j].get_data())
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 512, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 512, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_9 = __pyx_t_8;
          for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
            __pyx_v_i = __pyx_t_10;

            /* "fpylll/fplll/gso.pyx":513
 *                         elif self._type == mat_gso_mpz_qd:
 *                             for i in range(self.d):
 *                                 for j in range(self.d):             # <<<<<<<<<<<<<<
 *                                     G[i, j] = mpz_get_python(self._core.mpz_qd.get_g_matrix()[i][j].get_data())
 *                         else:
*/
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 513, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 513, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = __pyx_t_11;
            for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
              __pyx_v_j = __pyx_t_13;

              /* "fpylll/fplll/gso.pyx":514
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
 *                                     G[i, j] = mpz_get_python(self._core.mpz_qd.get_g_matrix()[i][j].get_data())             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
              __pyx_t_2 = __pyx_f_6fpylll_2io_mpz_get_python(((__pyx_v_self->_core.mpz_qd->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 514, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
              __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 514, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_5);
              __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 514, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_GIVEREF(__pyx_t_7);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 514, __pyx_L1_error);
              __Pyx_GIVEREF(__pyx_t_5);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 514, __pyx_L1_error);
              __pyx_t_7 = 0;
              __pyx_t_5 = 0;
              if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 514, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
          }

          /* "fpylll/fplll/gso.pyx":511
 *                                 for j in range(self.d):
 *                                     G[i, j] = mpz_get_python(self._core.mpz_dd.get_g_matrix()[i][j].get_data())
 *                         elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":516
 *                                     G[i, j] = mpz_get_python(self._core.mpz_qd.get_g_matrix()[i][j].get_data())
 *                         else:
 *                             raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 *                     ELIF HAVE_LONG_DOUBLE:
 *                         if self._type == mat_gso_mpz_ld:
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 516, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
            __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 516, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __Pyx_Raise(__pyx_t_2, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 516, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":524
 *                     ELSE:
 *                         raise RuntimeError("MatGSO object '%s' has no core."%self)
 *                 return G             # <<<<<<<<<<<<<<
 *             elif self.int_type == "long":
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF((PyObject *)__pyx_v_G);
      __pyx_r = ((PyObject *)__pyx_v_G);
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":491
 *             return self._G
 *         elif self.int_gram_enabled:
 *             if self.int_type == "mpz":             # <<<<<<<<<<<<<<
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
 *                 if self._type == mat_gso_mpz_d:
*/
    }

    /* "fpylll/fplll/gso.pyx":525
 *                         raise RuntimeError("MatGSO object '%s' has no core."%self)
 *                 return G
 *             elif self.int_type == "long":             # <<<<<<<<<<<<<<
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
 *                 if self._type == mat_gso_long_d:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_int_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_long, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "fpylll/fplll/gso.pyx":526
 *                 return G
 *             elif self.int_type == "long":
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")             # <<<<<<<<<<<<<<
 *                 if self._type == mat_gso_long_d:
 *                     for i in range(self.d):
*/
      __pyx_t_5 = NULL;
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 526, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 526, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, __pyx_t_4, __pyx_t_7};
        __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 526, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_int_type, __pyx_mstate_global->__pyx_n_u_long, __pyx_t_3, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 526, __pyx_L1_error)
        __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 526, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_2);
      }
      __pyx_v_G = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "fpylll/fplll/gso.pyx":527
 *             elif self.int_type == "long":
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
 *                 if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
      switch (__pyx_v_self->_type) {
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

        /* "fpylll/fplll/gso.pyx":528
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
 *                 if self._type == mat_gso_long_d:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_d.get_g_matrix()[i][j].get_data()
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 528, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":529
 *                 if self._type == mat_gso_long_d:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = self._core.long_d.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_dpe:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 529, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 529, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":530
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_d.get_g_matrix()[i][j].get_data()             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_dpe:
 *                     for i in range(self.d):
*/
            __pyx_t_2 = __Pyx_PyLong_From_long(((__pyx_v_self->_core.long_d->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 530, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_3 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 530, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 530, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 530, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_GIVEREF(__pyx_t_3);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 530, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_7);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 530, __pyx_L1_error);
            __pyx_t_3 = 0;
            __pyx_t_7 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 530, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":527
 *             elif self.int_type == "long":
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
 *                 if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

        /* "fpylll/fplll/gso.pyx":532
 *                             G[i, j] = self._core.long_d.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_dpe:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_dpe.get_g_matrix()[i][j].get_data()
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 532, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 532, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":533
 *                 elif self._type == mat_gso_long_dpe:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = self._core.long_dpe.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_mpfr:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 533, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 533, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":534
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_dpe.get_g_matrix()[i][j].get_data()             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_mpfr:
 *                     for i in range(self.d):
*/
            __pyx_t_2 = __Pyx_PyLong_From_long(((__pyx_v_self->_core.long_dpe->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 534, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_4 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 534, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 534, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 534, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_GIVEREF(__pyx_t_4);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 534, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_7);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 534, __pyx_L1_error);
            __pyx_t_4 = 0;
            __pyx_t_7 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_3, __pyx_t_2) < 0))) __PYX_ERR(0, 534, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":531
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_d.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

        /* "fpylll/fplll/gso.pyx":536
 *                             G[i, j] = self._core.long_dpe.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_mpfr:
 *                     for i in range(self.d):             # <<<<<<<<<<<<<<
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_mpfr.get_g_matrix()[i][j].get_data()
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 536, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_v_i = __pyx_t_10;

          /* "fpylll/fplll/gso.pyx":537
 *                 elif self._type == mat_gso_long_mpfr:
 *                     for i in range(self.d):
 *                         for j in range(self.d):             # <<<<<<<<<<<<<<
 *                             G[i, j] = self._core.long_mpfr.get_g_matrix()[i][j].get_data()
 *                 else:
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 537, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_12 = __pyx_t_11;
          for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
            __pyx_v_j = __pyx_t_13;

            /* "fpylll/fplll/gso.pyx":538
 *                     for i in range(self.d):
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_mpfr.get_g_matrix()[i][j].get_data()             # <<<<<<<<<<<<<<
 *                 else:
 *                     IF HAVE_QD:
*/
            __pyx_t_2 = __Pyx_PyLong_From_long(((__pyx_v_self->_core.long_mpfr->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 538, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_3 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 538, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 538, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 538, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_GIVEREF(__pyx_t_3);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 538, __pyx_L1_error);
            __Pyx_GIVEREF(__pyx_t_7);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 538, __pyx_L1_error);
            __pyx_t_3 = 0;
            __pyx_t_7 = 0;
            if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 538, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
        }

        /* "fpylll/fplll/gso.pyx":535
 *                         for j in range(self.d):
 *                             G[i, j] = self._core.long_dpe.get_g_matrix()[i][j].get_data()
 *                 elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                     for i in range(self.d):
 *                         for j in range(self.d):
*/
        break;
        default:

        /* "fpylll/fplll/gso.pyx":541
 *                 else:
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
        switch (__pyx_v_self->_type) {
          case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

          /* "fpylll/fplll/gso.pyx":542
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_long_dd:
 *                             for i in range(self.d):             # <<<<<<<<<<<<<<
 *                                 for j in range(self.d):
 *                                     G[i, j] = self._core.long_dd.get_g_matrix()[i][j].get_data()
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 542, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 542, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_9 = __pyx_t_8;
          for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
            __pyx_v_i = __pyx_t_10;

            /* "fpylll/fplll/gso.pyx":543
 *                         if self._type == mat_gso_long_dd:
 *                             for i in range(self.d):
 *                                 for j in range(self.d):             # <<<<<<<<<<<<<<
 *                                     G[i, j] = self._core.long_dd.get_g_matrix()[i][j].get_data()
 *                         elif self._type == mat_gso_long_qd:
*/
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 543, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = __pyx_t_11;
            for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
              __pyx_v_j = __pyx_t_13;

              /* "fpylll/fplll/gso.pyx":544
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
 *                                     G[i, j] = self._core.long_dd.get_g_matrix()[i][j].get_data()             # <<<<<<<<<<<<<<
 *                         elif self._type == mat_gso_long_qd:
 *                             for i in range(self.d):
*/
              __pyx_t_2 = __Pyx_PyLong_From_long(((__pyx_v_self->_core.long_dd->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 544, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_4 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 544, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
              __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 544, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __Pyx_GIVEREF(__pyx_t_4);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 544, __pyx_L1_error);
              __Pyx_GIVEREF(__pyx_t_7);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 544, __pyx_L1_error);
              __pyx_t_4 = 0;
              __pyx_t_7 = 0;
              if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_3, __pyx_t_2) < 0))) __PYX_ERR(0, 544, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
          }

          /* "fpylll/fplll/gso.pyx":541
 *                 else:
 *                     IF HAVE_QD:
 *                         if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
          break;
          case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

          /* "fpylll/fplll/gso.pyx":546
 *                                     G[i, j] = self._core.long_dd.get_g_matrix()[i][j].get_data()
 *                         elif self._type == mat_gso_long_qd:
 *                             for i in range(self.d):             # <<<<<<<<<<<<<<
 *                                 for j in range(self.d):
 *                                     G[i, j] = self._core.long_qd.get_g_matrix()[i][j].get_data()
*/
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 546, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 546, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_9 = __pyx_t_8;
          for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
            __pyx_v_i = __pyx_t_10;

            /* "fpylll/fplll/gso.pyx":547
 *                         elif self._type == mat_gso_long_qd:
 *                             for i in range(self.d):
 *                                 for j in range(self.d):             # <<<<<<<<<<<<<<
 *                                     G[i, j] = self._core.long_qd.get_g_matrix()[i][j].get_data()
 *                         else:
*/
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 547, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = __pyx_t_11;
            for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
              __pyx_v_j = __pyx_t_13;

              /* "fpylll/fplll/gso.pyx":548
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
 *                                     G[i, j] = self._core.long_qd.get_g_matrix()[i][j].get_data()             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
              __pyx_t_2 = __Pyx_PyLong_From_long(((__pyx_v_self->_core.long_qd->get_g_matrix()[__pyx_v_i])[__pyx_v_j]).get_data()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 548, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_3 = __Pyx_PyLong_From_long(__pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 548, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __pyx_t_7 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 548, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
              __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 548, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_GIVEREF(__pyx_t_3);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 548, __pyx_L1_error);
              __Pyx_GIVEREF(__pyx_t_7);
              if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 548, __pyx_L1_error);
              __pyx_t_3 = 0;
              __pyx_t_7 = 0;
              if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_G), __pyx_t_4, __pyx_t_2) < 0))) __PYX_ERR(0, 548, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
          }

          /* "fpylll/fplll/gso.pyx":545
 *                                 for j in range(self.d):
 *                                     G[i, j] = self._core.long_dd.get_g_matrix()[i][j].get_data()
 *                         elif self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                             for i in range(self.d):
 *                                 for j in range(self.d):
*/
          break;
          default:

          /* "fpylll/fplll/gso.pyx":550
 *                                     G[i, j] = self._core.long_qd.get_g_matrix()[i][j].get_data()
 *                         else:
 *                             raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 *                     ELIF HAVE_LONG_DOUBLE:
 *                         if self._type == mat_gso_long_ld:
*/
          __pyx_t_4 = NULL;
          __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7};
            __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 550, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __Pyx_Raise(__pyx_t_2, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 550, __pyx_L1_error)
          break;
        }
        break;
      }

      /* "fpylll/fplll/gso.pyx":558
 *                     ELSE:
 *                         raise RuntimeError("MatGSO object '%s' has no core."%self)
 *                 return G             # <<<<<<<<<<<<<<
 * 
 *         else:
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF((PyObject *)__pyx_v_G);
      __pyx_r = ((PyObject *)__pyx_v_G);
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":525
 *                         raise RuntimeError("MatGSO object '%s' has no core."%self)
 *                 return G
 *             elif self.int_type == "long":             # <<<<<<<<<<<<<<
 *                 G = IntegerMatrix(self.d, self.d, int_type="long")
 *                 if self._type == mat_gso_long_d:
*/
    }

    /* "fpylll/fplll/gso.pyx":490
 *         if self._alg == mat_gso_gram_t:
 *             return self._G
 *         elif self.int_gram_enabled:             # <<<<<<<<<<<<<<
 *             if self.int_type == "mpz":
 *                 G = IntegerMatrix(self.d, self.d, int_type="mpz")
*/
    goto __pyx_L3;
  }

  /* "fpylll/fplll/gso.pyx":561
 * 
 *         else:
 *             raise NotImplementedError("Computing the Gram Matrix currently requires GSO.INT_GRAM")             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  /*else*/ {
    __pyx_t_7 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_Computing_the_Gram_Matrix_curren};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_NotImplementedError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 561, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "fpylll/fplll/gso.pyx":445
 *         raise NotImplementedError
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def G(self):
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.G.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_G);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":563
 *             raise NotImplementedError("Computing the Gram Matrix currently requires GSO.INT_GRAM")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def float_type(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_10float_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_10float_type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10float_type___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10float_type___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":577
 * 
 *         """
 *         if self._type == mat_gso_mpz_d or self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return "double"
 *         IF HAVE_LONG_DOUBLE:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":578
 *         """
 *         if self._type == mat_gso_mpz_d or self._type == mat_gso_long_d:
 *             return "double"             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_double);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_double;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":577
 * 
 *         """
 *         if self._type == mat_gso_mpz_d or self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return "double"
 *         IF HAVE_LONG_DOUBLE:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":580
 *             return "double"
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return "long double"
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

    /* "fpylll/fplll/gso.pyx":581
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:
 *                 return "long double"             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:
 *             return "dpe"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_long_double);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u_long_double;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":580
 *             return "double"
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return "long double"
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":582
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:
 *                 return "long double"
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return "dpe"
 *         IF HAVE_QD:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

    /* "fpylll/fplll/gso.pyx":583
 *                 return "long double"
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:
 *             return "dpe"             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_dpe);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_dpe;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":582
 *             if self._type == mat_gso_mpz_ld or self._type == mat_gso_long_ld:
 *                 return "long double"
 *         if self._type == mat_gso_mpz_dpe or self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return "dpe"
 *         IF HAVE_QD:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":585
 *             return "dpe"
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return "dd"
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

    /* "fpylll/fplll/gso.pyx":586
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:
 *                 return "dd"             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
 *                 return "qd"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_dd);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_dd;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":585
 *             return "dpe"
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return "dd"
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":587
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:
 *                 return "dd"
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return "qd"
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

    /* "fpylll/fplll/gso.pyx":588
 *                 return "dd"
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
 *                 return "qd"             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:
 *             return "mpfr"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_qd);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_qd;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":587
 *             if self._type == mat_gso_mpz_dd or self._type == mat_gso_long_dd:
 *                 return "dd"
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return "qd"
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":589
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
 *                 return "qd"
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return "mpfr"
 * 
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

    /* "fpylll/fplll/gso.pyx":590
 *                 return "qd"
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:
 *             return "mpfr"             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_mpfr);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_mpfr;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":589
 *             if self._type == mat_gso_mpz_qd or self._type == mat_gso_long_qd:
 *                 return "qd"
 *         if self._type == mat_gso_mpz_mpfr or self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return "mpfr"
 * 
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":592
 *             return "mpfr"
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 592, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":563
 *             raise NotImplementedError("Computing the Gram Matrix currently requires GSO.INT_GRAM")
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def float_type(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.float_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":594
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def int_type(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_8int_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_8int_type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8int_type___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8int_type___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":599
 * 
 *         """
 *         if self._type in (mat_gso_mpz_d, mat_gso_mpz_dpe, mat_gso_mpz_mpfr):             # <<<<<<<<<<<<<<
 *             return "mpz"
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":600
 *         """
 *         if self._type in (mat_gso_mpz_d, mat_gso_mpz_dpe, mat_gso_mpz_mpfr):
 *             return "mpz"             # <<<<<<<<<<<<<<
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):
 *             return "long"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_mpz);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_mpz;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":599
 * 
 *         """
 *         if self._type in (mat_gso_mpz_d, mat_gso_mpz_dpe, mat_gso_mpz_mpfr):             # <<<<<<<<<<<<<<
 *             return "mpz"
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":601
 *         if self._type in (mat_gso_mpz_d, mat_gso_mpz_dpe, mat_gso_mpz_mpfr):
 *             return "mpz"
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):             # <<<<<<<<<<<<<<
 *             return "long"
 *         IF HAVE_LONG_DOUBLE:
*/
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

    /* "fpylll/fplll/gso.pyx":602
 *             return "mpz"
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):
 *             return "long"             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_long);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_long;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":601
 *         if self._type in (mat_gso_mpz_d, mat_gso_mpz_dpe, mat_gso_mpz_mpfr):
 *             return "mpz"
 *         elif self._type in (mat_gso_long_d, mat_gso_long_dpe, mat_gso_long_mpfr):             # <<<<<<<<<<<<<<
 *             return "long"
 *         IF HAVE_LONG_DOUBLE:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":604
 *             return "long"
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return "mpz"
 *             elif self._type == mat_gso_long_ld:
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:

    /* "fpylll/fplll/gso.pyx":605
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return "mpz"             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_ld:
 *                 return "long"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_mpz);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_mpz;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":604
 *             return "long"
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return "mpz"
 *             elif self._type == mat_gso_long_ld:
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

    /* "fpylll/fplll/gso.pyx":607
 *                 return "mpz"
 *             elif self._type == mat_gso_long_ld:
 *                 return "long"             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_long);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_long;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":606
 *             if self._type == mat_gso_mpz_ld:
 *                 return "mpz"
 *             elif self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return "long"
 *         IF HAVE_QD:
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":609
 *                 return "long"
 *         IF HAVE_QD:
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):             # <<<<<<<<<<<<<<
 *                 return "mpz"
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

    /* "fpylll/fplll/gso.pyx":610
 *         IF HAVE_QD:
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):
 *                 return "mpz"             # <<<<<<<<<<<<<<
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):
 *                 return "long"
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_mpz);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_mpz;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":609
 *                 return "long"
 *         IF HAVE_QD:
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):             # <<<<<<<<<<<<<<
 *                 return "mpz"
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

    /* "fpylll/fplll/gso.pyx":611
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):
 *                 return "mpz"
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):             # <<<<<<<<<<<<<<
 *                 return "long"
 * 
*/
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

    /* "fpylll/fplll/gso.pyx":612
 *                 return "mpz"
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):
 *                 return "long"             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_long);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_long;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":611
 *             if self._type in (mat_gso_mpz_dd, mat_gso_mpz_qd):
 *                 return "mpz"
 *             elif self._type in (mat_gso_long_dd, mat_gso_long_qd):             # <<<<<<<<<<<<<<
 *                 return "long"
 * 
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":614
 *                 return "long"
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 614, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":594
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def int_type(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.int_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":616
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def d(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1d_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1d_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1d___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1d___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":628
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.d
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":629
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.d             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_d->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 629, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":628
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.d
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":631
 *             return self._core.mpz_d.d
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.d
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":632
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.d             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_ld->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":631
 *             return self._core.mpz_d.d
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.d
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":633
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.d
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.d
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":634
 *                 return self._core.mpz_ld.d
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.d             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_dpe->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":633
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.d
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.d
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":636
 *             return self._core.mpz_dpe.d
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.d
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":637
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.d             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_dd->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":636
 *             return self._core.mpz_dpe.d
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.d
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":638
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.d
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.d
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":639
 *                 return self._core.mpz_dd.d
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.d             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_qd->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":638
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.d
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.d
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":640
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.d
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.d
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":641
 *                 return self._core.mpz_qd.d
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.d             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.mpz_mpfr->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":640
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.d
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.d
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":643
 *             return self._core.mpz_mpfr.d
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.d
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":644
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.d             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_d->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":643
 *             return self._core.mpz_mpfr.d
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.d
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":646
 *             return self._core.long_d.d
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.d
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":647
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.d             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_ld->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":646
 *             return self._core.long_d.d
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.d
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":648
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.d
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.d
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":649
 *                 return self._core.long_ld.d
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.d             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_dpe->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":648
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.d
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.d
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":651
 *             return self._core.long_dpe.d
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.d
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":652
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.d             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_dd->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":651
 *             return self._core.long_dpe.d
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.d
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":653
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.d
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.d
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":654
 *                 return self._core.long_dd.d
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.d             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.d
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_qd->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":653
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.d
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.d
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":655
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.d
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.d
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":656
 *                 return self._core.long_qd.d
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.d             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_core.long_mpfr->d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":655
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.d
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.d
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":658
 *             return self._core.long_mpfr.d
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 658, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 658, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":616
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def d(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.d.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":660
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def int_gram_enabled(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":676
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":677
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.enable_int_gram)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":676
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":679
 *             return bool(self._core.mpz_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_int_gram)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":680
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_int_gram)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":679
 *             return bool(self._core.mpz_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_int_gram)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":681
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_int_gram)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_int_gram)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":682
 *                 return bool(self._core.mpz_ld.enable_int_gram)
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_int_gram)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 682, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":681
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_int_gram)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_int_gram)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":684
 *             return bool(self._core.mpz_dpe.enable_int_gram)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_int_gram)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":685
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_int_gram)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":684
 *             return bool(self._core.mpz_dpe.enable_int_gram)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_int_gram)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":686
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_int_gram)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_int_gram)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":687
 *                 return bool(self._core.mpz_dd.enable_int_gram)
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_int_gram)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":686
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_int_gram)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_int_gram)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":688
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_int_gram)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_int_gram)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":689
 *                 return bool(self._core.mpz_qd.enable_int_gram)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_int_gram)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":688
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_int_gram)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_int_gram)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":691
 *             return bool(self._core.mpz_mpfr.enable_int_gram)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":692
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.enable_int_gram)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":691
 *             return bool(self._core.mpz_mpfr.enable_int_gram)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":694
 *             return bool(self._core.long_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_int_gram)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":695
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_int_gram)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":694
 *             return bool(self._core.long_d.enable_int_gram)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_int_gram)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":696
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_int_gram)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_int_gram)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":697
 *                 return bool(self._core.long_ld.enable_int_gram)
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_int_gram)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":696
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_int_gram)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_int_gram)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":699
 *             return bool(self._core.long_dpe.enable_int_gram)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_int_gram)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":700
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_int_gram)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":699
 *             return bool(self._core.long_dpe.enable_int_gram)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_int_gram)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":701
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_int_gram)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_int_gram)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":702
 *                 return bool(self._core.long_dd.enable_int_gram)
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_int_gram)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_int_gram)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":701
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_int_gram)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_int_gram)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":703
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_int_gram)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_int_gram)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":704
 *                 return bool(self._core.long_qd.enable_int_gram)
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_int_gram)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->enable_int_gram != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":703
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_int_gram)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_int_gram)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":706
 *             return bool(self._core.long_mpfr.enable_int_gram)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 706, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":660
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def int_gram_enabled(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.int_gram_enabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":708
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def row_expo_enabled(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":724
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":725
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.enable_row_expo)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":724
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":727
 *             return bool(self._core.mpz_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_row_expo)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":728
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_row_expo)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":727
 *             return bool(self._core.mpz_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_row_expo)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":729
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_row_expo)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_row_expo)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":730
 *                 return bool(self._core.mpz_ld.enable_row_expo)
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_row_expo)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":729
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_row_expo)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_row_expo)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":732
 *             return bool(self._core.mpz_dpe.enable_row_expo)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_row_expo)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":733
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_row_expo)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":732
 *             return bool(self._core.mpz_dpe.enable_row_expo)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_row_expo)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":734
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_row_expo)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_row_expo)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":735
 *                 return bool(self._core.mpz_dd.enable_row_expo)
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_row_expo)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":734
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_row_expo)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_row_expo)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":736
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_row_expo)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_row_expo)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":737
 *                 return bool(self._core.mpz_qd.enable_row_expo)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_row_expo)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 737, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":736
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_row_expo)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_row_expo)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":739
 *             return bool(self._core.mpz_mpfr.enable_row_expo)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":740
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.enable_row_expo)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":739
 *             return bool(self._core.mpz_mpfr.enable_row_expo)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":742
 *             return bool(self._core.long_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_row_expo)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":743
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_row_expo)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":742
 *             return bool(self._core.long_d.enable_row_expo)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_row_expo)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":744
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_row_expo)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_row_expo)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":745
 *                 return bool(self._core.long_ld.enable_row_expo)
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_row_expo)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":744
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_row_expo)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_row_expo)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":747
 *             return bool(self._core.long_dpe.enable_row_expo)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_row_expo)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":748
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_row_expo)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":747
 *             return bool(self._core.long_dpe.enable_row_expo)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_row_expo)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":749
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_row_expo)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_row_expo)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":750
 *                 return bool(self._core.long_dd.enable_row_expo)
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_row_expo)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_row_expo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":749
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_row_expo)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_row_expo)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":751
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_row_expo)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_row_expo)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":752
 *                 return bool(self._core.long_qd.enable_row_expo)
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_row_expo)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->enable_row_expo != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":751
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_row_expo)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_row_expo)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":754
 *             return bool(self._core.long_mpfr.enable_row_expo)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 754, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":708
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def row_expo_enabled(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_expo_enabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":756
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform_enabled(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":774
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":775
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.enable_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":774
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":777
 *             return bool(self._core.mpz_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_transform)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":778
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":777
 *             return bool(self._core.mpz_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_transform)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":779
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_transform)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_transform)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":780
 *                 return bool(self._core.mpz_ld.enable_transform)
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":779
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_transform)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_transform)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":782
 *             return bool(self._core.mpz_dpe.enable_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_transform)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":783
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_transform)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 783, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":782
 *             return bool(self._core.mpz_dpe.enable_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_transform)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":784
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_transform)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_transform)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":785
 *                 return bool(self._core.mpz_dd.enable_transform)
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 785, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":784
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_transform)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_transform)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":786
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_transform)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_transform)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":787
 *                 return bool(self._core.mpz_qd.enable_transform)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_transform)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":786
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_transform)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_transform)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":789
 *             return bool(self._core.mpz_mpfr.enable_transform)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":790
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.enable_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":789
 *             return bool(self._core.mpz_mpfr.enable_transform)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":792
 *             return bool(self._core.long_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_transform)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":793
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":792
 *             return bool(self._core.long_d.enable_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_transform)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":794
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_transform)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_transform)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":795
 *                 return bool(self._core.long_ld.enable_transform)
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":794
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_transform)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_transform)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":797
 *             return bool(self._core.long_dpe.enable_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_transform)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":798
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_transform)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":797
 *             return bool(self._core.long_dpe.enable_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_transform)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":799
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_transform)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_transform)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":800
 *                 return bool(self._core.long_dd.enable_transform)
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":799
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_transform)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_transform)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":801
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_transform)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_transform)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":802
 *                 return bool(self._core.long_qd.enable_transform)
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_transform)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->enable_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":801
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_transform)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_transform)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":804
 *             return bool(self._core.long_mpfr.enable_transform)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 804, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":756
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def transform_enabled(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.transform_enabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":806
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def inverse_transform_enabled(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":824
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":825
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":824
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":827
 *             return bool(self._core.mpz_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":828
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":827
 *             return bool(self._core.mpz_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":829
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":830
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 830, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":829
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":832
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":833
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 833, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":832
 *             return bool(self._core.mpz_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":834
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":835
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":834
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.enable_inverse_transform)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":836
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":837
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":836
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.enable_inverse_transform)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":839
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":840
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":839
 *             return bool(self._core.mpz_mpfr.enable_inverse_transform)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":842
 *             return bool(self._core.long_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_inverse_transform)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":843
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 843, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":842
 *             return bool(self._core.long_d.enable_inverse_transform)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.enable_inverse_transform)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":844
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_inverse_transform)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":845
 *                 return bool(self._core.long_ld.enable_inverse_transform)
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 845, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":844
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.enable_inverse_transform)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":847
 *             return bool(self._core.long_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_inverse_transform)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":848
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 848, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":847
 *             return bool(self._core.long_dpe.enable_inverse_transform)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.enable_inverse_transform)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":849
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_inverse_transform)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_inverse_transform)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":850
 *                 return bool(self._core.long_dd.enable_inverse_transform)
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_inverse_transform)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_inverse_transform)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 850, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":849
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.enable_inverse_transform)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.enable_inverse_transform)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":851
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_inverse_transform)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_inverse_transform)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":852
 *                 return bool(self._core.long_qd.enable_inverse_transform)
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.enable_inverse_transform)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->enable_inverse_transform != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":851
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.enable_inverse_transform)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.enable_inverse_transform)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":854
 *             return bool(self._core.long_mpfr.enable_inverse_transform)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 854, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 854, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":806
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def inverse_transform_enabled(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.inverse_transform_enabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":856
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def row_op_force_long(self):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "fpylll/fplll/gso.pyx":872
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":873
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.row_op_force_long)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":872
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":875
 *             return bool(self._core.mpz_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.row_op_force_long)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":876
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.row_op_force_long)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":875
 *             return bool(self._core.mpz_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.row_op_force_long)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":877
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.row_op_force_long)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.row_op_force_long)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":878
 *                 return bool(self._core.mpz_ld.row_op_force_long)
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.row_op_force_long)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":877
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.row_op_force_long)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.row_op_force_long)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":880
 *             return bool(self._core.mpz_dpe.row_op_force_long)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.row_op_force_long)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":881
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.row_op_force_long)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":880
 *             return bool(self._core.mpz_dpe.row_op_force_long)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.row_op_force_long)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":882
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.row_op_force_long)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.row_op_force_long)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":883
 *                 return bool(self._core.mpz_dd.row_op_force_long)
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.row_op_force_long)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":882
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.row_op_force_long)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.row_op_force_long)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":884
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.row_op_force_long)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.row_op_force_long)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":885
 *                 return bool(self._core.mpz_qd.row_op_force_long)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.row_op_force_long)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 885, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":884
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.row_op_force_long)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.row_op_force_long)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":887
 *             return bool(self._core.mpz_mpfr.row_op_force_long)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":888
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.row_op_force_long)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 888, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":887
 *             return bool(self._core.mpz_mpfr.row_op_force_long)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":890
 *             return bool(self._core.long_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.row_op_force_long)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":891
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.row_op_force_long)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":890
 *             return bool(self._core.long_d.row_op_force_long)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.row_op_force_long)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":892
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.row_op_force_long)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.row_op_force_long)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":893
 *                 return bool(self._core.long_ld.row_op_force_long)
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.row_op_force_long)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":892
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.row_op_force_long)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.row_op_force_long)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":895
 *             return bool(self._core.long_dpe.row_op_force_long)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.row_op_force_long)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":896
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.row_op_force_long)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 896, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":895
 *             return bool(self._core.long_dpe.row_op_force_long)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.row_op_force_long)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":897
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.row_op_force_long)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.row_op_force_long)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":898
 *                 return bool(self._core.long_dd.row_op_force_long)
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.row_op_force_long)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.row_op_force_long)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":897
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.row_op_force_long)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.row_op_force_long)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":899
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.row_op_force_long)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.row_op_force_long)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":900
 *                 return bool(self._core.long_qd.row_op_force_long)
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.row_op_force_long)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->row_op_force_long != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":899
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.row_op_force_long)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.row_op_force_long)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":902
 *             return bool(self._core.long_mpfr.row_op_force_long)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def row_op_begin(self, int first, int last):
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 902, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":856
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def row_op_force_long(self):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_op_force_long.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":904
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_begin(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called before a sequence of ``row_addmul``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin, "MatGSO.row_op_begin(self, int first, int last)\n\nMust be called before a sequence of ``row_addmul``.\n\n:param int first: start index for ``row_addmul`` operations.\n:param int last: final index (exclusive).\n\n.. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin = {"row_op_begin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_first;
  int __pyx_v_last;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("row_op_begin (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_last,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 904, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 904, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 904, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "row_op_begin", 0) < (0)) __PYX_ERR(0, 904, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("row_op_begin", 1, 2, 2, i); __PYX_ERR(0, 904, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 904, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 904, __pyx_L3_error)
    }
    __pyx_v_first = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_first == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 904, __pyx_L3_error)
    __pyx_v_last = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_last == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 904, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("row_op_begin", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 904, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_op_begin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_first, __pyx_v_last);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("row_op_begin", 0);

  /* "fpylll/fplll/gso.pyx":913
 *         .. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":914
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":913
 *         .. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":916
 *             return self._core.mpz_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":917
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":916
 *             return self._core.mpz_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":918
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":919
 *                 return self._core.mpz_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 919, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":918
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":921
 *             return self._core.mpz_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":922
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":921
 *             return self._core.mpz_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":923
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":924
 *                 return self._core.mpz_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":923
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":925
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_op_begin(first, last)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":926
 *                 return self._core.mpz_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 926, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":925
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_op_begin(first, last)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":928
 *             return self._core.mpz_mpfr.row_op_begin(first, last)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":929
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":928
 *             return self._core.mpz_mpfr.row_op_begin(first, last)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":931
 *             return self._core.long_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":932
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":931
 *             return self._core.long_d.row_op_begin(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":933
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":934
 *                 return self._core.long_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":933
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_begin(first, last)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":936
 *             return self._core.long_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":937
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":936
 *             return self._core.long_dpe.row_op_begin(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":938
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":939
 *                 return self._core.long_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_op_begin(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 939, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":938
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_begin(first, last)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":940
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_op_begin(first, last)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":941
 *                 return self._core.long_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_op_begin(first, last)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->row_op_begin(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":940
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_begin(first, last)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_op_begin(first, last)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":943
 *             return self._core.long_mpfr.row_op_begin(first, last)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def row_op_end(self, int first, int last):
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 943, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":904
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_begin(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called before a sequence of ``row_addmul``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_op_begin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":945
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_end(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called after a sequence of ``row_addmul``.  This invalidates the `i`-th line of the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_9row_op_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_8row_op_end, "MatGSO.row_op_end(self, int first, int last)\n\nMust be called after a sequence of ``row_addmul``.  This invalidates the `i`-th line of the\nGSO.\n\n:param int first: start index to invalidate.\n:param int last:  final index to invalidate (exclusive).\n\n.. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_9row_op_end = {"row_op_end", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_9row_op_end, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_8row_op_end};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_9row_op_end(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_first;
  int __pyx_v_last;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("row_op_end (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_last,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 945, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 945, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 945, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "row_op_end", 0) < (0)) __PYX_ERR(0, 945, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("row_op_end", 1, 2, 2, i); __PYX_ERR(0, 945, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 945, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 945, __pyx_L3_error)
    }
    __pyx_v_first = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_first == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 945, __pyx_L3_error)
    __pyx_v_last = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_last == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 945, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("row_op_end", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 945, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_op_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8row_op_end(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_first, __pyx_v_last);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_8row_op_end(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("row_op_end", 0);

  /* "fpylll/fplll/gso.pyx":955
 *         .. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":956
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":955
 *         .. note:: It is preferable to use ``MatGSORowOpContext`` via ``row_ops``.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":958
 *             return self._core.mpz_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":959
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 959, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":958
 *             return self._core.mpz_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":960
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":961
 *                 return self._core.mpz_ld.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 961, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":960
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":963
 *             return self._core.mpz_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_op_end(first, last)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":964
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":963
 *             return self._core.mpz_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_op_end(first, last)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":965
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_end(first, last)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":966
 *                 return self._core.mpz_dd.row_op_end(first, last)
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":965
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_op_end(first, last)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":967
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_op_end(first, last)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":968
 *                 return self._core.mpz_qd.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_op_end(first, last)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":967
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_op_end(first, last)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_op_end(first, last)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":970
 *             return self._core.mpz_mpfr.row_op_end(first, last)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":971
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":970
 *             return self._core.mpz_mpfr.row_op_end(first, last)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":973
 *             return self._core.long_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_op_end(first, last)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":974
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":973
 *             return self._core.long_d.row_op_end(first, last)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_op_end(first, last)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":975
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_end(first, last)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":976
 *                 return self._core.long_ld.row_op_end(first, last)
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 976, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":975
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_op_end(first, last)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":978
 *             return self._core.long_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_op_end(first, last)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":979
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 979, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":978
 *             return self._core.long_dpe.row_op_end(first, last)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_op_end(first, last)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":980
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_end(first, last)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_op_end(first, last)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":981
 *                 return self._core.long_dd.row_op_end(first, last)
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_end(first, last)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_op_end(first, last)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 981, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":980
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_op_end(first, last)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_op_end(first, last)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":982
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_end(first, last)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_op_end(first, last)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":983
 *                 return self._core.long_qd.row_op_end(first, last)
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_op_end(first, last)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->row_op_end(__pyx_v_first, __pyx_v_last)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 983, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":982
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_op_end(first, last)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_op_end(first, last)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":985
 *             return self._core.long_mpfr.row_op_end(first, last)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def row_ops(self, int first, int last):
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 985, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 985, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 985, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":945
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_end(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called after a sequence of ``row_addmul``.  This invalidates the `i`-th line of the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_op_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":987
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_ops(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """Return context in which ``row_addmul`` operations are safe.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_11row_ops(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_10row_ops, "MatGSO.row_ops(self, int first, int last)\n\nReturn context in which ``row_addmul`` operations are safe.\n\n:param int first: start index.\n:param int last: final index (exclusive).");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_11row_ops = {"row_ops", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_11row_ops, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_10row_ops};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_11row_ops(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_first;
  int __pyx_v_last;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("row_ops (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_last,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 987, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 987, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 987, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "row_ops", 0) < (0)) __PYX_ERR(0, 987, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("row_ops", 1, 2, 2, i); __PYX_ERR(0, 987, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 987, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 987, __pyx_L3_error)
    }
    __pyx_v_first = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_first == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 987, __pyx_L3_error)
    __pyx_v_last = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_last == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 987, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("row_ops", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 987, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_ops", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10row_ops(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_first, __pyx_v_last);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_10row_ops(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_first, int __pyx_v_last) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("row_ops", 0);

  /* "fpylll/fplll/gso.pyx":994
 * 
 *         """
 *         return MatGSORowOpContext(self, first, last)             # <<<<<<<<<<<<<<
 * 
 *     def get_gram(self, int i, int j):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_first); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_last); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_t_4, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "fpylll/fplll/gso.pyx":987
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_ops(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """Return context in which ``row_addmul`` operations are safe.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_ops", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":996
 *         return MatGSORowOpContext(self, first, last)
 * 
 *     def get_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_13get_gram(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_12get_gram, "MatGSO.get_gram(self, int i, int j)\n\nReturn Gram matrix coefficients (0 \342\211\244 i \342\211\244 ``n_known_rows`` and 0 \342\211\244 j \342\211\244 i).  If\n``enable_row_expo`` is false, returns the dot product `\342\237\250b_i, b_j\342\237\251`.  If ``enable_row_expo``\nis true, returns `\342\237\250b_i, b_j\342\237\251/ 2^{(r_i + r_j)}`, where `r_i` and `r_j` are the row exponents\nof rows `i` and `j` respectively.\n\n:param int i: 0 \342\211\244 i < d\n:param int j: 0 \342\211\244 j \342\211\244 i");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_13get_gram = {"get_gram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_13get_gram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_12get_gram};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_13get_gram(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_gram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 996, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 996, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 996, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_gram", 0) < (0)) __PYX_ERR(0, 996, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_gram", 1, 2, 2, i); __PYX_ERR(0, 996, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 996, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 996, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 996, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 996, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_gram", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 996, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_gram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_12get_gram(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_12get_gram(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  __pyx_t_6fpylll_5fplll_4decl_fp_nr_t __pyx_v_t;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_gram", 0);

  /* "fpylll/fplll/gso.pyx":1007
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 * 
 *         cdef fp_nr_t t
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1007, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1012
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1013
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.get_gram(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_d->get_gram(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1012
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1015
 *             return self._core.mpz_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1016
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_ld->get_gram(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1015
 *             return self._core.mpz_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1017
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1018
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dpe->get_gram(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1017
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1020
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1021
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dd->get_gram(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1020
 *             return self._core.mpz_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1022
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1023
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_qd->get_gram(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1022
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1024
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1025
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_mpfr->get_gram(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1024
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1027
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1028
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.get_gram(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_d->get_gram(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1027
 *             return self._core.mpz_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1030
 *             return self._core.long_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1031
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_ld->get_gram(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1031, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1030
 *             return self._core.long_d.get_gram(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1032
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1033
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dpe->get_gram(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1032
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_gram(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1035
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1036
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dd->get_gram(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1035
 *             return self._core.long_dpe.get_gram(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1037
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1038
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_gram(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_qd->get_gram(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1037
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_gram(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1039
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1040
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_gram(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_mpfr->get_gram(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1039
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_gram(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1042
 *             return self._core.long_mpfr.get_gram(t.mpfr, i, j).get_d()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_int_gram(self, int i, int j):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1042, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":996
 *         return MatGSORowOpContext(self, first, last)
 * 
 *     def get_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_gram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1044
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_int_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return *integer* Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram, "MatGSO.get_int_gram(self, int i, int j)\n\nReturn *integer* Gram matrix coefficients (0 \342\211\244 i \342\211\244 ``n_known_rows`` and 0 \342\211\244 j \342\211\244 i).  If\n``enable_row_expo`` is false, returns the dot product `\342\237\250b_i, b_j\342\237\251`.\n\n:param int i: 0 \342\211\244 i < d\n:param int j: 0 \342\211\244 j \342\211\244 i");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram = {"get_int_gram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_int_gram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1044, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1044, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1044, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_int_gram", 0) < (0)) __PYX_ERR(0, 1044, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_int_gram", 1, 2, 2, i); __PYX_ERR(0, 1044, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1044, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1044, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1044, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1044, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_int_gram", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1044, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_int_gram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  __pyx_t_6fpylll_5fplll_4decl_z_nr_t __pyx_v_t;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_int_gram", 0);

  /* "fpylll/fplll/gso.pyx":1053
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 * 
 *         cdef z_nr_t t
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1053, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1053, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1053, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1057
 *         cdef z_nr_t t
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             self._core.mpz_d.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1058
 * 
 *         if self._type == mat_gso_mpz_d:
 *             self._core.mpz_d.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_LONG_DOUBLE:
*/
    (void)(__pyx_v_self->_core.mpz_d->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1059
 *         if self._type == mat_gso_mpz_d:
 *             self._core.mpz_d.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1057
 *         cdef z_nr_t t
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             self._core.mpz_d.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1061
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1062
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_dpe:
*/
    (void)(__pyx_v_self->_core.mpz_ld->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1063
 *             if self._type == mat_gso_mpz_ld:
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             self._core.mpz_dpe.get_int_gram(t.mpz, i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1061
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1064
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             self._core.mpz_dpe.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1065
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_dpe:
 *             self._core.mpz_dpe.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_QD:
*/
    (void)(__pyx_v_self->_core.mpz_dpe->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1066
 *         if self._type == mat_gso_mpz_dpe:
 *             self._core.mpz_dpe.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1064
 *                 self._core.mpz_ld.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             self._core.mpz_dpe.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1068
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1069
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *                 return mpz_get_python(t.mpz.get_data())
 *             if self._type == mat_gso_mpz_qd:
*/
    (void)(__pyx_v_self->_core.mpz_dd->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1070
 *             if self._type == mat_gso_mpz_dd:
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1068
 *             return mpz_get_python(t.mpz.get_data())
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1071
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1072
 *                 return mpz_get_python(t.mpz.get_data())
 *             if self._type == mat_gso_mpz_qd:
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_mpfr:
*/
    (void)(__pyx_v_self->_core.mpz_qd->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1073
 *             if self._type == mat_gso_mpz_qd:
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             self._core.mpz_mpfr.get_int_gram(t.mpz, i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1071
 *                 self._core.mpz_dd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1074
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             self._core.mpz_mpfr.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1075
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_mpfr:
 *             self._core.mpz_mpfr.get_int_gram(t.mpz, i, j)             # <<<<<<<<<<<<<<
 *             return mpz_get_python(t.mpz.get_data())
 * 
*/
    (void)(__pyx_v_self->_core.mpz_mpfr->get_int_gram(__pyx_v_t.mpz, __pyx_v_i, __pyx_v_j));

    /* "fpylll/fplll/gso.pyx":1076
 *         if self._type == mat_gso_mpz_mpfr:
 *             self._core.mpz_mpfr.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_6fpylll_2io_mpz_get_python(__pyx_v_t.mpz.get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1074
 *                 self._core.mpz_qd.get_int_gram(t.mpz, i, j)
 *                 return mpz_get_python(t.mpz.get_data())
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             self._core.mpz_mpfr.get_int_gram(t.mpz, i, j)
 *             return mpz_get_python(t.mpz.get_data())
*/
  }

  /* "fpylll/fplll/gso.pyx":1078
 *             return mpz_get_python(t.mpz.get_data())
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1079
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_d->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1078
 *             return mpz_get_python(t.mpz.get_data())
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1081
 *             return self._core.long_d.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1082
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_ld->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1081
 *             return self._core.long_d.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1083
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1084
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_dpe->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1083
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1086
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1087
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_dd->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1086
 *             return self._core.long_dpe.get_int_gram(t.long, i, j).get_data()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1088
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1089
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_int_gram(t.long, i, j).get_data()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_qd->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1088
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_int_gram(t.long, i, j).get_data()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1090
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_int_gram(t.long, i, j).get_data()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1091
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_int_gram(t.long, i, j).get_data()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_long(__pyx_v_self->_core.long_mpfr->get_int_gram(__pyx_v_t.__pyx_long, __pyx_v_i, __pyx_v_j).get_data()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1090
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_int_gram(t.long, i, j).get_data()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_int_gram(t.long, i, j).get_data()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1093
 *             return self._core.long_mpfr.get_int_gram(t.long, i, j).get_data()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_r(self, int i, int j):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1093, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1044
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_int_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return *integer* Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_int_gram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1095
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `b_i, b*_j`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17get_r(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_16get_r, "MatGSO.get_r(self, int i, int j)\n\nReturn `\342\237\250b_i, b*_j\342\237\251`.\n\n:param i:\n:param j:\n\n>>> from fpylll import *\n>>> FPLLL.set_random_seed(0)\n>>> A = IntegerMatrix.random(5, \"uniform\", bits=5)\n>>> M = GSO.Mat(A)\n>>> M.update_gso()\nTrue\n>>> M.get_r(1, 0)\n1396.0");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_17get_r = {"get_r", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17get_r, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_16get_r};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17get_r(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_r (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1095, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1095, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1095, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_r", 0) < (0)) __PYX_ERR(0, 1095, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_r", 1, 2, 2, i); __PYX_ERR(0, 1095, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1095, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1095, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1095, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1095, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_r", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1095, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_r", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16get_r(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_16get_r(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  __pyx_t_6fpylll_5fplll_4decl_fp_nr_t __pyx_v_t;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_r", 0);

  /* "fpylll/fplll/gso.pyx":1112
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         cdef fp_nr_t t
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1112, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1116
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1117
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.get_r(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_d->get_r(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1116
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1119
 *             return self._core.mpz_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1120
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_ld->get_r(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1119
 *             return self._core.mpz_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1121
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1122
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dpe->get_r(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1121
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1124
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1125
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dd->get_r(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1124
 *             return self._core.mpz_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1126
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1127
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_qd->get_r(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1126
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1128
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1129
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_mpfr->get_r(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1128
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1131
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1132
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.get_r(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_d->get_r(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1131
 *             return self._core.mpz_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1134
 *             return self._core.long_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1135
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_ld->get_r(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1134
 *             return self._core.long_d.get_r(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1136
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1137
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dpe->get_r(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1136
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_r(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1139
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1140
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dd->get_r(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1139
 *             return self._core.long_dpe.get_r(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1141
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1142
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_r(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_qd->get_r(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1141
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_r(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1143
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1144
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_r(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_mpfr->get_r(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1143
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_r(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1146
 *             return self._core.long_mpfr.get_r(t.mpfr, i, j).get_d()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_r_exp(self, int i, int j):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1146, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1095
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `b_i, b*_j`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_r", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1148
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = r_{i, j}` and exponent `x` such that `b_i, b^*_j = f  2^x`.  If
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp, "MatGSO.get_r_exp(self, int i, int j)\n\nReturn `f = r_{i, j}` and exponent `x` such that `\342\237\250b_i, b^*_j\342\237\251 = f \342\213\205 2^x`.  If\n``enable_row_expo`` is false, `x` is always 0.  If ``enable_row_expo`` is true, `x = r_i +\nr_j`, where `r_i` and `r_j` are the row exponents of rows `i` and `j` respectively.\n\n.. note:: It is assumed that `r(i, j)` is valid.\n\n:param i:\n:param j:");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp = {"get_r_exp", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_r_exp (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1148, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1148, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1148, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_r_exp", 0) < (0)) __PYX_ERR(0, 1148, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_r_exp", 1, 2, 2, i); __PYX_ERR(0, 1148, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1148, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1148, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1148, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1148, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_r_exp", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1148, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_r_exp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  double __pyx_v_r;
  long __pyx_v_expo;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_r_exp", 0);

  /* "fpylll/fplll/gso.pyx":1160
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         cdef double r = 0.0
 *         cdef long expo = 0
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1160, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1161
 *         """
 *         preprocess_indices(i, j, self.d, self.d)
 *         cdef double r = 0.0             # <<<<<<<<<<<<<<
 *         cdef long expo = 0
 * 
*/
  __pyx_v_r = 0.0;

  /* "fpylll/fplll/gso.pyx":1162
 *         preprocess_indices(i, j, self.d, self.d)
 *         cdef double r = 0.0
 *         cdef long expo = 0             # <<<<<<<<<<<<<<
 * 
 *         # TODO: don't just return doubles
*/
  __pyx_v_expo = 0;

  /* "fpylll/fplll/gso.pyx":1165
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1166
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:
 *             r = self._core.mpz_d.get_r_exp(i, j, expo).get_data()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_data();

    /* "fpylll/fplll/gso.pyx":1167
 *         if self._type == mat_gso_mpz_d:
 *             r = self._core.mpz_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1167, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1167, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1165
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1169
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1170
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1171
 *             if self._type == mat_gso_mpz_ld:
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1171, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1171, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1169
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1172
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1173
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_QD:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1174
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1174, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1174, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1172
 *                 r = self._core.mpz_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1176
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1177
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1178
 *             if self._type == mat_gso_mpz_dd:
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1178, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1178, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1178, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1178, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1178, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1176
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1179
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1180
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1181
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1181, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1181, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1179
 *                 r = self._core.mpz_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1182
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1183
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 * 
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1184
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1184, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1184, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1182
 *                 r = self._core.mpz_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1186
 *             return r, expo
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1187
 * 
 *         if self._type == mat_gso_long_d:
 *             r = self._core.long_d.get_r_exp(i, j, expo).get_data()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_data();

    /* "fpylll/fplll/gso.pyx":1188
 *         if self._type == mat_gso_long_d:
 *             r = self._core.long_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1188, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1188, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1186
 *             return r, expo
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_r_exp(i, j, expo).get_data()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1190
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1191
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:
*/
    __pyx_v_r = __pyx_v_self->_core.long_ld->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1192
 *             if self._type == mat_gso_long_ld:
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1192, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1192, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1190
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1193
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1194
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_QD:
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1195
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1195, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1195, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1193
 *                 r = self._core.long_ld.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1197
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1198
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:
*/
    __pyx_v_r = __pyx_v_self->_core.long_dd->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1199
 *             if self._type == mat_gso_long_dd:
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1199, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1199, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1197
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1200
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1201
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:
*/
    __pyx_v_r = __pyx_v_self->_core.long_qd->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1202
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_r_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1202, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1202, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1200
 *                 r = self._core.long_dd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1203
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1204
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_r_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 * 
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_r_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1205
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1205, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1205, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1203
 *                 r = self._core.long_qd.get_r_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_r_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1207
 *             return r, expo
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1207, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1148
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = r_{i, j}` and exponent `x` such that `b_i, b^*_j = f  2^x`.  If
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_r_exp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1210
 * 
 * 
 *     def get_mu(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `<b_i, b^*_j> / ||b^*_j||^2`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_21get_mu(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_20get_mu, "MatGSO.get_mu(self, int i, int j)\n\nReturn `<b_i, b^*_j> / ||b^*_j||^2`.\n\n:param i:\n:param j:");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_21get_mu = {"get_mu", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_21get_mu, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_20get_mu};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_21get_mu(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_mu (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1210, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_mu", 0) < (0)) __PYX_ERR(0, 1210, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_mu", 1, 2, 2, i); __PYX_ERR(0, 1210, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1210, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1210, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_mu", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1210, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_mu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_20get_mu(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_20get_mu(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  __pyx_t_6fpylll_5fplll_4decl_fp_nr_t __pyx_v_t;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_mu", 0);

  /* "fpylll/fplll/gso.pyx":1218
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         cdef fp_nr_t t
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1218, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1222
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1223
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.get_mu(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_d->get_mu(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1222
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1225
 *             return self._core.mpz_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1226
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_ld->get_mu(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1225
 *             return self._core.mpz_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1227
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1228
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dpe->get_mu(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1227
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1230
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1231
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_dd->get_mu(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1230
 *             return self._core.mpz_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1232
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1233
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_qd->get_mu(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1232
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1234
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1235
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.mpz_mpfr->get_mu(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1234
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1237
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1238
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.get_mu(t.d, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_d->get_mu(__pyx_v_t.d, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1238, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1237
 *             return self._core.mpz_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1240
 *             return self._core.long_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1241
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_ld->get_mu(__pyx_v_t.ld, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1240
 *             return self._core.long_d.get_mu(t.d, i, j).get_d()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1242
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1243
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dpe->get_mu(__pyx_v_t.dpe, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1242
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.get_mu(t.ld, i, j).get_d()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1245
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1246
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_dd->get_mu(__pyx_v_t.dd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1245
 *             return self._core.long_dpe.get_mu(t.dpe, i, j).get_d()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1247
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1248
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_mu(t.mpfr, i, j).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_qd->get_mu(__pyx_v_t.qd, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1247
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.get_mu(t.dd, i, j).get_d()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1249
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1250
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.get_mu(t.mpfr, i, j).get_d()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_core.long_mpfr->get_mu(__pyx_v_t.mpfr, __pyx_v_i, __pyx_v_j).get_d()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1249
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.get_mu(t.qd, i, j).get_d()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1252
 *             return self._core.long_mpfr.get_mu(t.mpfr, i, j).get_d()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_mu_exp(self, int i, int j):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1252, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1210
 * 
 * 
 *     def get_mu(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `<b_i, b^*_j> / ||b^*_j||^2`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_mu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1254
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_mu_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = _{i, j}` and exponent `x` such that `f  2^x = b_i, b^*_j / b^*_j^2`.  If
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp, "MatGSO.get_mu_exp(self, int i, int j)\n\nReturn `f = \316\274_{i, j}` and exponent `x` such that `f \342\213\205 2^x = \342\237\250b_i, b^*_j\342\237\251 / \342\200\226b^*_j\342\200\226^2`.  If\n``enable_row_expo`` is false, `x` is always zero.  If ``enable_row_expo`` is true, `x = r_i\n- r_j`, where `r_i` and `r_j` are the row exponents of rows `i` and `j` respectively.\n\n.. note:: It is assumed that `\316\274_{i, j}` is valid.\n\n:param i:\n:param j:");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp = {"get_mu_exp", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_mu_exp (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1254, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1254, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1254, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_mu_exp", 0) < (0)) __PYX_ERR(0, 1254, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_mu_exp", 1, 2, 2, i); __PYX_ERR(0, 1254, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1254, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1254, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1254, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1254, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_mu_exp", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1254, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_mu_exp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  double __pyx_v_r;
  long __pyx_v_expo;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_mu_exp", 0);

  /* "fpylll/fplll/gso.pyx":1266
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         cdef double r = 0.0
 *         cdef long expo = 0
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1266, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1267
 *         """
 *         preprocess_indices(i, j, self.d, self.d)
 *         cdef double r = 0.0             # <<<<<<<<<<<<<<
 *         cdef long expo = 0
 * 
*/
  __pyx_v_r = 0.0;

  /* "fpylll/fplll/gso.pyx":1268
 *         preprocess_indices(i, j, self.d, self.d)
 *         cdef double r = 0.0
 *         cdef long expo = 0             # <<<<<<<<<<<<<<
 * 
 *         # TODO: don't just return doubles
*/
  __pyx_v_expo = 0;

  /* "fpylll/fplll/gso.pyx":1271
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1272
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:
 *             r = self._core.mpz_d.get_mu_exp(i, j, expo).get_data()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_data();

    /* "fpylll/fplll/gso.pyx":1273
 *         if self._type == mat_gso_mpz_d:
 *             r = self._core.mpz_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1273, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1273, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1271
 * 
 *         # TODO: don't just return doubles
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1275
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1276
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1277
 *             if self._type == mat_gso_mpz_ld:
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1277, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1277, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1275
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1278
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1279
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_QD:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1280
 *         if self._type == mat_gso_mpz_dpe:
 *             r = self._core.mpz_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1280, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1280, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1278
 *                 r = self._core.mpz_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1282
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1283
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1284
 *             if self._type == mat_gso_mpz_dd:
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1284, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1284, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1282
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1285
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1286
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1287
 *             if self._type == mat_gso_mpz_qd:
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1287, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1287, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1285
 *                 r = self._core.mpz_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1288
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1289
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 * 
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1290
 *         if self._type == mat_gso_mpz_mpfr:
 *             r = self._core.mpz_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1290, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1290, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1288
 *                 r = self._core.mpz_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1292
 *             return r, expo
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1293
 * 
 *         if self._type == mat_gso_long_d:
 *             r = self._core.long_d.get_mu_exp(i, j, expo).get_data()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_data();

    /* "fpylll/fplll/gso.pyx":1294
 *         if self._type == mat_gso_long_d:
 *             r = self._core.long_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1294, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1294, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1292
 *             return r, expo
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_mu_exp(i, j, expo).get_data()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1296
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1297
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:
*/
    __pyx_v_r = __pyx_v_self->_core.long_ld->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1298
 *             if self._type == mat_gso_long_ld:
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1298, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1298, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1296
 *             return r, expo
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1299
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1300
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 *         IF HAVE_QD:
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1301
 *         if self._type == mat_gso_long_dpe:
 *             r = self._core.long_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1301, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1301, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1299
 *                 r = self._core.long_ld.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1303
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1304
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:
*/
    __pyx_v_r = __pyx_v_self->_core.long_dd->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1305
 *             if self._type == mat_gso_long_dd:
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1305, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1305, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1303
 *             return r, expo
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1306
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1307
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:
*/
    __pyx_v_r = __pyx_v_self->_core.long_qd->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1308
 *             if self._type == mat_gso_long_qd:
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_mu_exp(i, j, expo).get_d()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1308, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1308, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1306
 *                 r = self._core.long_dd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1309
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1310
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_mu_exp(i, j, expo).get_d()             # <<<<<<<<<<<<<<
 *             return r, expo
 * 
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_mu_exp(__pyx_v_i, __pyx_v_j, __pyx_v_expo).get_d();

    /* "fpylll/fplll/gso.pyx":1311
 *         if self._type == mat_gso_long_mpfr:
 *             r = self._core.long_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyLong_From_long(__pyx_v_expo); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 1311, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 1311, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1309
 *                 r = self._core.long_qd.get_mu_exp(i, j, expo).get_d()
 *                 return r, expo
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_mu_exp(i, j, expo).get_d()
 *             return r, expo
*/
  }

  /* "fpylll/fplll/gso.pyx":1313
 *             return r, expo
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1313, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1254
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_mu_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = _{i, j}` and exponent `x` such that `f  2^x = b_i, b^*_j / b^*_j^2`.  If
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_mu_exp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1316
 * 
 * 
 *     def update_gso(self):             # <<<<<<<<<<<<<<
 *         """
 *         Updates all GSO coefficients (`` and `r`).
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25update_gso(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_24update_gso, "MatGSO.update_gso(self)\n\nUpdates all GSO coefficients (`\316\274` and `r`).");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_25update_gso = {"update_gso", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25update_gso, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_24update_gso};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25update_gso(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update_gso (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("update_gso", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("update_gso", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_24update_gso(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_24update_gso(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  int __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("update_gso", 0);

  /* "fpylll/fplll/gso.pyx":1321
 *         """
 *         cdef int r
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_d.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1322
 *         cdef int r
 *         if self._type == mat_gso_mpz_d:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_d.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1323
 *         if self._type == mat_gso_mpz_d:
 *             with nogil:
 *                 r = self._core.mpz_d.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_d->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1322
 *         cdef int r
 *         if self._type == mat_gso_mpz_d:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_d.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1324
 *             with nogil:
 *                 r = self._core.mpz_d.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1321
 *         """
 *         cdef int r
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_d.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1326
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_ld.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1327
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_ld.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1328
 *             if self._type == mat_gso_mpz_ld:
 *                 with nogil:
 *                     r = self._core.mpz_ld.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_dpe:
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_ld->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1327
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_ld.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L10;
          }
          __pyx_L10:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1329
 *                 with nogil:
 *                     r = self._core.mpz_ld.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1326
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_ld.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1330
 *                     r = self._core.mpz_ld.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_dpe.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1331
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_dpe:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dpe.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1332
 *         if self._type == mat_gso_mpz_dpe:
 *             with nogil:
 *                 r = self._core.mpz_dpe.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 *         IF HAVE_QD:
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_dpe->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1331
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_dpe:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dpe.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L14;
          }
          __pyx_L14:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1333
 *             with nogil:
 *                 r = self._core.mpz_dpe.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1330
 *                     r = self._core.mpz_ld.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_dpe.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1335
 *             return bool(r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_dd.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1336
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_dd.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1337
 *             if self._type == mat_gso_mpz_dd:
 *                 with nogil:
 *                     r = self._core.mpz_dd.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *             if self._type == mat_gso_mpz_qd:
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_dd->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1336
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_dd.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L18;
          }
          __pyx_L18:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1338
 *                 with nogil:
 *                     r = self._core.mpz_dd.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1335
 *             return bool(r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_dd.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1339
 *                     r = self._core.mpz_dd.update_gso()
 *                 return bool(r)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_qd.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1340
 *                 return bool(r)
 *             if self._type == mat_gso_mpz_qd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_qd.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1341
 *             if self._type == mat_gso_mpz_qd:
 *                 with nogil:
 *                     r = self._core.mpz_qd.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_mpfr:
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_qd->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1340
 *                 return bool(r)
 *             if self._type == mat_gso_mpz_qd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_qd.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L22;
          }
          __pyx_L22:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1342
 *                 with nogil:
 *                     r = self._core.mpz_qd.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1339
 *                     r = self._core.mpz_dd.update_gso()
 *                 return bool(r)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.mpz_qd.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1343
 *                     r = self._core.mpz_qd.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_mpfr.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1344
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_mpfr:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_mpfr.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1345
 *         if self._type == mat_gso_mpz_mpfr:
 *             with nogil:
 *                 r = self._core.mpz_mpfr.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 * 
*/
          __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1344
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_mpfr:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_mpfr.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L26;
          }
          __pyx_L26:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1346
 *             with nogil:
 *                 r = self._core.mpz_mpfr.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1343
 *                     r = self._core.mpz_qd.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.mpz_mpfr.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1348
 *             return bool(r)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_d.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1349
 * 
 *         if self._type == mat_gso_long_d:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_d.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1350
 *         if self._type == mat_gso_long_d:
 *             with nogil:
 *                 r = self._core.long_d.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
*/
          __pyx_v_r = __pyx_v_self->_core.long_d->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1349
 * 
 *         if self._type == mat_gso_long_d:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_d.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L30;
          }
          __pyx_L30:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1351
 *             with nogil:
 *                 r = self._core.long_d.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1348
 *             return bool(r)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_d.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1353
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_ld.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1354
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_ld.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1355
 *             if self._type == mat_gso_long_ld:
 *                 with nogil:
 *                     r = self._core.long_ld.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *         if self._type == mat_gso_long_dpe:
*/
          __pyx_v_r = __pyx_v_self->_core.long_ld->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1354
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_ld.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L34;
          }
          __pyx_L34:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1356
 *                 with nogil:
 *                     r = self._core.long_ld.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1353
 *             return bool(r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_ld.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1357
 *                     r = self._core.long_ld.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_dpe.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1358
 *                 return bool(r)
 *         if self._type == mat_gso_long_dpe:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dpe.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1359
 *         if self._type == mat_gso_long_dpe:
 *             with nogil:
 *                 r = self._core.long_dpe.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 *         IF HAVE_QD:
*/
          __pyx_v_r = __pyx_v_self->_core.long_dpe->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1358
 *                 return bool(r)
 *         if self._type == mat_gso_long_dpe:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dpe.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L38;
          }
          __pyx_L38:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1360
 *             with nogil:
 *                 r = self._core.long_dpe.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1357
 *                     r = self._core.long_ld.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_dpe.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1362
 *             return bool(r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_dd.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1363
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_dd.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1364
 *             if self._type == mat_gso_long_dd:
 *                 with nogil:
 *                     r = self._core.long_dd.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *             if self._type == mat_gso_long_qd:
*/
          __pyx_v_r = __pyx_v_self->_core.long_dd->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1363
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_dd.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L42;
          }
          __pyx_L42:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1365
 *                 with nogil:
 *                     r = self._core.long_dd.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1362
 *             return bool(r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_dd.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1366
 *                     r = self._core.long_dd.update_gso()
 *                 return bool(r)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_qd.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1367
 *                 return bool(r)
 *             if self._type == mat_gso_long_qd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_qd.update_gso()
 *                 return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1368
 *             if self._type == mat_gso_long_qd:
 *                 with nogil:
 *                     r = self._core.long_qd.update_gso()             # <<<<<<<<<<<<<<
 *                 return bool(r)
 *         if self._type == mat_gso_long_mpfr:
*/
          __pyx_v_r = __pyx_v_self->_core.long_qd->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1367
 *                 return bool(r)
 *             if self._type == mat_gso_long_qd:
 *                 with nogil:             # <<<<<<<<<<<<<<
 *                     r = self._core.long_qd.update_gso()
 *                 return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L46;
          }
          __pyx_L46:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1369
 *                 with nogil:
 *                     r = self._core.long_qd.update_gso()
 *                 return bool(r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             with nogil:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1369, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1366
 *                     r = self._core.long_dd.update_gso()
 *                 return bool(r)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 with nogil:
 *                     r = self._core.long_qd.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1370
 *                     r = self._core.long_qd.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_mpfr.update_gso()
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1371
 *                 return bool(r)
 *         if self._type == mat_gso_long_mpfr:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_mpfr.update_gso()
 *             return bool(r)
*/
    {
        PyThreadState * _save;
        _save = PyEval_SaveThread();
        __Pyx_FastGIL_Remember();
        /*try:*/ {

          /* "fpylll/fplll/gso.pyx":1372
 *         if self._type == mat_gso_long_mpfr:
 *             with nogil:
 *                 r = self._core.long_mpfr.update_gso()             # <<<<<<<<<<<<<<
 *             return bool(r)
 * 
*/
          __pyx_v_r = __pyx_v_self->_core.long_mpfr->update_gso();
        }

        /* "fpylll/fplll/gso.pyx":1371
 *                 return bool(r)
 *         if self._type == mat_gso_long_mpfr:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 r = self._core.long_mpfr.update_gso()
 *             return bool(r)
*/
        /*finally:*/ {
          /*normal exit:*/{
            __Pyx_FastGIL_Forget();
            PyEval_RestoreThread(_save);
            goto __pyx_L50;
          }
          __pyx_L50:;
        }
    }

    /* "fpylll/fplll/gso.pyx":1373
 *             with nogil:
 *                 r = self._core.long_mpfr.update_gso()
 *             return bool(r)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_r != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1370
 *                     r = self._core.long_qd.update_gso()
 *                 return bool(r)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 r = self._core.long_mpfr.update_gso()
*/
  }

  /* "fpylll/fplll/gso.pyx":1375
 *             return bool(r)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def update_gso_row(self, int i, int last_j):
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 1375, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1316
 * 
 * 
 *     def update_gso(self):             # <<<<<<<<<<<<<<
 *         """
 *         Updates all GSO coefficients (`` and `r`).
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.update_gso", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1377
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def update_gso_row(self, int i, int last_j):             # <<<<<<<<<<<<<<
 *         """
 *         Updates `r_{i, j}` and `_{i, j}` if needed for all `j` in `[0, last_j]`.  All coefficients
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row, "MatGSO.update_gso_row(self, int i, int last_j)\n\nUpdates `r_{i, j}` and `\316\274_{i, j}` if needed for all `j` in `[0, last_j]`.  All coefficients\nof `r` and `\316\274` above the `i`-th row in columns `[0, min(last_j, i - 1)]` must be valid.\n\n:param int i:\n:param int last_j:");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row = {"update_gso_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_last_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update_gso_row (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_last_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1377, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1377, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1377, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "update_gso_row", 0) < (0)) __PYX_ERR(0, 1377, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("update_gso_row", 1, 2, 2, i); __PYX_ERR(0, 1377, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1377, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1377, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1377, __pyx_L3_error)
    __pyx_v_last_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_last_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1377, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("update_gso_row", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1377, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.update_gso_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_last_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_last_j) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("update_gso_row", 0);

  /* "fpylll/fplll/gso.pyx":1386
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1387
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return bool(self._core.mpz_d.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_d->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1387, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1386
 * 
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1389
 *             return bool(self._core.mpz_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1390
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_ld->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1389
 *             return bool(self._core.mpz_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1391
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1392
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_dpe:
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dpe->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1392, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1391
 *             if self._type == mat_gso_mpz_ld:
 *                 return bool(self._core.mpz_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1394
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1395
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_dd->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1394
 *             return bool(self._core.mpz_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1396
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1397
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_qd->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1396
 *             if self._type == mat_gso_mpz_dd:
 *                 return bool(self._core.mpz_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1398
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1399
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_mpfr:
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.mpz_mpfr->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1398
 *             if self._type == mat_gso_mpz_qd:
 *                 return bool(self._core.mpz_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1401
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1402
 * 
 *         if self._type == mat_gso_long_d:
 *             return bool(self._core.long_d.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_d->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1401
 *             return bool(self._core.mpz_mpfr.update_gso_row(i, last_j))
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1404
 *             return bool(self._core.long_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1405
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_ld->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1404
 *             return bool(self._core.long_d.update_gso_row(i, last_j))
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1406
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1407
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_dpe:
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dpe->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1406
 *             if self._type == mat_gso_long_ld:
 *                 return bool(self._core.long_ld.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1409
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1410
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_dd->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1409
 *             return bool(self._core.long_dpe.update_gso_row(i, last_j))
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1411
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1412
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.update_gso_row(i, last_j))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_qd->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1412, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1411
 *             if self._type == mat_gso_long_dd:
 *                 return bool(self._core.long_dd.update_gso_row(i, last_j))
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1413
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.update_gso_row(i, last_j))
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1414
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_mpfr:
 *             return bool(self._core.long_mpfr.update_gso_row(i, last_j))             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong((!(!(__pyx_v_self->_core.long_mpfr->update_gso_row(__pyx_v_i, __pyx_v_last_j) != 0)))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1413
 *             if self._type == mat_gso_long_qd:
 *                 return bool(self._core.long_qd.update_gso_row(i, last_j))
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return bool(self._core.long_mpfr.update_gso_row(i, last_j))
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1416
 *             return bool(self._core.long_mpfr.update_gso_row(i, last_j))
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 1416, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1377
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def update_gso_row(self, int i, int last_j):             # <<<<<<<<<<<<<<
 *         """
 *         Updates `r_{i, j}` and `_{i, j}` if needed for all `j` in `[0, last_j]`.  All coefficients
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.update_gso_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1419
 * 
 * 
 *     def discover_all_rows(self):             # <<<<<<<<<<<<<<
 *         """
 *         Allows ``row_addmul`` for all rows even if the GSO has never been computed.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows, "MatGSO.discover_all_rows(self)\n\nAllows ``row_addmul`` for all rows even if the GSO has never been computed.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows = {"discover_all_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("discover_all_rows (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("discover_all_rows", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("discover_all_rows", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("discover_all_rows", 0);

  /* "fpylll/fplll/gso.pyx":1423
 *         Allows ``row_addmul`` for all rows even if the GSO has never been computed.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1424
 *         """
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.discover_all_rows()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1423
 *         Allows ``row_addmul`` for all rows even if the GSO has never been computed.
 *         """
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1426
 *             return self._core.mpz_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.discover_all_rows()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1427
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.discover_all_rows()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1426
 *             return self._core.mpz_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.discover_all_rows()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1428
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.discover_all_rows()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.discover_all_rows()
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1429
 *                 return self._core.mpz_ld.discover_all_rows()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.discover_all_rows()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1428
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.discover_all_rows()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.discover_all_rows()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1431
 *             return self._core.mpz_dpe.discover_all_rows()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.discover_all_rows()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1432
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.discover_all_rows()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1431
 *             return self._core.mpz_dpe.discover_all_rows()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.discover_all_rows()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1433
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.discover_all_rows()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.discover_all_rows()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1434
 *                 return self._core.mpz_dd.discover_all_rows()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.discover_all_rows()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1433
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.discover_all_rows()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.discover_all_rows()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1435
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.discover_all_rows()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.discover_all_rows()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1436
 *                 return self._core.mpz_qd.discover_all_rows()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.discover_all_rows()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1435
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.discover_all_rows()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.discover_all_rows()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1438
 *             return self._core.mpz_mpfr.discover_all_rows()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1439
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.discover_all_rows()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1438
 *             return self._core.mpz_mpfr.discover_all_rows()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1441
 *             return self._core.long_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.discover_all_rows()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1442
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.discover_all_rows()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1442, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1441
 *             return self._core.long_d.discover_all_rows()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.discover_all_rows()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1443
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.discover_all_rows()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.discover_all_rows()
 *         IF HAVE_QD:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1444
 *                 return self._core.long_ld.discover_all_rows()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.discover_all_rows()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1443
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.discover_all_rows()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.discover_all_rows()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1446
 *             return self._core.long_dpe.discover_all_rows()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.discover_all_rows()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1447
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.discover_all_rows()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1446
 *             return self._core.long_dpe.discover_all_rows()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.discover_all_rows()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1448
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.discover_all_rows()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.discover_all_rows()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1449
 *                 return self._core.long_dd.discover_all_rows()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.discover_all_rows()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.discover_all_rows()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1448
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.discover_all_rows()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.discover_all_rows()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1450
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.discover_all_rows()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.discover_all_rows()
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":1451
 *                 return self._core.long_qd.discover_all_rows()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.discover_all_rows()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->discover_all_rows()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1450
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.discover_all_rows()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.discover_all_rows()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1453
 *             return self._core.long_mpfr.discover_all_rows()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def move_row(self, int old_r, int new_r):
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(0, 1453, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1419
 * 
 * 
 *     def discover_all_rows(self):             # <<<<<<<<<<<<<<
 *         """
 *         Allows ``row_addmul`` for all rows even if the GSO has never been computed.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.discover_all_rows", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1455
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def move_row(self, int old_r, int new_r):             # <<<<<<<<<<<<<<
 *         """
 *         Row ``old_r`` becomes row ``new_r`` and intermediate rows are shifted.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_31move_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_30move_row, "MatGSO.move_row(self, int old_r, int new_r)\n\nRow ``old_r`` becomes row ``new_r`` and intermediate rows are shifted.\nIf ``new_r < old_r``, then ``old_r`` must be ``< n_known_rows``.\n\n:param int old_r: row index\n:param int new_r: row index");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_31move_row = {"move_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_31move_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_30move_row};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_31move_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_old_r;
  int __pyx_v_new_r;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("move_row (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_old_r,&__pyx_mstate_global->__pyx_n_u_new_r,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1455, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1455, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1455, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "move_row", 0) < (0)) __PYX_ERR(0, 1455, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("move_row", 1, 2, 2, i); __PYX_ERR(0, 1455, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1455, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1455, __pyx_L3_error)
    }
    __pyx_v_old_r = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_old_r == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1455, __pyx_L3_error)
    __pyx_v_new_r = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_new_r == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1455, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("move_row", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1455, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.move_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_30move_row(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_old_r, __pyx_v_new_r);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_30move_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_old_r, int __pyx_v_new_r) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("move_row", 0);

  /* "fpylll/fplll/gso.pyx":1464
 * 
 *         """
 *         preprocess_indices(old_r, new_r, self.d, self.d)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.move_row(old_r, new_r)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_old_r, __pyx_v_new_r, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1464, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1465
 *         """
 *         preprocess_indices(old_r, new_r, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1466
 *         preprocess_indices(old_r, new_r, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1465
 *         """
 *         preprocess_indices(old_r, new_r, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1468
 *             return self._core.mpz_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1469
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1468
 *             return self._core.mpz_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1470
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1471
 *                 return self._core.mpz_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1470
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1473
 *             return self._core.mpz_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1474
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1473
 *             return self._core.mpz_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1475
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1476
 *                 return self._core.mpz_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1475
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1477
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1478
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1477
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1480
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1481
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1480
 *             return self._core.mpz_mpfr.move_row(old_r, new_r)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1483
 *             return self._core.long_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1484
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1484, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1483
 *             return self._core.long_d.move_row(old_r, new_r)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1485
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1486
 *                 return self._core.long_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1486, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1485
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1488
 *             return self._core.long_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1489
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1488
 *             return self._core.long_dpe.move_row(old_r, new_r)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1490
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1491
 *                 return self._core.long_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.move_row(old_r, new_r)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1490
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.move_row(old_r, new_r)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1492
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.move_row(old_r, new_r)
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1493
 *                 return self._core.long_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.move_row(old_r, new_r)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->move_row(__pyx_v_old_r, __pyx_v_new_r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1492
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.move_row(old_r, new_r)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.move_row(old_r, new_r)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1495
 *             return self._core.long_mpfr.move_row(old_r, new_r)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def swap_rows(self, int i, int j):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1495, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1455
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def move_row(self, int old_r, int new_r):             # <<<<<<<<<<<<<<
 *         """
 *         Row ``old_r`` becomes row ``new_r`` and intermediate rows are shifted.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.move_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1497
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def swap_rows(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Swap rows ``i`` and ``j``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_33swap_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_32swap_rows, "MatGSO.swap_rows(self, int i, int j)\n\nSwap rows ``i`` and ``j``.\n\n:param int i: row index\n:param int j: row index");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_33swap_rows = {"swap_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_33swap_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_32swap_rows};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_33swap_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("swap_rows (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1497, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "swap_rows", 0) < (0)) __PYX_ERR(0, 1497, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("swap_rows", 1, 2, 2, i); __PYX_ERR(0, 1497, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1497, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1497, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1497, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1497, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("swap_rows", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1497, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.swap_rows", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_32swap_rows(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_32swap_rows(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("swap_rows", 0);

  /* "fpylll/fplll/gso.pyx":1505
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.row_swap(i, j)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1505, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1506
 *         """
 *         preprocess_indices(i, j, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1507
 *         preprocess_indices(i, j, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1506
 *         """
 *         preprocess_indices(i, j, self.d, self.d)
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1509
 *             return self._core.mpz_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_swap(i, j)
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1510
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1509
 *             return self._core.mpz_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_swap(i, j)
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1511
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_swap(i, j)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_swap(i, j)
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1512
 *                 return self._core.mpz_ld.row_swap(i, j)
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1511
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.row_swap(i, j)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_swap(i, j)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1514
 *             return self._core.mpz_dpe.row_swap(i, j)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_swap(i, j)
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1515
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_swap(i, j)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1515, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1514
 *             return self._core.mpz_dpe.row_swap(i, j)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_swap(i, j)
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1516
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_swap(i, j)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_swap(i, j)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1517
 *                 return self._core.mpz_dd.row_swap(i, j)
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1516
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.row_swap(i, j)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_swap(i, j)
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1518
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_swap(i, j)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_swap(i, j)
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1519
 *                 return self._core.mpz_qd.row_swap(i, j)
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.row_swap(i, j)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1518
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.row_swap(i, j)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_swap(i, j)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1521
 *             return self._core.mpz_mpfr.row_swap(i, j)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1522
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1522, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1521
 *             return self._core.mpz_mpfr.row_swap(i, j)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1524
 *             return self._core.long_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_swap(i, j)
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1525
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1524
 *             return self._core.long_d.row_swap(i, j)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_swap(i, j)
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1526
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_swap(i, j)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_swap(i, j)
 *         IF HAVE_QD:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1527
 *                 return self._core.long_ld.row_swap(i, j)
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1526
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.row_swap(i, j)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_swap(i, j)
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1529
 *             return self._core.long_dpe.row_swap(i, j)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_swap(i, j)
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1530
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_swap(i, j)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1529
 *             return self._core.long_dpe.row_swap(i, j)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_swap(i, j)
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1531
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_swap(i, j)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_swap(i, j)
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1532
 *                 return self._core.long_dd.row_swap(i, j)
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_swap(i, j)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_swap(i, j)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1531
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.row_swap(i, j)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_swap(i, j)
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1533
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_swap(i, j)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_swap(i, j)
 * 
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1534
 *                 return self._core.long_qd.row_swap(i, j)
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.row_swap(i, j)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->row_swap(__pyx_v_i, __pyx_v_j)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1533
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.row_swap(i, j)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_swap(i, j)
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1536
 *             return self._core.long_mpfr.row_swap(i, j)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def negate_row(self, int i):
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1536, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1497
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def swap_rows(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Swap rows ``i`` and ``j``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.swap_rows", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1538
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def negate_row(self, int i):             # <<<<<<<<<<<<<<
 *         """Set `b_i` to `-b_i`.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_35negate_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_34negate_row, "MatGSO.negate_row(self, int i)\n\nSet `b_i` to `-b_i`.\n\n:param int i: index of the row to negate\n\nExample::\n\n    >>> from fpylll import *\n    >>> FPLLL.set_random_seed(42)\n    >>> A = IntegerMatrix(6, 6)\n    >>> A.randomize(\"ntrulike\", bits=6, q=31)\n    >>> print(A)\n    [ 1 0 0 12 25 25 ]\n    [ 0 1 0 25 12 25 ]\n    [ 0 0 1 25 25 12 ]\n    [ 0 0 0 31  0  0 ]\n    [ 0 0 0  0 31  0 ]\n    [ 0 0 0  0  0 31 ]\n\n    >>> M = GSO.Mat(A)\n    >>> M.update_gso()\n    True\n    >>> with M.row_ops(2,2):\n    ...     M.negate_row(2)\n    ...\n    >>> print(A)\n    [ 1 0  0  12  25  25 ]\n    [ 0 1  0  25  12  25 ]\n    [ 0 0 -1 -25 -25 -12 ]\n    [ 0 0  0  31   0   0 ]\n    [ 0 0  0   0  31   0 ]\n    [ 0 0  0   0   0  31 ]");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_35negate_row = {"negate_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_35negate_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_34negate_row};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_35negate_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("negate_row (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1538, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1538, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "negate_row", 0) < (0)) __PYX_ERR(0, 1538, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("negate_row", 1, 1, 1, i); __PYX_ERR(0, 1538, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1538, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1538, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("negate_row", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1538, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.negate_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_34negate_row(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_34negate_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("negate_row", 0);

  /* "fpylll/fplll/gso.pyx":1572
 * 
 *         """
 *         self.row_addmul(i, i, -2.0)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_mstate_global->__pyx_float_neg_2_0};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_row_addmul, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "fpylll/fplll/gso.pyx":1538
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def negate_row(self, int i):             # <<<<<<<<<<<<<<
 *         """Set `b_i` to `-b_i`.
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.negate_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1575
 * 
 * 
 *     def row_addmul(self, int i, int j, x):             # <<<<<<<<<<<<<<
 *         """Set `b_i = b_i + x  b_j`.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_37row_addmul(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_36row_addmul, "MatGSO.row_addmul(self, int i, int j, x)\n\nSet `b_i = b_i + x \342\213\205 b_j`.\n\nAfter one or several calls to ``row_addmul``, ``row_op_end`` must be called.\n\nIf ``row_op_force_long=true``, ``x`` is always converted to (``2^expo * long``) instead of\n(``2^expo * ZT``), which is faster if ``ZT=mpz_t`` but might lead to a loss of precision in\nLLL, more Babai iterations are needed.\n\n:param int i: target row\n:param int j: source row\n:param x: multiplier");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_37row_addmul = {"row_addmul", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_37row_addmul, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_36row_addmul};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_37row_addmul(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_i;
  int __pyx_v_j;
  PyObject *__pyx_v_x = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("row_addmul (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,&__pyx_mstate_global->__pyx_n_u_x,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1575, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1575, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1575, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1575, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "row_addmul", 0) < (0)) __PYX_ERR(0, 1575, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("row_addmul", 1, 3, 3, i); __PYX_ERR(0, 1575, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1575, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1575, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1575, __pyx_L3_error)
    }
    __pyx_v_i = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1575, __pyx_L3_error)
    __pyx_v_j = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_j == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1575, __pyx_L3_error)
    __pyx_v_x = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("row_addmul", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1575, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_addmul", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_36row_addmul(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_i, __pyx_v_j, __pyx_v_x);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_36row_addmul(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_i, int __pyx_v_j, PyObject *__pyx_v_x) {
  __pyx_t_6fpylll_5fplll_4decl_fp_nr_t __pyx_v_x_;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  double __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("row_addmul", 0);

  /* "fpylll/fplll/gso.pyx":1589
 * 
 *         """
 *         preprocess_indices(i, j, self.d, self.d)             # <<<<<<<<<<<<<<
 *         cdef fp_nr_t x_
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_i, __pyx_v_j, __pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1589, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1592
 *         cdef fp_nr_t x_
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             x_.d = float(x)
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1593
 * 
 *         if self._type == mat_gso_mpz_d:
 *             x_.d = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1593, __pyx_L1_error)
    __pyx_v_x_.d = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1594
 *         if self._type == mat_gso_mpz_d:
 *             x_.d = float(x)
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1592
 *         cdef fp_nr_t x_
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             x_.d = float(x)
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)
*/
  }

  /* "fpylll/fplll/gso.pyx":1596
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 x_.ld = float(x)
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1597
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 x_.ld = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_mpz_dpe:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1597, __pyx_L1_error)
    __pyx_v_x_.ld = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1598
 *             if self._type == mat_gso_mpz_ld:
 *                 x_.ld = float(x)
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             x_.dpe = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.ld)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1596
 *             return self._core.mpz_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 x_.ld = float(x)
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
*/
  }

  /* "fpylll/fplll/gso.pyx":1599
 *                 x_.ld = float(x)
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             x_.dpe = float(x)
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1600
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_mpz_dpe:
 *             x_.dpe = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1600, __pyx_L1_error)
    __pyx_v_x_.dpe = ((fplll::FP_NR<dpe_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1601
 *         if self._type == mat_gso_mpz_dpe:
 *             x_.dpe = float(x)
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.dpe)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1599
 *                 x_.ld = float(x)
 *                 return self._core.mpz_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             x_.dpe = float(x)
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)
*/
  }

  /* "fpylll/fplll/gso.pyx":1603
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 x_.dd = float(x)
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1604
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 x_.dd = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_mpz_qd:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1604, __pyx_L1_error)
    __pyx_v_x_.dd = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1605
 *             if self._type == mat_gso_mpz_dd:
 *                 x_.dd = float(x)
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 x_.qd = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.dd)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1605, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1603
 *             return self._core.mpz_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 x_.dd = float(x)
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
*/
  }

  /* "fpylll/fplll/gso.pyx":1606
 *                 x_.dd = float(x)
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 x_.qd = float(x)
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1607
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_mpz_qd:
 *                 x_.qd = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_mpz_mpfr:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1607, __pyx_L1_error)
    __pyx_v_x_.qd = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1608
 *             if self._type == mat_gso_mpz_qd:
 *                 x_.qd = float(x)
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             x_.mpfr = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.qd)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1606
 *                 x_.dd = float(x)
 *                 return self._core.mpz_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 x_.qd = float(x)
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
*/
  }

  /* "fpylll/fplll/gso.pyx":1609
 *                 x_.qd = float(x)
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             x_.mpfr = float(x)
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1610
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_mpz_mpfr:
 *             x_.mpfr = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)
 * 
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1610, __pyx_L1_error)
    __pyx_v_x_.mpfr = ((fplll::FP_NR<mpfr_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1611
 *         if self._type == mat_gso_mpz_mpfr:
 *             x_.mpfr = float(x)
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.mpfr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1609
 *                 x_.qd = float(x)
 *                 return self._core.mpz_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             x_.mpfr = float(x)
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)
*/
  }

  /* "fpylll/fplll/gso.pyx":1613
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             x_.d = float(x)
 *             return self._core.long_d.row_addmul(i, j, x_.d)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1614
 * 
 *         if self._type == mat_gso_long_d:
 *             x_.d = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.long_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1614, __pyx_L1_error)
    __pyx_v_x_.d = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1615
 *         if self._type == mat_gso_long_d:
 *             x_.d = float(x)
 *             return self._core.long_d.row_addmul(i, j, x_.d)             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1613
 *             return self._core.mpz_mpfr.row_addmul(i, j, x_.mpfr)
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             x_.d = float(x)
 *             return self._core.long_d.row_addmul(i, j, x_.d)
*/
  }

  /* "fpylll/fplll/gso.pyx":1617
 *             return self._core.long_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 x_.ld = float(x)
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1618
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 x_.ld = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_long_dpe:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1618, __pyx_L1_error)
    __pyx_v_x_.ld = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1619
 *             if self._type == mat_gso_long_ld:
 *                 x_.ld = float(x)
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             x_.dpe = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.ld)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1617
 *             return self._core.long_d.row_addmul(i, j, x_.d)
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 x_.ld = float(x)
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
*/
  }

  /* "fpylll/fplll/gso.pyx":1620
 *                 x_.ld = float(x)
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             x_.dpe = float(x)
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1621
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_long_dpe:
 *             x_.dpe = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1621, __pyx_L1_error)
    __pyx_v_x_.dpe = ((fplll::FP_NR<dpe_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1622
 *         if self._type == mat_gso_long_dpe:
 *             x_.dpe = float(x)
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.dpe)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1620
 *                 x_.ld = float(x)
 *                 return self._core.long_ld.row_addmul(i, j, x_.ld)
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             x_.dpe = float(x)
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)
*/
  }

  /* "fpylll/fplll/gso.pyx":1624
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 x_.dd = float(x)
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1625
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 x_.dd = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_long_qd:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1625, __pyx_L1_error)
    __pyx_v_x_.dd = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1626
 *             if self._type == mat_gso_long_dd:
 *                 x_.dd = float(x)
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 x_.qd = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.dd)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1624
 *             return self._core.long_dpe.row_addmul(i, j, x_.dpe)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 x_.dd = float(x)
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
*/
  }

  /* "fpylll/fplll/gso.pyx":1627
 *                 x_.dd = float(x)
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 x_.qd = float(x)
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1628
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_long_qd:
 *                 x_.qd = float(x)             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_long_mpfr:
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1628, __pyx_L1_error)
    __pyx_v_x_.qd = ((fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1629
 *             if self._type == mat_gso_long_qd:
 *                 x_.qd = float(x)
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             x_.mpfr = float(x)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.qd)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1629, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1627
 *                 x_.dd = float(x)
 *                 return self._core.long_dd.row_addmul(i, j, x_.dd)
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 x_.qd = float(x)
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
*/
  }

  /* "fpylll/fplll/gso.pyx":1630
 *                 x_.qd = float(x)
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             x_.mpfr = float(x)
 *             return self._core.long_mpfr.row_addmul(i, j, x_.mpfr)
*/
  __pyx_t_5 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_5) {

    /* "fpylll/fplll/gso.pyx":1631
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_long_mpfr:
 *             x_.mpfr = float(x)             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.row_addmul(i, j, x_.mpfr)
 * 
*/
    __pyx_t_6 = __Pyx_PyObject_AsDouble(__pyx_v_x); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_6, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(0, 1631, __pyx_L1_error)
    __pyx_v_x_.mpfr = ((fplll::FP_NR<mpfr_t> )__pyx_t_6);

    /* "fpylll/fplll/gso.pyx":1632
 *         if self._type == mat_gso_long_mpfr:
 *             x_.mpfr = float(x)
 *             return self._core.long_mpfr.row_addmul(i, j, x_.mpfr)             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->row_addmul(__pyx_v_i, __pyx_v_j, __pyx_v_x_.mpfr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1630
 *                 x_.qd = float(x)
 *                 return self._core.long_qd.row_addmul(i, j, x_.qd)
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             x_.mpfr = float(x)
 *             return self._core.long_mpfr.row_addmul(i, j, x_.mpfr)
*/
  }

  /* "fpylll/fplll/gso.pyx":1634
 *             return self._core.long_mpfr.row_addmul(i, j, x_.mpfr)
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def create_row(self):
*/
  __pyx_t_7 = NULL;
  __pyx_t_8 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1634, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1575
 * 
 * 
 *     def row_addmul(self, int i, int j, x):             # <<<<<<<<<<<<<<
 *         """Set `b_i = b_i + x  b_j`.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.row_addmul", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1636
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def create_row(self):             # <<<<<<<<<<<<<<
 *         """Adds a zero row to ``B`` (and to ``U`` if ``enable_tranform=true``).  One or several
 *         operations can be performed on this row with ``row_addmul``, then ``row_op_end`` must be
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_39create_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_38create_row, "MatGSO.create_row(self)\n\nAdds a zero row to ``B`` (and to ``U`` if ``enable_tranform=true``).  One or several\noperations can be performed on this row with ``row_addmul``, then ``row_op_end`` must be\ncalled.  Do not use if ``inverse_transform_enabled=true``.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_39create_row = {"create_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_39create_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_38create_row};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_39create_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("create_row (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("create_row", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("create_row", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_38create_row(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_38create_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("create_row", 0);

  /* "fpylll/fplll/gso.pyx":1642
 * 
 *         """
 *         if self.inverse_transform_enabled:             # <<<<<<<<<<<<<<
 *             raise ValueError("create_row is incompatible with ``inverse_transform_enabled``")
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_inverse_transform_enabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "fpylll/fplll/gso.pyx":1643
 *         """
 *         if self.inverse_transform_enabled:
 *             raise ValueError("create_row is incompatible with ``inverse_transform_enabled``")             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_create_row_is_incompatible_with};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1643, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 1643, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1642
 * 
 *         """
 *         if self.inverse_transform_enabled:             # <<<<<<<<<<<<<<
 *             raise ValueError("create_row is incompatible with ``inverse_transform_enabled``")
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1645
 *             raise ValueError("create_row is incompatible with ``inverse_transform_enabled``")
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1646
 * 
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.create_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1646, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1645
 *             raise ValueError("create_row is incompatible with ``inverse_transform_enabled``")
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1648
 *             return self._core.mpz_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.create_row()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1649
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.create_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1648
 *             return self._core.mpz_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.create_row()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1650
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.create_row()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.create_row()
 *         IF HAVE_QD:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1651
 *                 return self._core.mpz_ld.create_row()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.create_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1650
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.create_row()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.create_row()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1653
 *             return self._core.mpz_dpe.create_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.create_row()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1654
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.create_row()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1653
 *             return self._core.mpz_dpe.create_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.create_row()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1655
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.create_row()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.create_row()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1656
 *                 return self._core.mpz_dd.create_row()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.create_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1655
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.create_row()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.create_row()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1657
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.create_row()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.create_row()
 * 
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1658
 *                 return self._core.mpz_qd.create_row()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.create_row()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1657
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.create_row()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.create_row()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1660
 *             return self._core.mpz_mpfr.create_row()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1661
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.create_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1660
 *             return self._core.mpz_mpfr.create_row()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1663
 *             return self._core.long_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.create_row()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1664
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.create_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1663
 *             return self._core.long_d.create_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.create_row()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1665
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.create_row()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.create_row()
 *         IF HAVE_QD:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1666
 *                 return self._core.long_ld.create_row()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.create_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1665
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.create_row()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.create_row()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1668
 *             return self._core.long_dpe.create_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.create_row()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1669
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.create_row()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1669, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1668
 *             return self._core.long_dpe.create_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.create_row()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1670
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.create_row()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.create_row()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1671
 *                 return self._core.long_dd.create_row()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.create_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.create_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1670
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.create_row()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.create_row()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1672
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.create_row()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.create_row()
 * 
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1673
 *                 return self._core.long_qd.create_row()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.create_row()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->create_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1673, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1672
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.create_row()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.create_row()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1675
 *             return self._core.long_mpfr.create_row()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def remove_last_row(self):
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1675, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1636
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def create_row(self):             # <<<<<<<<<<<<<<
 *         """Adds a zero row to ``B`` (and to ``U`` if ``enable_tranform=true``).  One or several
 *         operations can be performed on this row with ``row_addmul``, then ``row_op_end`` must be
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.create_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1677
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def remove_last_row(self):             # <<<<<<<<<<<<<<
 *         """Remove.  the last row of ``B`` (and of ``U`` if ``enable_transform=true``).  Do not use
 *         if ``inverse_transform_enabled=true``.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row, "MatGSO.remove_last_row(self)\n\nRemove.  the last row of ``B`` (and of ``U`` if ``enable_transform=true``).  Do not use\nif ``inverse_transform_enabled=true``.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row = {"remove_last_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("remove_last_row (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("remove_last_row", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("remove_last_row", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("remove_last_row", 0);

  /* "fpylll/fplll/gso.pyx":1682
 * 
 *         """
 *         if self.inverse_transform_enabled:             # <<<<<<<<<<<<<<
 *             raise ValueError("remove_last_row is incompatible with ``inverse_transform_enabled``")
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_inverse_transform_enabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1682, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1682, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "fpylll/fplll/gso.pyx":1683
 *         """
 *         if self.inverse_transform_enabled:
 *             raise ValueError("remove_last_row is incompatible with ``inverse_transform_enabled``")             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_remove_last_row_is_incompatible};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1683, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 1683, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1682
 * 
 *         """
 *         if self.inverse_transform_enabled:             # <<<<<<<<<<<<<<
 *             raise ValueError("remove_last_row is incompatible with ``inverse_transform_enabled``")
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1685
 *             raise ValueError("remove_last_row is incompatible with ``inverse_transform_enabled``")
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1686
 * 
 *         if self._type == mat_gso_mpz_d:
 *             return self._core.mpz_d.remove_last_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_d->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1686, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1685
 *             raise ValueError("remove_last_row is incompatible with ``inverse_transform_enabled``")
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1688
 *             return self._core.mpz_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.remove_last_row()
 *         if self._type == mat_gso_mpz_dpe:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1689
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.remove_last_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_ld->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1688
 *             return self._core.mpz_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_ld.remove_last_row()
 *         if self._type == mat_gso_mpz_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1690
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.remove_last_row()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.remove_last_row()
 *         IF HAVE_QD:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1691
 *                 return self._core.mpz_ld.remove_last_row()
 *         if self._type == mat_gso_mpz_dpe:
 *             return self._core.mpz_dpe.remove_last_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dpe->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1690
 *             if self._type == mat_gso_mpz_ld:
 *                 return self._core.mpz_ld.remove_last_row()
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_dpe.remove_last_row()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1693
 *             return self._core.mpz_dpe.remove_last_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.remove_last_row()
 *             if self._type == mat_gso_mpz_qd:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1694
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.remove_last_row()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_dd->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1693
 *             return self._core.mpz_dpe.remove_last_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_dd.remove_last_row()
 *             if self._type == mat_gso_mpz_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1695
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.remove_last_row()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.remove_last_row()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1696
 *                 return self._core.mpz_dd.remove_last_row()
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.remove_last_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_qd->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1695
 *             if self._type == mat_gso_mpz_dd:
 *                 return self._core.mpz_dd.remove_last_row()
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.mpz_qd.remove_last_row()
 *         if self._type == mat_gso_mpz_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1697
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.remove_last_row()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.remove_last_row()
 * 
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1698
 *                 return self._core.mpz_qd.remove_last_row()
 *         if self._type == mat_gso_mpz_mpfr:
 *             return self._core.mpz_mpfr.remove_last_row()             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.mpz_mpfr->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1697
 *             if self._type == mat_gso_mpz_qd:
 *                 return self._core.mpz_qd.remove_last_row()
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.mpz_mpfr.remove_last_row()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1700
 *             return self._core.mpz_mpfr.remove_last_row()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1701
 * 
 *         if self._type == mat_gso_long_d:
 *             return self._core.long_d.remove_last_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_d->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1700
 *             return self._core.mpz_mpfr.remove_last_row()
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             return self._core.long_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
*/
  }

  /* "fpylll/fplll/gso.pyx":1703
 *             return self._core.long_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.remove_last_row()
 *         if self._type == mat_gso_long_dpe:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1704
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.remove_last_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_ld->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1703
 *             return self._core.long_d.remove_last_row()
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 return self._core.long_ld.remove_last_row()
 *         if self._type == mat_gso_long_dpe:
*/
  }

  /* "fpylll/fplll/gso.pyx":1705
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.remove_last_row()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.remove_last_row()
 *         IF HAVE_QD:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1706
 *                 return self._core.long_ld.remove_last_row()
 *         if self._type == mat_gso_long_dpe:
 *             return self._core.long_dpe.remove_last_row()             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dpe->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1705
 *             if self._type == mat_gso_long_ld:
 *                 return self._core.long_ld.remove_last_row()
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             return self._core.long_dpe.remove_last_row()
 *         IF HAVE_QD:
*/
  }

  /* "fpylll/fplll/gso.pyx":1708
 *             return self._core.long_dpe.remove_last_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.remove_last_row()
 *             if self._type == mat_gso_long_qd:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1709
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.remove_last_row()             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_dd->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1708
 *             return self._core.long_dpe.remove_last_row()
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_dd.remove_last_row()
 *             if self._type == mat_gso_long_qd:
*/
  }

  /* "fpylll/fplll/gso.pyx":1710
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.remove_last_row()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.remove_last_row()
 *         if self._type == mat_gso_long_mpfr:
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1711
 *                 return self._core.long_dd.remove_last_row()
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.remove_last_row()             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.remove_last_row()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_qd->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1710
 *             if self._type == mat_gso_long_dd:
 *                 return self._core.long_dd.remove_last_row()
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 return self._core.long_qd.remove_last_row()
 *         if self._type == mat_gso_long_mpfr:
*/
  }

  /* "fpylll/fplll/gso.pyx":1712
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.remove_last_row()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.remove_last_row()
 * 
*/
  __pyx_t_2 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_2) {

    /* "fpylll/fplll/gso.pyx":1713
 *                 return self._core.long_qd.remove_last_row()
 *         if self._type == mat_gso_long_mpfr:
 *             return self._core.long_mpfr.remove_last_row()             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_void_to_None(__pyx_v_self->_core.long_mpfr->remove_last_row()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1712
 *             if self._type == mat_gso_long_qd:
 *                 return self._core.long_qd.remove_last_row()
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             return self._core.long_mpfr.remove_last_row()
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":1715
 *             return self._core.long_mpfr.remove_last_row()
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_current_slope(self, int start_row, int stop_row):
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1715, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1715, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1677
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def remove_last_row(self):             # <<<<<<<<<<<<<<
 *         """Remove.  the last row of ``B`` (and of ``U`` if ``enable_transform=true``).  Do not use
 *         if ``inverse_transform_enabled=true``.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.remove_last_row", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1717
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_current_slope(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """
 *         Finds the slope of the curve fitted to the lengths of the vectors from ``start_row`` to
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope, "MatGSO.get_current_slope(self, int start_row, int stop_row)\n\nFinds the slope of the curve fitted to the lengths of the vectors from ``start_row`` to\n``stop_row``.  The slope gives an indication of the quality of the LLL-reduced basis.\n\n:param int start_row: start row index\n:param int stop_row: stop row index (exclusive)\n\n..  note:: we call ``get_current_slope`` which is declared in bkz.h");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope = {"get_current_slope", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_start_row;
  int __pyx_v_stop_row;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_current_slope (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start_row,&__pyx_mstate_global->__pyx_n_u_stop_row,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1717, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1717, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1717, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_current_slope", 0) < (0)) __PYX_ERR(0, 1717, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_current_slope", 1, 2, 2, i); __PYX_ERR(0, 1717, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1717, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1717, __pyx_L3_error)
    }
    __pyx_v_start_row = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_start_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1717, __pyx_L3_error)
    __pyx_v_stop_row = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_stop_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1717, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_current_slope", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1717, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_current_slope", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_start_row, __pyx_v_stop_row);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row) {
  double __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_current_slope", 0);

  /* "fpylll/fplll/gso.pyx":1728
 *         """
 * 
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_start_row, __pyx_v_stop_row, __pyx_t_2, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1728, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1730
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1731
 * 
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1731, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1732
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1733
 *             sig_on()
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         IF HAVE_LONG_DOUBLE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1734
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1730
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1736
 *             return r
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1737
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1737, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1738
 *             if self._type == mat_gso_mpz_ld:
 *                 sig_on()
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1739
 *                 sig_on()
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *         if self._type == mat_gso_mpz_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1740
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1736
 *             return r
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_ld.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1741
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1742
 *                 return r
 *         if self._type == mat_gso_mpz_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1742, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1743
 *         if self._type == mat_gso_mpz_dpe:
 *             sig_on()
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1744
 *             sig_on()
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         IF HAVE_QD:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1745
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1741
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_dpe.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1747
 *             return r
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1748
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1748, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1749
 *             if self._type == mat_gso_mpz_dd:
 *                 sig_on()
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1750
 *                 sig_on()
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *             if self._type == mat_gso_mpz_qd:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1751
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_qd:
 *                 sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1747
 *             return r
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_dd.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1752
 *                 sig_off()
 *                 return r
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1753
 *                 return r
 *             if self._type == mat_gso_mpz_qd:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1753, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1754
 *             if self._type == mat_gso_mpz_qd:
 *                 sig_on()
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1755
 *                 sig_on()
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *         if self._type == mat_gso_mpz_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1756
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_mpz_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1752
 *                 sig_off()
 *                 return r
 *             if self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.mpz_qd.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1757
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1758
 *                 return r
 *         if self._type == mat_gso_mpz_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1758, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1759
 *         if self._type == mat_gso_mpz_mpfr:
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1760
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 * 
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1761
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1757
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1763
 *             return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1764
 * 
 *         if self._type == mat_gso_long_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1764, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1765
 *         if self._type == mat_gso_long_d:
 *             sig_on()
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1766
 *             sig_on()
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         IF HAVE_LONG_DOUBLE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1767
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1763
 *             return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1769
 *             return r
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1770
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1770, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1771
 *             if self._type == mat_gso_long_ld:
 *                 sig_on()
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_ld->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1772
 *                 sig_on()
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *         if self._type == mat_gso_long_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1773
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1769
 *             return r
 *         IF HAVE_LONG_DOUBLE:
 *             if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_ld.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1774
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1775
 *                 return r
 *         if self._type == mat_gso_long_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1775, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1776
 *         if self._type == mat_gso_long_dpe:
 *             sig_on()
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1777
 *             sig_on()
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         IF HAVE_QD:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1778
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1774
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_dpe.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1780
 *             return r
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1781
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1781, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1782
 *             if self._type == mat_gso_long_dd:
 *                 sig_on()
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_dd->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1783
 *                 sig_on()
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *             if self._type == mat_gso_long_qd:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1784
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_long_qd:
 *                 sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1784, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1780
 *             return r
 *         IF HAVE_QD:
 *             if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_dd.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1785
 *                 sig_off()
 *                 return r
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1786
 *                 return r
 *             if self._type == mat_gso_long_qd:
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1786, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1787
 *             if self._type == mat_gso_long_qd:
 *                 sig_on()
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_qd->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1788
 *                 sig_on()
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return r
 *         if self._type == mat_gso_long_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1789
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)
 *                 sig_off()
 *                 return r             # <<<<<<<<<<<<<<
 *         if self._type == mat_gso_long_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1785
 *                 sig_off()
 *                 return r
 *             if self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 r = self._core.long_qd.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1790
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)
*/
  __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":1791
 *                 return r
 *         if self._type == mat_gso_long_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1791, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1792
 *         if self._type == mat_gso_long_mpfr:
 *             sig_on()
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_current_slope(__pyx_v_start_row, __pyx_v_stop_row);

    /* "fpylll/fplll/gso.pyx":1793
 *             sig_on()
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 * 
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1794
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1794, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1790
 *                 sig_off()
 *                 return r
 *         if self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_mpfr.get_current_slope(start_row, stop_row)
*/
  }

  /* "fpylll/fplll/gso.pyx":1796
 *             return r
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_root_det(self, int start_row, int stop_row):
*/
  __pyx_t_1 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_Raise(__pyx_t_3, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __PYX_ERR(0, 1796, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1717
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_current_slope(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """
 *         Finds the slope of the curve fitted to the lengths of the vectors from ``start_row`` to
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_current_slope", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1798
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_root_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return (squared) root determinant of the basis.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_45get_root_det(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_44get_root_det, "MatGSO.get_root_det(self, int start_row, int stop_row)\n\nReturn (squared) root determinant of the basis.\n\n:param int start_row: start row (inclusive)\n:param int stop_row: stop row (exclusive)");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_45get_root_det = {"get_root_det", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_45get_root_det, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_44get_root_det};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_45get_root_det(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_start_row;
  int __pyx_v_stop_row;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_root_det (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start_row,&__pyx_mstate_global->__pyx_n_u_stop_row,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1798, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1798, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1798, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_root_det", 0) < (0)) __PYX_ERR(0, 1798, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_root_det", 1, 2, 2, i); __PYX_ERR(0, 1798, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1798, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1798, __pyx_L3_error)
    }
    __pyx_v_start_row = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_start_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1798, __pyx_L3_error)
    __pyx_v_stop_row = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_stop_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1798, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_root_det", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1798, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_root_det", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_44get_root_det(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_start_row, __pyx_v_stop_row);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_44get_root_det(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row) {
  double __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_root_det", 0);

  /* "fpylll/fplll/gso.pyx":1805
 * 
 *         """
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_start_row, __pyx_v_stop_row, __pyx_t_2, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1805, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1807
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

    /* "fpylll/fplll/gso.pyx":1808
 * 
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1808, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1809
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1810
 *             sig_on()
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1811
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1807
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_root_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:

    /* "fpylll/fplll/gso.pyx":1813
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1813, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1814
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
 *             r = self._core.mpz_dpe.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1815
 *             sig_on()
 *             r = self._core.mpz_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1816
 *             r = self._core.mpz_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1812
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_dpe.get_root_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":1818
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1818, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1819
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1820
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1821
 *             r = self._core.mpz_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1817
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_root_det(start_row, stop_row).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":1824
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":1825
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1825, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1826
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1827
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1828
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1828, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1824
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_root_det(start_row, stop_row).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":1830
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

      /* "fpylll/fplll/gso.pyx":1831
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1831, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1832
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1833
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1834
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1834, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1830
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_root_det(start_row, stop_row).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

      /* "fpylll/fplll/gso.pyx":1836
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1836, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1837
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1838
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1839
 *                     r = self._core.mpz_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1839, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1835
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_root_det(start_row, stop_row).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":1841
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":1842
 * 
 *         if self._type == mat_gso_long_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1842, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1843
 *         if self._type == mat_gso_long_d:
 *             sig_on()
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1844
 *             sig_on()
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1845
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1845, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1841
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_root_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

    /* "fpylll/fplll/gso.pyx":1847
 *             return r
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1847, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1848
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
 *             r = self._core.long_dpe.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1849
 *             sig_on()
 *             r = self._core.long_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1850
 *             r = self._core.long_dpe.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1850, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1846
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_dpe.get_root_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

    /* "fpylll/fplll/gso.pyx":1852
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1852, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1853
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
 *             r = self._core.long_mpfr.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1854
 *             sig_on()
 *             r = self._core.long_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1855
 *             r = self._core.long_mpfr.get_root_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1851
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_mpfr.get_root_det(start_row, stop_row).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":1858
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":1859
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1859, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1860
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_ld->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1861
 *                     sig_on()
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1862
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1862, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1858
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_root_det(start_row, stop_row).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":1864
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

      /* "fpylll/fplll/gso.pyx":1865
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1865, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1866
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_dd->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1867
 *                     sig_on()
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1868
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1868, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1864
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_root_det(start_row, stop_row).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

      /* "fpylll/fplll/gso.pyx":1870
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1870, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1871
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
 *                     r = self._core.long_qd.get_root_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_qd->get_root_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1872
 *                     sig_on()
 *                     r = self._core.long_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1873
 *                     r = self._core.long_qd.get_root_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1873, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1869
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_qd.get_root_det(start_row, stop_row).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":1875
 *                     return r
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_log_det(self, int start_row, int stop_row):
*/
  __pyx_t_1 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1875, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_Raise(__pyx_t_3, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __PYX_ERR(0, 1875, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1798
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_root_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return (squared) root determinant of the basis.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_root_det", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1877
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_log_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return log of the (squared) determinant of the basis.
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_47get_log_det(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_46get_log_det, "MatGSO.get_log_det(self, int start_row, int stop_row)\n\nReturn log of the (squared) determinant of the basis.\n\n:param int start_row: start row (inclusive)\n:param int stop_row: stop row (exclusive)");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_47get_log_det = {"get_log_det", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_47get_log_det, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_46get_log_det};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_47get_log_det(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_start_row;
  int __pyx_v_stop_row;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_log_det (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start_row,&__pyx_mstate_global->__pyx_n_u_stop_row,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1877, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1877, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1877, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_log_det", 0) < (0)) __PYX_ERR(0, 1877, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_log_det", 1, 2, 2, i); __PYX_ERR(0, 1877, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1877, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1877, __pyx_L3_error)
    }
    __pyx_v_start_row = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_start_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1877, __pyx_L3_error)
    __pyx_v_stop_row = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_stop_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1877, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_log_det", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1877, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_log_det", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_46get_log_det(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_start_row, __pyx_v_stop_row);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_46get_log_det(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row) {
  double __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_log_det", 0);

  /* "fpylll/fplll/gso.pyx":1884
 * 
 *         """
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_start_row, __pyx_v_stop_row, __pyx_t_2, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1884, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1886
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

    /* "fpylll/fplll/gso.pyx":1887
 * 
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1887, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1888
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1889
 *             sig_on()
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1890
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1886
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_log_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:

    /* "fpylll/fplll/gso.pyx":1892
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1892, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1893
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
 *             r = self._core.mpz_dpe.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1894
 *             sig_on()
 *             r = self._core.mpz_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1895
 *             r = self._core.mpz_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1891
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_dpe.get_log_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":1897
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1897, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1898
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1899
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1900
 *             r = self._core.mpz_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1896
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_log_det(start_row, stop_row).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":1903
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":1904
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1904, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1905
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1906
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1907
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1907, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1903
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_log_det(start_row, stop_row).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":1909
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

      /* "fpylll/fplll/gso.pyx":1910
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1910, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1911
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1912
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1913
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1913, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1909
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_log_det(start_row, stop_row).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

      /* "fpylll/fplll/gso.pyx":1915
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1915, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1916
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1917
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1918
 *                     r = self._core.mpz_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1918, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1914
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_log_det(start_row, stop_row).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":1920
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":1921
 * 
 *         if self._type == mat_gso_long_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1921, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1922
 *         if self._type == mat_gso_long_d:
 *             sig_on()
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1923
 *             sig_on()
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1924
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1920
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_log_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

    /* "fpylll/fplll/gso.pyx":1926
 *             return r
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1926, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1927
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
 *             r = self._core.long_dpe.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1928
 *             sig_on()
 *             r = self._core.long_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1929
 *             r = self._core.long_dpe.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1925
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_dpe.get_log_det(start_row, stop_row).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

    /* "fpylll/fplll/gso.pyx":1931
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1931, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1932
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
 *             r = self._core.long_mpfr.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

    /* "fpylll/fplll/gso.pyx":1933
 *             sig_on()
 *             r = self._core.long_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1934
 *             r = self._core.long_mpfr.get_log_det(start_row, stop_row).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1930
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_mpfr.get_log_det(start_row, stop_row).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":1937
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":1938
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1938, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1939
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_ld->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1940
 *                     sig_on()
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1941
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1941, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1937
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_log_det(start_row, stop_row).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":1943
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

      /* "fpylll/fplll/gso.pyx":1944
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1944, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1945
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_dd->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1946
 *                     sig_on()
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1947
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1947, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1943
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_log_det(start_row, stop_row).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

      /* "fpylll/fplll/gso.pyx":1949
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1949, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1950
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
 *                     r = self._core.long_qd.get_log_det(start_row, stop_row).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_qd->get_log_det(__pyx_v_start_row, __pyx_v_stop_row).get_d();

      /* "fpylll/fplll/gso.pyx":1951
 *                     sig_on()
 *                     r = self._core.long_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1952
 *                     r = self._core.long_qd.get_log_det(start_row, stop_row).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1952, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1948
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_qd.get_log_det(start_row, stop_row).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":1954
 *                     return r
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 *     def get_slide_potential(self, int start_row, int stop_row, int block_size):
*/
  __pyx_t_1 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1954, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_Raise(__pyx_t_3, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __PYX_ERR(0, 1954, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1877
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_log_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return log of the (squared) determinant of the basis.
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_log_det", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":1956
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_slide_potential(self, int start_row, int stop_row, int block_size):             # <<<<<<<<<<<<<<
 *         """ Return slide potential of the basis
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential, "MatGSO.get_slide_potential(self, int start_row, int stop_row, int block_size)\n\nReturn slide potential of the basis\n\n:param int start_row: start row (inclusive)\n:param int stop_row: stop row (exclusive)\n:param int block_size: block size");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential = {"get_slide_potential", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_start_row;
  int __pyx_v_stop_row;
  int __pyx_v_block_size;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_slide_potential (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start_row,&__pyx_mstate_global->__pyx_n_u_stop_row,&__pyx_mstate_global->__pyx_n_u_block_size,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1956, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_slide_potential", 0) < (0)) __PYX_ERR(0, 1956, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_slide_potential", 1, 3, 3, i); __PYX_ERR(0, 1956, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1956, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1956, __pyx_L3_error)
    }
    __pyx_v_start_row = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_start_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1956, __pyx_L3_error)
    __pyx_v_stop_row = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_stop_row == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1956, __pyx_L3_error)
    __pyx_v_block_size = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_block_size == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1956, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_slide_potential", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1956, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_slide_potential", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, int __pyx_v_start_row, int __pyx_v_stop_row, int __pyx_v_block_size) {
  double __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_slide_potential", 0);

  /* "fpylll/fplll/gso.pyx":1964
 * 
 *         """
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_mpz_d:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1964, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __pyx_f_6fpylll_4util_preprocess_indices(__pyx_v_start_row, __pyx_v_stop_row, __pyx_t_2, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1964, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1966
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

    /* "fpylll/fplll/gso.pyx":1967
 * 
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1967, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1968
 *         if self._type == mat_gso_mpz_d:
 *             sig_on()
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_d->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":1969
 *             sig_on()
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1970
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1966
 *         preprocess_indices(start_row, stop_row, self.d, self.d+1)
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_d.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:

    /* "fpylll/fplll/gso.pyx":1972
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1972, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1973
 *         elif self._type == mat_gso_mpz_dpe:
 *             sig_on()
 *             r = self._core.mpz_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_dpe->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":1974
 *             sig_on()
 *             r = self._core.mpz_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1975
 *             r = self._core.mpz_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1971
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":1977
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.mpz_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1977, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":1978
 *         elif self._type == mat_gso_mpz_mpfr:
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.mpz_mpfr->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":1979
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":1980
 *             r = self._core.mpz_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":1976
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.mpz_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":1983
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":1984
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1984, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1985
 *                 if self._type == mat_gso_mpz_ld:
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_ld->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":1986
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1987
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1987, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1983
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":1989
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

      /* "fpylll/fplll/gso.pyx":1990
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1990, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1991
 *                 if self._type == mat_gso_mpz_dd:
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_dd->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":1992
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1993
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1993, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1989
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

      /* "fpylll/fplll/gso.pyx":1995
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.mpz_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 1995, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":1996
 *                 elif self._type == mat_gso_mpz_qd:
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.mpz_qd->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":1997
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":1998
 *                     r = self._core.mpz_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         if self._type == mat_gso_long_d:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1998, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":1994
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.mpz_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":2000
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":2001
 * 
 *         if self._type == mat_gso_long_d:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2001, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2002
 *         if self._type == mat_gso_long_d:
 *             sig_on()
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_d->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":2003
 *             sig_on()
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_dpe:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2004
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2004, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2000
 *                     return r
 * 
 *         if self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_d.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

    /* "fpylll/fplll/gso.pyx":2006
 *             return r
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2006, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2007
 *         elif self._type == mat_gso_long_dpe:
 *             sig_on()
 *             r = self._core.long_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_dpe->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":2008
 *             sig_on()
 *             r = self._core.long_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2009
 *             r = self._core.long_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2009, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2005
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_dpe.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

    /* "fpylll/fplll/gso.pyx":2011
 *             return r
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()             # <<<<<<<<<<<<<<
 *             r = self._core.long_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2011, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2012
 *         elif self._type == mat_gso_long_mpfr:
 *             sig_on()
 *             r = self._core.long_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return r
*/
    __pyx_v_r = __pyx_v_self->_core.long_mpfr->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

    /* "fpylll/fplll/gso.pyx":2013
 *             sig_on()
 *             r = self._core.long_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return r
 *         else:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2014
 *             r = self._core.long_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
 *             sig_off()
 *             return r             # <<<<<<<<<<<<<<
 *         else:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2010
 *             sig_off()
 *             return r
 *         elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *             sig_on()
 *             r = self._core.long_mpfr.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    break;
    default:

    /* "fpylll/fplll/gso.pyx":2017
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    __pyx_t_6 = (__pyx_v_self->_type == __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld);
    if (__pyx_t_6) {

      /* "fpylll/fplll/gso.pyx":2018
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2018, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2019
 *                 if self._type == mat_gso_long_ld:
 *                     sig_on()
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_ld->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":2020
 *                     sig_on()
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *             IF HAVE_QD:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2021
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2021, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2017
 *         else:
 *             IF HAVE_LONG_DOUBLE:
 *                 if self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_ld.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    }

    /* "fpylll/fplll/gso.pyx":2023
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

      /* "fpylll/fplll/gso.pyx":2024
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2024, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2025
 *                 if self._type == mat_gso_long_dd:
 *                     sig_on()
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_dd->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":2026
 *                     sig_on()
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2027
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2027, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2023
 *                     return r
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_dd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

      /* "fpylll/fplll/gso.pyx":2029
 *                     return r
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     r = self._core.long_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2029, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2030
 *                 elif self._type == mat_gso_long_qd:
 *                     sig_on()
 *                     r = self._core.long_qd.get_slide_potential(start_row, stop_row, block_size).get_d()             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return r
*/
      __pyx_v_r = __pyx_v_self->_core.long_qd->get_slide_potential(__pyx_v_start_row, __pyx_v_stop_row, __pyx_v_block_size).get_d();

      /* "fpylll/fplll/gso.pyx":2031
 *                     sig_on()
 *                     r = self._core.long_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return r
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2032
 *                     r = self._core.long_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
 *                     sig_off()
 *                     return r             # <<<<<<<<<<<<<<
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyFloat_FromDouble(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2028
 *                     sig_off()
 *                     return r
 *                 elif self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     r = self._core.long_qd.get_slide_potential(start_row, stop_row, block_size).get_d()
*/
      break;
      default: break;
    }
    break;
  }

  /* "fpylll/fplll/gso.pyx":2034
 *                     return r
 * 
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = NULL;
  __pyx_t_7 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_MatGSO_object_s_has_no_core, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2034, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_Raise(__pyx_t_3, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __PYX_ERR(0, 2034, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":1956
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_slide_potential(self, int start_row, int stop_row, int block_size):             # <<<<<<<<<<<<<<
 *         """ Return slide potential of the basis
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.get_slide_potential", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":2037
 * 
 * 
 *     def from_canonical(self, w, int start=0, int dimension=-1):             # <<<<<<<<<<<<<<
 *         """Given a vector `w` wrt the canonical basis `\ZZ^n` return a vector `v` wrt the
 *         Gram-Schmidt basis `B^*`
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_51from_canonical(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_50from_canonical, "MatGSO.from_canonical(self, w, int start=0, int dimension=-1)\n\nGiven a vector `w` wrt the canonical basis `\\ZZ^n` return a vector `v` wrt the\nGram-Schmidt basis `B^*`\n\n:param v: a tuple-like object of dimension ``M.B.ncols``\n:param start: only consider subbasis starting at ``start``\n:param dimension: only consider ``dimension`` vectors or all if ``-1``\n\n:returns: a tuple of dimension ``dimension``` or ``M.d``` when ``dimension`` is ``None``\n\nThis operation is the inverse of ``to_canonical``::\n\n    >>> import random\n    >>> A = IntegerMatrix.random(5, \"uniform\", bits=6)\n    >>> M = GSO.Mat(A)\n    >>> _ = M.update_gso()\n    >>> v = tuple(IntegerMatrix.random(5, \"uniform\", bits=6)[0]); v\n    (35, 24, 55, 40, 23)\n    >>> w = M.from_canonical(v); w # doctest: +ELLIPSIS\n    (0.98294..., 0.5636..., -3.4594479..., 0.9768..., 0.261316...)\n    >>> v_ = tuple([int(round(wi)) for wi in M.to_canonical(w)]); v_\n    (35, 24, 55, 40, 23)\n    >>> v == v_\n    True");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_51from_canonical = {"from_canonical", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_51from_canonical, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_50from_canonical};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_51from_canonical(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_w = 0;
  int __pyx_v_start;
  int __pyx_v_dimension;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_canonical (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_w,&__pyx_mstate_global->__pyx_n_u_start,&__pyx_mstate_global->__pyx_n_u_dimension,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 2037, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "from_canonical", 0) < (0)) __PYX_ERR(0, 2037, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("from_canonical", 0, 1, 3, i); __PYX_ERR(0, 2037, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2037, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_w = values[0];
    if (values[1]) {
      __pyx_v_start = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_start == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2037, __pyx_L3_error)
    } else {
      __pyx_v_start = ((int)0);
    }
    if (values[2]) {
      __pyx_v_dimension = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_dimension == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2037, __pyx_L3_error)
    } else {
      __pyx_v_dimension = ((int)-1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_canonical", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 2037, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.from_canonical", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_50from_canonical(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_w, __pyx_v_start, __pyx_v_dimension);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_50from_canonical(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_w, int __pyx_v_start, int __pyx_v_dimension) {
  __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_v_cv;
  __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_v_cw;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_canonical", 0);

  /* "fpylll/fplll/gso.pyx":2063
 * 
 *         """
 *         if self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("This function is only defined for GSO objects over a basis")
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_alg != __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t);
  if (unlikely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":2064
 *         """
 *         if self._alg != mat_gso_gso_t:
 *             raise TypeError("This function is only defined for GSO objects over a basis")             # <<<<<<<<<<<<<<
 * 
 *         cdef vector_fp_nr_t cv, cw
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_This_function_is_only_defined_fo};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2064, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2064, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2063
 * 
 *         """
 *         if self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("This function is only defined for GSO objects over a basis")
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":2069
 *         cdef fp_nr_t tmp
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

    /* "fpylll/fplll/gso.pyx":2070
 * 
 *         if self._type == mat_gso_mpz_d:
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).from_canonical(cv.d, cw.d, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2070, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2071
 *         if self._type == mat_gso_mpz_d:
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2071, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2072
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).from_canonical(cv.d, cw.d, start, dimension)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.mpz_d)->from_canonical(__pyx_v_cv.d, __pyx_v_cw.d, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2073
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
 *         elif self._type == mat_gso_mpz_ld:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2074
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_ld:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2074, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2069
 *         cdef fp_nr_t tmp
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:

    /* "fpylll/fplll/gso.pyx":2077
 *         elif self._type == mat_gso_mpz_ld:
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).from_canonical(cv.ld, cw.ld, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2077, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2078
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2078, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2079
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).from_canonical(cv.ld, cw.ld, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.mpz_ld)->from_canonical(__pyx_v_cv.ld, __pyx_v_cw.ld, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2080
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)
 *             ELSE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2081
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *             ELSE:
 *                 raise RuntimeError("Float type long double not supported.")
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_LONG_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2075
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
 *         elif self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":2091
 *         #     return vector_fp_nr_slurp(cv, FT_DPE)
 *         elif self._type == mat_gso_mpz_mpfr:
 *             vector_fp_nr_barf(cw, w, FT_MPFR)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).from_canonical(cv.mpfr, cw.mpfr, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_MPFR); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2091, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2092
 *         elif self._type == mat_gso_mpz_mpfr:
 *             vector_fp_nr_barf(cw, w, FT_MPFR)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).from_canonical(cv.mpfr, cw.mpfr, start, dimension)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2092, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2093
 *             vector_fp_nr_barf(cw, w, FT_MPFR)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).from_canonical(cv.mpfr, cw.mpfr, start, dimension)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_MPFR)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.mpz_mpfr)->from_canonical(__pyx_v_cv.mpfr, __pyx_v_cw.mpfr, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2094
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).from_canonical(cv.mpfr, cw.mpfr, start, dimension)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cv, FT_MPFR)
 *         elif self._type == mat_gso_long_d:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2095
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).from_canonical(cv.mpfr, cw.mpfr, start, dimension)
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_MPFR)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_MPFR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2090
 *         #     sig_off()
 *         #     return vector_fp_nr_slurp(cv, FT_DPE)
 *         elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cw, w, FT_MPFR)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":2097
 *             return vector_fp_nr_slurp(cv, FT_MPFR)
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).from_canonical(cv.d, cw.d, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2097, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2098
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2098, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2099
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).from_canonical(cv.d, cw.d, start, dimension)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.long_d)->from_canonical(__pyx_v_cv.d, __pyx_v_cw.d, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2100
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
 *         elif self._type == mat_gso_long_ld:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2101
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).from_canonical(cv.d, cw.d, start, dimension)
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_ld:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2096
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_MPFR)
 *         elif self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cw, w, FT_DOUBLE)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

    /* "fpylll/fplll/gso.pyx":2104
 *         elif self._type == mat_gso_long_ld:
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).from_canonical(cv.ld, cw.ld, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2104, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2105
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2105, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2106
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).from_canonical(cv.ld, cw.ld, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.long_ld)->from_canonical(__pyx_v_cv.ld, __pyx_v_cw.ld, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2107
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)
 *             ELSE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2108
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).from_canonical(cv.ld, cw.ld, start, dimension)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *             ELSE:
 *                 raise RuntimeError("Float type long double not supported.")
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_LONG_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2102
 *             sig_off()
 *             return vector_fp_nr_slurp(cv, FT_DOUBLE)
 *         elif self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cw, w, FT_LONG_DOUBLE)
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":2124
 *         #     return vector_fp_nr_slurp(cv, FT_MPFR)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

    /* "fpylll/fplll/gso.pyx":2125
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 vector_fp_nr_barf(cw, w, FT_DD)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).from_canonical(cv.dd, cw.dd, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2125, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2126
 *             if self._type == mat_gso_mpz_dd:
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2126, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2127
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).from_canonical(cv.dd, cw.dd, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_DD)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.mpz_dd)->from_canonical(__pyx_v_cv.dd, __pyx_v_cw.dd, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2128
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cv, FT_DD)
 *             elif self._type == mat_gso_mpz_qd:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2129
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_DD)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_mpz_qd:
 *                 vector_fp_nr_barf(cw, w, FT_QD)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_DD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2124
 *         #     return vector_fp_nr_slurp(cv, FT_MPFR)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

    /* "fpylll/fplll/gso.pyx":2131
 *                 return vector_fp_nr_slurp(cv, FT_DD)
 *             elif self._type == mat_gso_mpz_qd:
 *                 vector_fp_nr_barf(cw, w, FT_QD)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]]*>self._core.mpz_qd).from_canonical(cv.qd, cw.qd, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_QD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2131, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2132
 *             elif self._type == mat_gso_mpz_qd:
 *                 vector_fp_nr_barf(cw, w, FT_QD)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]]*>self._core.mpz_qd).from_canonical(cv.qd, cw.qd, start, dimension)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2132, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2133
 *                 vector_fp_nr_barf(cw, w, FT_QD)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]]*>self._core.mpz_qd).from_canonical(cv.qd, cw.qd, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_QD)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_qd_t> >  *)__pyx_v_self->_core.mpz_qd)->from_canonical(__pyx_v_cv.qd, __pyx_v_cw.qd, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2134
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]]*>self._core.mpz_qd).from_canonical(cv.qd, cw.qd, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cv, FT_QD)
 *             elif self._type == mat_gso_long_dd:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2135
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[qd_t]]*>self._core.mpz_qd).from_canonical(cv.qd, cw.qd, start, dimension)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_QD)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_dd:
 *                 vector_fp_nr_barf(cw, w, FT_DD)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_QD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2130
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_DD)
 *             elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cw, w, FT_QD)
 *                 sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

    /* "fpylll/fplll/gso.pyx":2137
 *                 return vector_fp_nr_slurp(cv, FT_QD)
 *             elif self._type == mat_gso_long_dd:
 *                 vector_fp_nr_barf(cw, w, FT_DD)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).from_canonical(cv.dd, cw.dd, start, dimension)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cw, __pyx_v_w, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2137, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2138
 *             elif self._type == mat_gso_long_dd:
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2138, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2139
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).from_canonical(cv.dd, cw.dd, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_DD)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.long_dd)->from_canonical(__pyx_v_cv.dd, __pyx_v_cw.dd, __pyx_v_start, __pyx_v_dimension);

    /* "fpylll/fplll/gso.pyx":2140
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cv, FT_DD)
 *             # elif self._type == mat_gso_long_qd:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2141
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).from_canonical(cv.dd, cw.dd, start, dimension)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_DD)             # <<<<<<<<<<<<<<
 *             # elif self._type == mat_gso_long_qd:
 *             #     vector_fp_nr_barf(cw, w, FT_QD)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cv, fplll::FT_DD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2136
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cv, FT_QD)
 *             elif self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cw, w, FT_DD)
 *                 sig_on()
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":2149
 *             #     return vector_fp_nr_slurp(cw, FT_QD)
 * 
 *         raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 2149, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":2037
 * 
 * 
 *     def from_canonical(self, w, int start=0, int dimension=-1):             # <<<<<<<<<<<<<<
 *         """Given a vector `w` wrt the canonical basis `\ZZ^n` return a vector `v` wrt the
 *         Gram-Schmidt basis `B^*`
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.from_canonical", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":2177
 *     #     return tuple(ret)[start:]
 * 
 *     def to_canonical(self, v, int start=0):             # <<<<<<<<<<<<<<
 *         """
 *         Given a vector `v` wrt the Gram-Schmidt basis `B^*` return a vector `w` wrt the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_53to_canonical(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_52to_canonical, "MatGSO.to_canonical(self, v, int start=0)\n\nGiven a vector `v` wrt the Gram-Schmidt basis `B^*` return a vector `w` wrt the\ncanonical basis `ZZ^n`, i.e. solve `w = v\342\213\205B^*`.\n\n:param v: a tuple-like object of dimension ``M.d``\n:param start: only consider subbasis starting at ``start``\n\n:returns: a tuple of dimension ``M.B.ncols``");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_53to_canonical = {"to_canonical", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_53to_canonical, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_52to_canonical};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_53to_canonical(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_v = 0;
  int __pyx_v_start;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_canonical (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,&__pyx_mstate_global->__pyx_n_u_start,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 2177, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "to_canonical", 0) < (0)) __PYX_ERR(0, 2177, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("to_canonical", 0, 1, 2, i); __PYX_ERR(0, 2177, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2177, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_v = values[0];
    if (values[1]) {
      __pyx_v_start = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_start == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2177, __pyx_L3_error)
    } else {
      __pyx_v_start = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_canonical", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 2177, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.to_canonical", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_52to_canonical(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_v, __pyx_v_start);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_52to_canonical(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_v, int __pyx_v_start) {
  __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_v_cv;
  __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_v_cw;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_canonical", 0);

  /* "fpylll/fplll/gso.pyx":2187
 *         :returns: a tuple of dimension ``M.B.ncols``
 *         """
 *         if self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("This function is only defined for GSO objects over a basis")
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_alg != __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t);
  if (unlikely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":2188
 *         """
 *         if self._alg != mat_gso_gso_t:
 *             raise TypeError("This function is only defined for GSO objects over a basis")             # <<<<<<<<<<<<<<
 * 
 *         cdef vector_fp_nr_t cv, cw
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_This_function_is_only_defined_fo};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2188, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2188, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2187
 *         :returns: a tuple of dimension ``M.B.ncols``
 *         """
 *         if self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("This function is only defined for GSO objects over a basis")
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":2193
 *         cdef fp_nr_t tmp
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

    /* "fpylll/fplll/gso.pyx":2194
 * 
 *         if self._type == mat_gso_mpz_d:
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).to_canonical(cw.d, cv.d, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2194, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2195
 *         if self._type == mat_gso_mpz_d:
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2195, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2196
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).to_canonical(cw.d, cv.d, start)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.mpz_d)->to_canonical(__pyx_v_cw.d, __pyx_v_cv.d, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2197
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
 *         elif self._type == mat_gso_mpz_ld:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2198
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_mpz_ld:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2193
 *         cdef fp_nr_t tmp
 * 
 *         if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:

    /* "fpylll/fplll/gso.pyx":2201
 *         elif self._type == mat_gso_mpz_ld:
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).to_canonical(cw.ld, cv.ld, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2201, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2202
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2202, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2203
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).to_canonical(cw.ld, cv.ld, start)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.mpz_ld)->to_canonical(__pyx_v_cw.ld, __pyx_v_cv.ld, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2204
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)
 *             ELSE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2205
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *             ELSE:
 *                 raise RuntimeError("Float type long double not supported.")
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_LONG_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2199
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
 *         elif self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

    /* "fpylll/fplll/gso.pyx":2216
 *         #     return vector_fp_nr_slurp(cw, FT_DPE)
 *         elif self._type == mat_gso_mpz_mpfr:
 *             vector_fp_nr_barf(cv, v, FT_MPFR)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).to_canonical(cw.mpfr, cv.mpfr, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_MPFR); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2216, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2217
 *         elif self._type == mat_gso_mpz_mpfr:
 *             vector_fp_nr_barf(cv, v, FT_MPFR)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).to_canonical(cw.mpfr, cv.mpfr, start)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2217, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2218
 *             vector_fp_nr_barf(cv, v, FT_MPFR)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).to_canonical(cw.mpfr, cv.mpfr, start)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_MPFR)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.mpz_mpfr)->to_canonical(__pyx_v_cw.mpfr, __pyx_v_cv.mpfr, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2219
 *             sig_on()
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).to_canonical(cw.mpfr, cv.mpfr, start)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cw, FT_MPFR)
 *         elif self._type == mat_gso_long_d:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2220
 *             (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).to_canonical(cw.mpfr, cv.mpfr, start)
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_MPFR)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_MPFR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2215
 *         #     sig_off()
 *         #     return vector_fp_nr_slurp(cw, FT_DPE)
 *         elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cv, v, FT_MPFR)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

    /* "fpylll/fplll/gso.pyx":2222
 *             return vector_fp_nr_slurp(cw, FT_MPFR)
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).to_canonical(cw.d, cv.d, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2222, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2223
 *         elif self._type == mat_gso_long_d:
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()             # <<<<<<<<<<<<<<
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2223, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2224
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).to_canonical(cw.d, cv.d, start)             # <<<<<<<<<<<<<<
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.long_d)->to_canonical(__pyx_v_cw.d, __pyx_v_cv.d, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2225
 *             sig_on()
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()             # <<<<<<<<<<<<<<
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
 *         elif self._type == mat_gso_long_ld:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2226
 *             (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).to_canonical(cw.d, cv.d, start)
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *         elif self._type == mat_gso_long_ld:
 *             IF HAVE_LONG_DOUBLE:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2221
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_MPFR)
 *         elif self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *             vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *             sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

    /* "fpylll/fplll/gso.pyx":2229
 *         elif self._type == mat_gso_long_ld:
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).to_canonical(cw.ld, cv.ld, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2229, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2230
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2230, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2231
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).to_canonical(cw.ld, cv.ld, start)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.long_ld)->to_canonical(__pyx_v_cw.ld, __pyx_v_cv.ld, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2232
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)
 *             ELSE:
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2233
 *                 (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).to_canonical(cw.ld, cv.ld, start)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *             ELSE:
 *                 raise RuntimeError("Float type long double not supported.")
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_LONG_DOUBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2227
 *             sig_off()
 *             return vector_fp_nr_slurp(cw, FT_DOUBLE)
 *         elif self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *             IF HAVE_LONG_DOUBLE:
 *                 vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":2250
 *         #     return vector_fp_nr_slurp(cw, FT_MPFR)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()
*/
  switch (__pyx_v_self->_type) {
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

    /* "fpylll/fplll/gso.pyx":2251
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:
 *                 vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).to_canonical(cw.dd, cv.dd, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2251, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2252
 *             if self._type == mat_gso_mpz_dd:
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2252, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2253
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).to_canonical(cw.dd, cv.dd, start)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_DD)
*/
    ((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.mpz_dd)->to_canonical(__pyx_v_cw.dd, __pyx_v_cv.dd, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2254
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cw, FT_DD)
 *             # # https://github.com/fplll/fplll/issues/493
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2255
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_DD)             # <<<<<<<<<<<<<<
 *             # # https://github.com/fplll/fplll/issues/493
 *             # elif self._type == mat_gso_mpz_qd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_DD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2250
 *         #     return vector_fp_nr_slurp(cw, FT_MPFR)
 *         IF HAVE_QD:
 *             if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()
*/
    break;
    case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

    /* "fpylll/fplll/gso.pyx":2264
 *             #     return vector_fp_nr_slurp(cw, FT_QD)
 *             elif self._type == mat_gso_long_dd:
 *                 vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).to_canonical(cw.dd, cv.dd, start)
*/
    __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2264, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2265
 *             elif self._type == mat_gso_long_dd:
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()
*/
    __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2265, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2266
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).to_canonical(cw.dd, cv.dd, start)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_DD)
*/
    ((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.long_dd)->to_canonical(__pyx_v_cw.dd, __pyx_v_cv.dd, __pyx_v_start);

    /* "fpylll/fplll/gso.pyx":2267
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_fp_nr_slurp(cw, FT_DD)
 *             # # https://github.com/fplll/fplll/issues/493
*/
    sig_off();

    /* "fpylll/fplll/gso.pyx":2268
 *                 (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).to_canonical(cw.dd, cv.dd, start)
 *                 sig_off()
 *                 return vector_fp_nr_slurp(cw, FT_DD)             # <<<<<<<<<<<<<<
 *             # # https://github.com/fplll/fplll/issues/493
 *             # elif self._type == mat_gso_long_qd:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_6fpylll_2io_vector_fp_nr_slurp(__pyx_v_cw, fplll::FT_DD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "fpylll/fplll/gso.pyx":2263
 *             #     sig_off()
 *             #     return vector_fp_nr_slurp(cw, FT_QD)
 *             elif self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DD)
 *                 sig_on()
*/
    break;
    default: break;
  }

  /* "fpylll/fplll/gso.pyx":2277
 *             #     return vector_fp_nr_slurp(cw, FT_QD)
 * 
 *         raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 *     # def _to_canonical_old(self, v, int start=0):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 2277, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":2177
 *     #     return tuple(ret)[start:]
 * 
 *     def to_canonical(self, v, int start=0):             # <<<<<<<<<<<<<<
 *         """
 *         Given a vector `v` wrt the Gram-Schmidt basis `B^*` return a vector `w` wrt the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.to_canonical", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":2306
 *     #     return tuple(w)
 * 
 *     def babai(self, v, int start=0, int dimension=-1, gso=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return vector `w` s.t. `wB - v` is small using Babai's nearest plane algorithm.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_55babai(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_54babai, "MatGSO.babai(self, v, int start=0, int dimension=-1, gso=False)\n\nReturn vector `w` s.t. `\342\200\226w\342\213\205B - v\342\200\226` is small using Babai's nearest plane algorithm.\n\n:param v: a tuple-like object\n:param start: only consider subbasis starting at ``start``\n:param dimension: only consider ``dimension`` vectors or all if ``-1``\n:param gso: if ``True`` vector is represented wrt to the Gram-Schmidt basis, otherwise\n    canonical basis is assumed.\n\n:returns: a tuple of dimension ``M.B.nrows``\n\nThe output vector is a coefficient vector wrt to `B`::\n\n    >>> from fpylll.util import vector_norm\n    >>> A = LLL.reduction(IntegerMatrix.random(50, \"qary\", k=25, q=7681))\n    >>> M = GSO.Mat(A, update=True)\n    >>> v = (100,)*50\n    >>> w = M.babai(v)\n    >>> vector_norm(A.multiply_left(w), v)  # \342\200\226w\342\213\205A - v\342\200\226\n    58851\n    >>> vector_norm(A.multiply_left(w)) # \342\200\226w\342\213\205A\342\200\226\n    530251\n\nWe may consider the input vector as a coefficient vector wrt to `B^*`::\n\n    >>> v = M.from_canonical((100,)*50)\n    >>> w = M.babai(v, gso=True)\n    >>> vector_norm(A.multiply_left(w), (100,)*50)\n    58851\n\nWe compute a more interesting example and solve a simple Knapsack::\n\n    >>> from fpylll import *\n    >>> _ = FPLLL.set_precision(500)\n    >>> n = 10\n    >>> B = IntegerMatrix(n, n + 1)\n    >>> B.randomize(\"intrel\", bits=500)\n    >>> v_opt = B.multiply_left([1,0,1,0,1,1,0,0,1,1])\n    >>> s = v_opt[0] # s = <a, x>, where a is vector of knapsack values.\n    >>> t = [s] + (n * [0])\n\n    >>> _ = LLL.reduction(B)\n    >>> M = GSO.Mat(B, update=True, float_type=\"mpfr\")\n\n    >>> y = M.babai(t)\n    >>> v = B.multiply_left(y)\n    >>> t[0] == v[0]\n    True\n    >>> v_ = CVP.babai(B, t)\n    >>> v_ == v\n    True\n\n.. note :: A separate implementation is available at `CVP.babai()`. That implementation is\n   more numerically stable than this one (by repeatedly calling the Nearest Pla""ne algorithm\n   at a given precision to improve the solution). On the other hand, this implementation\n   supports floating point target vectors and `CVP.babai()` does not.");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_55babai = {"babai", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_55babai, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_54babai};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_55babai(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_v = 0;
  int __pyx_v_start;
  int __pyx_v_dimension;
  PyObject *__pyx_v_gso = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("babai (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_v,&__pyx_mstate_global->__pyx_n_u_start,&__pyx_mstate_global->__pyx_n_u_dimension,&__pyx_mstate_global->__pyx_n_u_gso,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 2306, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "babai", 0) < (0)) __PYX_ERR(0, 2306, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("babai", 0, 1, 4, i); __PYX_ERR(0, 2306, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2306, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_v = values[0];
    if (values[1]) {
      __pyx_v_start = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_start == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2306, __pyx_L3_error)
    } else {
      __pyx_v_start = ((int)0);
    }
    if (values[2]) {
      __pyx_v_dimension = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_dimension == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2306, __pyx_L3_error)
    } else {
      __pyx_v_dimension = ((int)-1);
    }
    __pyx_v_gso = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("babai", 0, 1, 4, __pyx_nargs); __PYX_ERR(0, 2306, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.babai", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_54babai(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_v, __pyx_v_start, __pyx_v_dimension, __pyx_v_gso);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_54babai(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_v, int __pyx_v_start, int __pyx_v_dimension, PyObject *__pyx_v_gso) {
  __pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t __pyx_v_cv;
  __pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t __pyx_v_cw;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  size_t __pyx_t_7;
  bool __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("babai", 0);

  /* "fpylll/fplll/gso.pyx":2365
 * 
 *         """
 *         if dimension == -1:             # <<<<<<<<<<<<<<
 *             dimension = self.d - start
 * 
*/
  __pyx_t_1 = (__pyx_v_dimension == -1L);
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":2366
 *         """
 *         if dimension == -1:
 *             dimension = self.d - start             # <<<<<<<<<<<<<<
 * 
 *         cdef vector_fp_nr_t cv
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_start); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_dimension = __pyx_t_5;

    /* "fpylll/fplll/gso.pyx":2365
 * 
 *         """
 *         if dimension == -1:             # <<<<<<<<<<<<<<
 *             dimension = self.d - start
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":2371
 *         cdef vector_z_nr_t cw
 * 
 *         if gso is False and self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("Can only convert to GSO representation with a basis.")
 * 
*/
  __pyx_t_6 = (__pyx_v_gso == Py_False);
  if (__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = (__pyx_v_self->_alg != __pyx_e_6fpylll_5fplll_4decl_mat_gso_gso_t);
  __pyx_t_1 = __pyx_t_6;
  __pyx_L5_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "fpylll/fplll/gso.pyx":2372
 * 
 *         if gso is False and self._alg != mat_gso_gso_t:
 *             raise TypeError("Can only convert to GSO representation with a basis.")             # <<<<<<<<<<<<<<
 * 
 *         if not gso:
*/
    __pyx_t_3 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Can_only_convert_to_GSO_represen};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2372, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 2372, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2371
 *         cdef vector_z_nr_t cw
 * 
 *         if gso is False and self._alg != mat_gso_gso_t:             # <<<<<<<<<<<<<<
 *             raise TypeError("Can only convert to GSO representation with a basis.")
 * 
*/
  }

  /* "fpylll/fplll/gso.pyx":2374
 *             raise TypeError("Can only convert to GSO representation with a basis.")
 * 
 *         if not gso:             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 2374, __pyx_L1_error)
  __pyx_t_6 = (!__pyx_t_1);
  if (__pyx_t_6) {

    /* "fpylll/fplll/gso.pyx":2375
 * 
 *         if not gso:
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

      /* "fpylll/fplll/gso.pyx":2376
 *         if not gso:
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).babai(cw.mpz, cv.d, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2376, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2377
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).babai(cw.mpz, cv.d, start, dimension, gso)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2377, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2378
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).babai(cw.mpz, cv.d, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2378, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.mpz_d)->babai(__pyx_v_cw.mpz, __pyx_v_cv.d, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2379
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).babai(cw.mpz, cv.d, start, dimension, gso)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_ld:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2380
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[d_t]]*>self._core.mpz_d).babai(cw.mpz, cv.d, start, dimension, gso)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_mpz_ld:
 *                 IF HAVE_LONG_DOUBLE:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2380, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2375
 * 
 *         if not gso:
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:

      /* "fpylll/fplll/gso.pyx":2383
 *             elif self._type == mat_gso_mpz_ld:
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).babai(cw.mpz, cv.ld, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2383, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2384
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).babai(cw.mpz, cv.ld, start, dimension, gso)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2384, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2385
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).babai(cw.mpz, cv.ld, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2385, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.mpz_ld)->babai(__pyx_v_cw.mpz, __pyx_v_cv.ld, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2386
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).babai(cw.mpz, cv.ld, start, dimension, gso)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 ELSE:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2387
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[ld_t]]*>self._core.mpz_ld).babai(cw.mpz, cv.ld, start, dimension, gso)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2381
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

      /* "fpylll/fplll/gso.pyx":2398
 *             #     return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).babai(cw.mpz, cv.mpfr, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_MPFR); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2398, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2399
 *             elif self._type == mat_gso_mpz_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).babai(cw.mpz, cv.mpfr, start, dimension, gso)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2399, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2400
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).babai(cw.mpz, cv.mpfr, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2400, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<mpfr_t> >  *)__pyx_v_self->_core.mpz_mpfr)->babai(__pyx_v_cw.mpz, __pyx_v_cv.mpfr, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2401
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).babai(cw.mpz, cv.mpfr, start, dimension, gso)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2402
 *                 (<MatGSO_c[Z_NR[mpz_t],FP_NR[mpfr_t]]*>self._core.mpz_mpfr).babai(cw.mpz, cv.mpfr, start, dimension, gso)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2402, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2397
 *             #     sig_off()
 *             #     return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

      /* "fpylll/fplll/gso.pyx":2404
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).babai(cw.long, cv.d, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2404, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2405
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).babai(cw.long, cv.d, start, dimension, gso)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2405, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2406
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).babai(cw.long, cv.d, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2406, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_d_t> >  *)__pyx_v_self->_core.long_d)->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.d, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2407
 *                 sig_on()
 *                 (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).babai(cw.long, cv.d, start, dimension, gso)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_ld:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2408
 *                 (<MatGSO_c[Z_NR[long],FP_NR[d_t]]*>self._core.long_d).babai(cw.long, cv.d, start, dimension, gso)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_ld:
 *                 IF HAVE_LONG_DOUBLE:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2408, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2403
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

      /* "fpylll/fplll/gso.pyx":2411
 *             elif self._type == mat_gso_long_ld:
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).babai(cw.long, cv.ld, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2411, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2412
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).babai(cw.long, cv.ld, start, dimension, gso)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2412, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2413
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).babai(cw.long, cv.ld, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2413, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_ld_t> >  *)__pyx_v_self->_core.long_ld)->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.ld, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2414
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).babai(cw.long, cv.ld, start, dimension, gso)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 ELSE:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2415
 *                     (<MatGSO_c[Z_NR[long],FP_NR[ld_t]]*>self._core.long_ld).babai(cw.long, cv.ld, start, dimension, gso)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2415, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2409
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":2432
 *             #     return vector_z_nr_slurp(cw, ZT_LONG)
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

      /* "fpylll/fplll/gso.pyx":2433
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).babai(cw.mpz, cv.dd, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2433, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2434
 *                 if self._type == mat_gso_mpz_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).babai(cw.mpz, cv.dd, start, dimension, gso)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2434, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2435
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).babai(cw.mpz, cv.dd, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2435, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<mpz_t> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.mpz_dd)->babai(__pyx_v_cw.mpz, __pyx_v_cv.dd, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2436
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).babai(cw.mpz, cv.dd, start, dimension, gso)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 # # https://github.com/fplll/fplll/issues/493
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2437
 *                     (<MatGSO_c[Z_NR[mpz_t],FP_NR[dd_t]]*>self._core.mpz_dd).babai(cw.mpz, cv.dd, start, dimension, gso)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *                 # # https://github.com/fplll/fplll/issues/493
 *                 # elif self._type == mat_gso_mpz_qd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2437, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2432
 *             #     return vector_z_nr_slurp(cw, ZT_LONG)
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

      /* "fpylll/fplll/gso.pyx":2446
 *                 #     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_long_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).babai(cw.long, cv.dd, start, dimension, gso)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2446, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2447
 *                 elif self._type == mat_gso_long_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).babai(cw.long, cv.dd, start, dimension, gso)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2447, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2448
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).babai(cw.long, cv.dd, start, dimension, gso)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
*/
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_gso); if (unlikely((__pyx_t_8 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2448, __pyx_L1_error)
      (void)(((fplll::MatGSO<fplll::Z_NR<long> ,fplll::FP_NR<__pyx_t_6fpylll_5fplll_4decl_dd_t> >  *)__pyx_v_self->_core.long_dd)->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.dd, __pyx_v_start, __pyx_v_dimension, __pyx_t_8));

      /* "fpylll/fplll/gso.pyx":2449
 *                     sig_on()
 *                     (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).babai(cw.long, cv.dd, start, dimension, gso)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 # # https://github.com/fplll/fplll/issues/493
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2450
 *                     (<MatGSO_c[Z_NR[long],FP_NR[dd_t]]*>self._core.long_dd).babai(cw.long, cv.dd, start, dimension, gso)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *                 # # https://github.com/fplll/fplll/issues/493
 *                 # elif self._type == mat_gso_long_qd:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2450, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2445
 *                 #     sig_off()
 *                 #     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":2459
 *                 #     return vector_z_nr_slurp(cw, ZT_LONG)
 * 
 *             raise NotImplementedError             # <<<<<<<<<<<<<<
 *         else:
 *             if self._type == mat_gso_mpz_d:
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
    __PYX_ERR(0, 2459, __pyx_L1_error)

    /* "fpylll/fplll/gso.pyx":2374
 *             raise TypeError("Can only convert to GSO representation with a basis.")
 * 
 *         if not gso:             # <<<<<<<<<<<<<<
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
*/
  }

  /* "fpylll/fplll/gso.pyx":2461
 *             raise NotImplementedError
 *         else:
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
  /*else*/ {

    /* "fpylll/fplll/gso.pyx":2509
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_d:

      /* "fpylll/fplll/gso.pyx":2462
 *         else:
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.mpz_d.babai(cw.mpz, cv.d, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2462, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2463
 *             if self._type == mat_gso_mpz_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.mpz_d.babai(cw.mpz, cv.d, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2463, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2464
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
 *                 self._core.mpz_d.babai(cw.mpz, cv.d, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_d->babai(__pyx_v_cw.mpz, __pyx_v_cv.d, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2465
 *                 sig_on()
 *                 self._core.mpz_d.babai(cw.mpz, cv.d, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_ld:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2466
 *                 self._core.mpz_d.babai(cw.mpz, cv.d, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_mpz_ld:
 *                 IF HAVE_LONG_DOUBLE:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2466, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2461
 *             raise NotImplementedError
 *         else:
 *             if self._type == mat_gso_mpz_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_ld:

      /* "fpylll/fplll/gso.pyx":2469
 *             elif self._type == mat_gso_mpz_ld:
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.mpz_ld.babai(cw.mpz, cv.ld, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2469, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2470
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.mpz_ld.babai(cw.mpz, cv.ld, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2470, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2471
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()
 *                     self._core.mpz_ld.babai(cw.mpz, cv.ld, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_ld->babai(__pyx_v_cw.mpz, __pyx_v_cv.ld, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2472
 *                     sig_on()
 *                     self._core.mpz_ld.babai(cw.mpz, cv.ld, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 ELSE:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2473
 *                     self._core.mpz_ld.babai(cw.mpz, cv.ld, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2467
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_ld:             # <<<<<<<<<<<<<<
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dpe:

      /* "fpylll/fplll/gso.pyx":2477
 *                     raise RuntimeError("Float type long double not supported.")
 *             elif self._type == mat_gso_mpz_dpe:
 *                 vector_fp_nr_barf(cv, v, FT_DPE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.mpz_dpe.babai(cw.mpz, cv.dpe, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DPE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2477, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2478
 *             elif self._type == mat_gso_mpz_dpe:
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.mpz_dpe.babai(cw.mpz, cv.dpe, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2478, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2479
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()
 *                 self._core.mpz_dpe.babai(cw.mpz, cv.dpe, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_dpe->babai(__pyx_v_cw.mpz, __pyx_v_cv.dpe, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2480
 *                 sig_on()
 *                 self._core.mpz_dpe.babai(cw.mpz, cv.dpe, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_mpfr:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2481
 *                 self._core.mpz_dpe.babai(cw.mpz, cv.dpe, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_mpz_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2481, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2476
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
 *             elif self._type == mat_gso_mpz_dpe:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_mpfr:

      /* "fpylll/fplll/gso.pyx":2483
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.mpz_mpfr.babai(cw.mpz, cv.mpfr, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_MPFR); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2483, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2484
 *             elif self._type == mat_gso_mpz_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.mpz_mpfr.babai(cw.mpz, cv.mpfr, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2484, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2485
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
 *                 self._core.mpz_mpfr.babai(cw.mpz, cv.mpfr, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_mpfr->babai(__pyx_v_cw.mpz, __pyx_v_cv.mpfr, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2486
 *                 sig_on()
 *                 self._core.mpz_mpfr.babai(cw.mpz, cv.mpfr, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2487
 *                 self._core.mpz_mpfr.babai(cw.mpz, cv.mpfr, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2487, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2482
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_mpz_mpfr:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_d:

      /* "fpylll/fplll/gso.pyx":2489
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.long_d.babai(cw.long, cv.d, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2489, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2490
 *             elif self._type == mat_gso_long_d:
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.long_d.babai(cw.long, cv.d, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2490, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2491
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
 *                 self._core.long_d.babai(cw.long, cv.d, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_d->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.d, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2492
 *                 sig_on()
 *                 self._core.long_d.babai(cw.long, cv.d, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_ld:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2493
 *                 self._core.long_d.babai(cw.long, cv.d, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_ld:
 *                 IF HAVE_LONG_DOUBLE:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2493, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2488
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_MPZ)
 *             elif self._type == mat_gso_long_d:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DOUBLE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_ld:

      /* "fpylll/fplll/gso.pyx":2496
 *             elif self._type == mat_gso_long_ld:
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.long_ld.babai(cw.long, cv.ld, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_LONG_DOUBLE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2496, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2497
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.long_ld.babai(cw.long, cv.ld, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2497, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2498
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
 *                     sig_on()
 *                     self._core.long_ld.babai(cw.long, cv.ld, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_ld->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.ld, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2499
 *                     sig_on()
 *                     self._core.long_ld.babai(cw.long, cv.ld, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 ELSE:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2500
 *                     self._core.long_ld.babai(cw.long, cv.ld, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2494
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_ld:             # <<<<<<<<<<<<<<
 *                 IF HAVE_LONG_DOUBLE:
 *                     vector_fp_nr_barf(cv, v, FT_LONG_DOUBLE)
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dpe:

      /* "fpylll/fplll/gso.pyx":2504
 *                     raise RuntimeError("Float type long double not supported.")
 *             elif self._type == mat_gso_long_dpe:
 *                 vector_fp_nr_barf(cv, v, FT_DPE)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.long_dpe.babai(cw.long, cv.dpe, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DPE); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2504, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2505
 *             elif self._type == mat_gso_long_dpe:
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.long_dpe.babai(cw.long, cv.dpe, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2505, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2506
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()
 *                 self._core.long_dpe.babai(cw.long, cv.dpe, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_dpe->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.dpe, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2507
 *                 sig_on()
 *                 self._core.long_dpe.babai(cw.long, cv.dpe, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_mpfr:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2508
 *                 self._core.long_dpe.babai(cw.long, cv.dpe, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *             elif self._type == mat_gso_long_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2508, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2503
 *                 ELSE:
 *                     raise RuntimeError("Float type long double not supported.")
 *             elif self._type == mat_gso_long_dpe:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_DPE)
 *                 sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_mpfr:

      /* "fpylll/fplll/gso.pyx":2510
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)             # <<<<<<<<<<<<<<
 *                 sig_on()
 *                 self._core.long_mpfr.babai(cw.long, cv.mpfr, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_MPFR); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2510, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2511
 *             elif self._type == mat_gso_long_mpfr:
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()             # <<<<<<<<<<<<<<
 *                 self._core.long_mpfr.babai(cw.long, cv.mpfr, start, dimension)
 *                 sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2511, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2512
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
 *                 self._core.long_mpfr.babai(cw.long, cv.mpfr, start, dimension)             # <<<<<<<<<<<<<<
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_mpfr->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.mpfr, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2513
 *                 sig_on()
 *                 self._core.long_mpfr.babai(cw.long, cv.mpfr, start, dimension)
 *                 sig_off()             # <<<<<<<<<<<<<<
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2514
 *                 self._core.long_mpfr.babai(cw.long, cv.mpfr, start, dimension)
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 * 
 *             IF HAVE_QD:
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2514, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2509
 *                 sig_off()
 *                 return vector_z_nr_slurp(cw, ZT_LONG)
 *             elif self._type == mat_gso_long_mpfr:             # <<<<<<<<<<<<<<
 *                 vector_fp_nr_barf(cv, v, FT_MPFR)
 *                 sig_on()
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":2517
 * 
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
    switch (__pyx_v_self->_type) {
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_dd:

      /* "fpylll/fplll/gso.pyx":2518
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.mpz_dd.babai(cw.mpz, cv.dd, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2518, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2519
 *                 if self._type == mat_gso_mpz_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.mpz_dd.babai(cw.mpz, cv.dd, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2519, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2520
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
 *                     self._core.mpz_dd.babai(cw.mpz, cv.dd, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_dd->babai(__pyx_v_cw.mpz, __pyx_v_cv.dd, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2521
 *                     sig_on()
 *                     self._core.mpz_dd.babai(cw.mpz, cv.dd, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_mpz_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2522
 *                     self._core.mpz_dd.babai(cw.mpz, cv.dd, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_mpz_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2522, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2517
 * 
 *             IF HAVE_QD:
 *                 if self._type == mat_gso_mpz_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_mpz_qd:

      /* "fpylll/fplll/gso.pyx":2524
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_mpz_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.mpz_qd.babai(cw.mpz, cv.qd, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_QD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2524, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2525
 *                 elif self._type == mat_gso_mpz_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.mpz_qd.babai(cw.mpz, cv.qd, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2525, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2526
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()
 *                     self._core.mpz_qd.babai(cw.mpz, cv.qd, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
*/
      (void)(__pyx_v_self->_core.mpz_qd->babai(__pyx_v_cw.mpz, __pyx_v_cv.qd, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2527
 *                     sig_on()
 *                     self._core.mpz_qd.babai(cw.mpz, cv.qd, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_long_dd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2528
 *                     self._core.mpz_qd.babai(cw.mpz, cv.qd, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_MPZ); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2523
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_mpz_qd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_dd:

      /* "fpylll/fplll/gso.pyx":2530
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_long_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.long_dd.babai(cw.long, cv.dd, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_DD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2530, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2531
 *                 elif self._type == mat_gso_long_dd:
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.long_dd.babai(cw.long, cv.dd, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2531, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2532
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
 *                     self._core.long_dd.babai(cw.long, cv.dd, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_dd->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.dd, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2533
 *                     sig_on()
 *                     self._core.long_dd.babai(cw.long, cv.dd, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 elif self._type == mat_gso_long_qd:
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2534
 *                     self._core.long_dd.babai(cw.long, cv.dd, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 *                 elif self._type == mat_gso_long_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2534, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2529
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_MPZ)
 *                 elif self._type == mat_gso_long_dd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_DD)
 *                     sig_on()
*/
      break;
      case __pyx_e_6fpylll_5fplll_4decl_mat_gso_long_qd:

      /* "fpylll/fplll/gso.pyx":2536
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 elif self._type == mat_gso_long_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)             # <<<<<<<<<<<<<<
 *                     sig_on()
 *                     self._core.long_qd.babai(cw.long, cv.qd, start, dimension)
*/
      __pyx_f_6fpylll_2io_vector_fp_nr_barf(__pyx_v_cv, __pyx_v_v, fplll::FT_QD); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2536, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2537
 *                 elif self._type == mat_gso_long_qd:
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()             # <<<<<<<<<<<<<<
 *                     self._core.long_qd.babai(cw.long, cv.qd, start, dimension)
 *                     sig_off()
*/
      __pyx_t_5 = sig_on(); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(0, 2537, __pyx_L1_error)

      /* "fpylll/fplll/gso.pyx":2538
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()
 *                     self._core.long_qd.babai(cw.long, cv.qd, start, dimension)             # <<<<<<<<<<<<<<
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
*/
      (void)(__pyx_v_self->_core.long_qd->babai(__pyx_v_cw.__pyx_long, __pyx_v_cv.qd, __pyx_v_start, __pyx_v_dimension));

      /* "fpylll/fplll/gso.pyx":2539
 *                     sig_on()
 *                     self._core.long_qd.babai(cw.long, cv.qd, start, dimension)
 *                     sig_off()             # <<<<<<<<<<<<<<
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 * 
*/
      sig_off();

      /* "fpylll/fplll/gso.pyx":2540
 *                     self._core.long_qd.babai(cw.long, cv.qd, start, dimension)
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)             # <<<<<<<<<<<<<<
 * 
 *             raise NotImplementedError
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6fpylll_2io_vector_z_nr_slurp(__pyx_v_cw, fplll::ZT_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2540, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;

      /* "fpylll/fplll/gso.pyx":2535
 *                     sig_off()
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 *                 elif self._type == mat_gso_long_qd:             # <<<<<<<<<<<<<<
 *                     vector_fp_nr_barf(cv, v, FT_QD)
 *                     sig_on()
*/
      break;
      default: break;
    }

    /* "fpylll/fplll/gso.pyx":2542
 *                     return vector_z_nr_slurp(cw, ZT_LONG)
 * 
 *             raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 *     # def _babai_old(self, v, int start=0, int dimension=-1, gso=False):
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
    __PYX_ERR(0, 2542, __pyx_L1_error)
  }

  /* "fpylll/fplll/gso.pyx":2306
 *     #     return tuple(w)
 * 
 *     def babai(self, v, int start=0, int dimension=-1, gso=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return vector `w` s.t. `wB - v` is small using Babai's nearest plane algorithm.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.babai", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pyx":2558
 *     #     return tuple(vv)
 * 
 *     def r(self, start=0, end=-1):             # <<<<<<<<<<<<<<
 *         """
 *         Return ``r`` vector from ``start`` to ``end``
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_57r(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6fpylll_5fplll_3gso_6MatGSO_56r, "MatGSO.r(self, start=0, end=-1)\n\nReturn ``r`` vector from ``start`` to ``end``");
static PyMethodDef __pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_57r = {"r", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_57r, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_56r};
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_57r(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_start = 0;
  PyObject *__pyx_v_end = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("r (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_start,&__pyx_mstate_global->__pyx_n_u_end,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 2558, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "r", 0) < (0)) __PYX_ERR(0, 2558, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_neg_1));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 2558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 2558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_neg_1));
    }
    __pyx_v_start = values[0];
    __pyx_v_end = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("r", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 2558, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.r", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_56r(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self), __pyx_v_start, __pyx_v_end);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_56r(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_end) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("r", 0);
  __Pyx_INCREF(__pyx_v_end);

  /* "fpylll/fplll/gso.pyx":2562
 *         Return ``r`` vector from ``start`` to ``end``
 *         """
 *         if end == -1:             # <<<<<<<<<<<<<<
 *             end = self.d
 *         return tuple([self.get_r(i, i) for i in range(start, end)])
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_end, __pyx_mstate_global->__pyx_int_neg_1, -1L, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 2562, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "fpylll/fplll/gso.pyx":2563
 *         """
 *         if end == -1:
 *             end = self.d             # <<<<<<<<<<<<<<
 *         return tuple([self.get_r(i, i) for i in range(start, end)])
 * 
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_end, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "fpylll/fplll/gso.pyx":2562
 *         Return ``r`` vector from ``start`` to ``end``
 *         """
 *         if end == -1:             # <<<<<<<<<<<<<<
 *             end = self.d
 *         return tuple([self.get_r(i, i) for i in range(start, end)])
*/
  }

  /* "fpylll/fplll/gso.pyx":2564
 *         if end == -1:
 *             end = self.d
 *         return tuple([self.get_r(i, i) for i in range(start, end)])             # <<<<<<<<<<<<<<
 * 
 * class GSO:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_start, __pyx_v_end};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    {
      __pyx_t_3 = __pyx_t_6(__pyx_t_4);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 2564, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_v_i, __pyx_v_i};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_r, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 2564, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "fpylll/fplll/gso.pyx":2558
 *     #     return tuple(vv)
 * 
 *     def r(self, start=0, end=-1):             # <<<<<<<<<<<<<<
 *         """
 *         Return ``r`` vector from ``start`` to ``end``
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("fpylll.fplll.gso.MatGSO.r", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_end);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pxd":11
 *     cdef mat_gso_core_t _core
 * 
 *     cdef readonly IntegerMatrix B             # <<<<<<<<<<<<<<
 *     cdef readonly IntegerMatrix _G
 *     cdef readonly IntegerMatrix U
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1B_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1B_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1B___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1B___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->B);
  __pyx_r = ((PyObject *)__pyx_v_self->B);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pxd":12
 * 
 *     cdef readonly IntegerMatrix B
 *     cdef readonly IntegerMatrix _G             # <<<<<<<<<<<<<<
 *     cdef readonly IntegerMatrix U
 *     cdef readonly IntegerMatrix UinvT
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_2_G_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_2_G_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2_G___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_2_G___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_G);
  __pyx_r = ((PyObject *)__pyx_v_self->_G);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pxd":13
 *     cdef readonly IntegerMatrix B
 *     cdef readonly IntegerMatrix _G
 *     cdef readonly IntegerMatrix U             # <<<<<<<<<<<<<<
 *     cdef readonly IntegerMatrix UinvT
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1U_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1U_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1U___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_1U___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->U);
  __pyx_r = ((PyObject *)__pyx_v_self->U);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "fpylll/fplll/gso.pxd":14
 *     cdef readonly IntegerMatrix _G
 *     cdef readonly IntegerMatrix U
 *     cdef readonly IntegerMatrix UinvT             # <<<<<<<<<<<<<<
*/

/* Python wrapper */
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5UinvT_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5UinvT_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6fpylll_5fplll_3gso_6MatGSO_5UinvT___get__(((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6fpylll_5fplll_3gso_6MatGSO_5UinvT___get__(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->UinvT);
  __pyx_r = ((PyObject *)__pyx_v_self->UinvT);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */

static PyObject *__pyx_tp_new_6fpylll_5fplll_3gso_MatGSO(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)o);
  p->B = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  p->_G = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  p->U = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  p->UinvT = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_6fpylll_5fplll_3gso_MatGSO(PyObject *o) {
  struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *p = (struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6fpylll_5fplll_3gso_MatGSO) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->B);
  Py_CLEAR(p->_G);
  Py_CLEAR(p->U);
  Py_CLEAR(p->UinvT);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6fpylll_5fplll_3gso_MatGSO(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *p = (struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->B) {
    e = (*v)(((PyObject *)p->B), a); if (e) return e;
  }
  if (p->_G) {
    e = (*v)(((PyObject *)p->_G), a); if (e) return e;
  }
  if (p->U) {
    e = (*v)(((PyObject *)p->U), a); if (e) return e;
  }
  if (p->UinvT) {
    e = (*v)(((PyObject *)p->UinvT), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6fpylll_5fplll_3gso_MatGSO(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *p = (struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO *)o;
  tmp = ((PyObject*)p->B);
  p->B = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_G);
  p->_G = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->U);
  p->U = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->UinvT);
  p->UinvT = ((struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_G(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1G_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_float_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_10float_type_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_int_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_8int_type_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_d(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1d_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_int_gram_enabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16int_gram_enabled_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_row_expo_enabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_16row_expo_enabled_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_transform_enabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17transform_enabled_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_inverse_transform_enabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25inverse_transform_enabled_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_row_op_force_long(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17row_op_force_long_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_B(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1B_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO__G(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_2_G_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_U(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1U_1__get__(o);
}

static PyObject *__pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_UinvT(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5UinvT_1__get__(o);
}

static PyMethodDef __pyx_methods_6fpylll_5fplll_3gso_MatGSO[] = {
  {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_5__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_4__reduce__},
  {"row_op_begin", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_6row_op_begin},
  {"row_op_end", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_9row_op_end, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_8row_op_end},
  {"row_ops", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_11row_ops, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_10row_ops},
  {"get_gram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_13get_gram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_12get_gram},
  {"get_int_gram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_14get_int_gram},
  {"get_r", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_17get_r, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_16get_r},
  {"get_r_exp", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_18get_r_exp},
  {"get_mu", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_21get_mu, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_20get_mu},
  {"get_mu_exp", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_22get_mu_exp},
  {"update_gso", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_25update_gso, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_24update_gso},
  {"update_gso_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_26update_gso_row},
  {"discover_all_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_28discover_all_rows},
  {"move_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_31move_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_30move_row},
  {"swap_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_33swap_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_32swap_rows},
  {"negate_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_35negate_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_34negate_row},
  {"row_addmul", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_37row_addmul, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_36row_addmul},
  {"create_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_39create_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_38create_row},
  {"remove_last_row", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_40remove_last_row},
  {"get_current_slope", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_42get_current_slope},
  {"get_root_det", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_45get_root_det, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_44get_root_det},
  {"get_log_det", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_47get_log_det, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_46get_log_det},
  {"get_slide_potential", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_48get_slide_potential},
  {"from_canonical", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_51from_canonical, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_50from_canonical},
  {"to_canonical", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_53to_canonical, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_52to_canonical},
  {"babai", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_55babai, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_54babai},
  {"r", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_57r, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6fpylll_5fplll_3gso_6MatGSO_56r},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6fpylll_5fplll_3gso_MatGSO[] = {
  {"G", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_G, 0, PyDoc_STR("\n        Return the Gram matrix.\n\n        - If this GSO object operates on a Gram matrix, return that.\n        - If this GSO object operates on a basis with ``GSO.INT_GRAM`` set,\n          construct the Gram matrix and return it\n        - Otherwise, a ``NotImplementedError`` is raised\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> FPLLL.set_random_seed(1337)\n        >>> A = IntegerMatrix.random(10, \"qary\", k=5, bits=10)\n        >>> M = GSO.Mat(A, flags=GSO.INT_GRAM); _ = M.update_gso()\n        >>> G = M.G\n        >>> print(G)\n        [ 822597      0      0      0      0      0      0      0      0      0 ]\n        [ 357490 391403      0      0      0      0      0      0      0      0 ]\n        [ 474377 396238 635122      0      0      0      0      0      0      0 ]\n        [ 503594 382116 396118 448816      0      0      0      0      0      0 ]\n        [ 555245 288280 463386 393750 495338      0      0      0      0      0 ]\n        [ 313028   6756 146380 121045 286004 316969      0      0      0      0 ]\n        [   2815 136246 304583 104718 163270      0 316969      0      0      0 ]\n        [ 215629  24209  28150 106407  90080      0      0 316969      0      0 ]\n        [ 287693 210562 276996 164396 139061      0      0      0 316969      0 ]\n        [ 182975 246031  97962 279811 145254      0      0      0      0 316969 ]\n\n        >>> A[0].norm()**2\n        822597.000...\n\n        >>> M = GSO.Mat(G, gram=True); _ = M.update_gso()\n        >>> G == M.G\n        True\n\n        >>> M = GSO.Mat(A)\n        >>> M.G\n        Traceback (most recent call last):\n        ...\n        NotImplementedError: Computing the Gram Matrix currently requires GSO.INT_GRAM\n\n        "), 0},
  {"float_type", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_float_type, 0, PyDoc_STR("\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(10, 10)\n        >>> M = GSO.Mat(A)\n        >>> M.float_type\n        'double'\n        >>> _ = FPLLL.set_precision(100)\n        >>> M = GSO.Mat(A, float_type='mpfr')\n        >>> M.float_type\n        'mpfr'\n\n        "), 0},
  {"int_type", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_int_type, 0, PyDoc_STR("\n\n        "), 0},
  {"d", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_d, 0, PyDoc_STR("\n        Number of rows of ``B`` (dimension of the lattice).\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.d\n        11\n\n        "), 0},
  {"int_gram_enabled", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_int_gram_enabled, 0, PyDoc_STR("\n        Exact computation of dot products.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.int_gram_enabled\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.INT_GRAM)\n        >>> M.int_gram_enabled\n        True\n\n        "), 0},
  {"row_expo_enabled", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_row_expo_enabled, 0, PyDoc_STR("\n        Normalization of each row of b by a power of 2.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.row_expo_enabled\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.ROW_EXPO)\n        >>> M.row_expo_enabled\n        True\n\n        "), 0},
  {"transform_enabled", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_transform_enabled, 0, PyDoc_STR("\n        Computation of the transform matrix.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.transform_enabled\n        False\n\n        >>> U = IntegerMatrix.identity(11)\n        >>> M = GSO.Mat(A, U=U)\n\n        >>> M.transform_enabled\n        True\n\n        "), 0},
  {"inverse_transform_enabled", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_inverse_transform_enabled, 0, PyDoc_STR("\n        Computation of the inverse transform matrix (transposed).\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.inverse_transform_enabled\n        False\n\n        >>> U = IntegerMatrix.identity(11)\n        >>> UinvT = IntegerMatrix.identity(11)\n        >>> M = GSO.Mat(A, U=U, UinvT=UinvT)\n        >>> M.inverse_transform_enabled\n        True\n\n        "), 0},
  {"row_op_force_long", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_row_op_force_long, 0, PyDoc_STR("\n        Changes the behaviour of ``row_addmul``, see its documentation.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.row_op_force_long\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.OP_FORCE_LONG)\n        >>> M.row_op_force_long\n        True\n\n        "), 0},
  {"B", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_B, 0, 0, 0},
  {"_G", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO__G, 0, 0, 0},
  {"U", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_U, 0, 0, 0},
  {"UinvT", __pyx_getprop_6fpylll_5fplll_3gso_6MatGSO_UinvT, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6fpylll_5fplll_3gso_MatGSO_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6fpylll_5fplll_3gso_MatGSO},
  {Py_tp_doc, (void *)PyDoc_STR("MatGSO(IntegerMatrix B, U=None, UinvT=None, int flags=GSO_DEFAULT, float_type='double', gram=False, update=False)\n\nMatGSO provides an interface for performing elementary operations on a basis and computing its\nGram matrix and its Gram-Schmidt orthogonalization.  The Gram-Schmidt coefficients are computed\non demand.  The object keeps track of which coefficients are valid after each row operation.")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6fpylll_5fplll_3gso_MatGSO},
  {Py_tp_clear, (void *)__pyx_tp_clear_6fpylll_5fplll_3gso_MatGSO},
  {Py_tp_methods, (void *)__pyx_methods_6fpylll_5fplll_3gso_MatGSO},
  {Py_tp_getset, (void *)__pyx_getsets_6fpylll_5fplll_3gso_MatGSO},
  {Py_tp_init, (void *)__pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_6fpylll_5fplll_3gso_MatGSO},
  {0, 0},
};
static PyType_Spec __pyx_type_6fpylll_5fplll_3gso_MatGSO_spec = {
  "fpylll.fplll.gso.MatGSO",
  sizeof(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6fpylll_5fplll_3gso_MatGSO_slots,
};
#else

static PyTypeObject __pyx_type_6fpylll_5fplll_3gso_MatGSO = {
  PyVarObject_HEAD_INIT(0, 0)
  "fpylll.fplll.gso.""MatGSO", /*tp_name*/
  sizeof(struct __pyx_obj_6fpylll_5fplll_3gso_MatGSO), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6fpylll_5fplll_3gso_MatGSO, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("MatGSO(IntegerMatrix B, U=None, UinvT=None, int flags=GSO_DEFAULT, float_type='double', gram=False, update=False)\n\nMatGSO provides an interface for performing elementary operations on a basis and computing its\nGram matrix and its Gram-Schmidt orthogonalization.  The Gram-Schmidt coefficients are computed\non demand.  The object keeps track of which coefficients are valid after each row operation."), /*tp_doc*/
  __pyx_tp_traverse_6fpylll_5fplll_3gso_MatGSO, /*tp_traverse*/
  __pyx_tp_clear_6fpylll_5fplll_3gso_MatGSO, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6fpylll_5fplll_3gso_MatGSO, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6fpylll_5fplll_3gso_MatGSO, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_6fpylll_5fplll_3gso_6MatGSO_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6fpylll_5fplll_3gso_MatGSO, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6fpylll_5fplll_3gso_MatGSO_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO)) __PYX_ERR(0, 91, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6fpylll_5fplll_3gso_MatGSO_spec, __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO) < (0)) __PYX_ERR(0, 91, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO = &__pyx_type_6fpylll_5fplll_3gso_MatGSO;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO) < (0)) __PYX_ERR(0, 91, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO->tp_dictoffset && __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_UPDATE_DESCRIPTOR_DOC
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)__pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 91, __pyx_L1_error)
    if (__Pyx_IS_TYPE(wrapper, &PyWrapperDescr_Type)) {
      __pyx_wrapperbase_6fpylll_5fplll_3gso_6MatGSO___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_6fpylll_5fplll_3gso_6MatGSO___init__.doc = __pyx_doc_6fpylll_5fplll_3gso_6MatGSO___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_6fpylll_5fplll_3gso_6MatGSO___init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_MatGSO, (PyObject *) __pyx_mstate->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO) < (0)) __PYX_ERR(0, 91, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule("fpylll.fplll.integer_matrix"); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix = __Pyx_ImportType_3_2_4(__pyx_t_1, "fpylll.fplll.integer_matrix", "IntegerMatrix",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix),
  #else
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_4); if (!__pyx_mstate->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix) __PYX_ERR(1, 7, __pyx_L1_error)
  __pyx_vtabptr_6fpylll_5fplll_14integer_matrix_IntegerMatrix = (struct __pyx_vtabstruct_6fpylll_5fplll_14integer_matrix_IntegerMatrix*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrix); if (unlikely(!__pyx_vtabptr_6fpylll_5fplll_14integer_matrix_IntegerMatrix)) __PYX_ERR(1, 7, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow = __Pyx_ImportType_3_2_4(__pyx_t_1, "fpylll.fplll.integer_matrix", "IntegerMatrixRow",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow),
  #else
  sizeof(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(struct __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_4); if (!__pyx_mstate->__pyx_ptype_6fpylll_5fplll_14integer_matrix_IntegerMatrixRow) __PYX_ERR(1, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_2_4(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(PyTypeObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  0, 0,
  #else
  sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_4(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_4); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("cysignals.signals"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_cysigs_t_cysigs);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 9;
    void **const __pyx_import_pointers[] = {(void **)&__pyx_vp_9cysignals_7signals_cysigs, (void **) NULL};
    void **const *__pyx_import_pointer = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportVoidPtr_3_2_4(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("cysignals.signals"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_void_char_const_int_void_int_voi);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 51;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&_sig_off_warning, (void (**)(void))&_do_raise_exception, (void (**)(void))&_sig_on_interrupt_received, (void (**)(void))&_sig_on_recover, (void (**)(void))&print_backtrace, (void (**)(void))&__pyx_f_9cysignals_7signals_verify_exc_value, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_4(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  {
    __pyx_t_1 = PyImport_ImportModule("fpylll.util"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject_PyObject_int_int_int_in);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 52;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_6fpylll_4util_check_float_type, (void (**)(void))&__pyx_f_6fpylll_4util_preprocess_indices, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_4(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  {
    __pyx_t_1 = PyImport_ImportModule("fpylll.io"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject___pyx_t_6fpylll_5fplll);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 270;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_6fpylll_2io_vector_fp_nr_slurp, (void (**)(void))&__pyx_f_6fpylll_2io_vector_z_nr_slurp, (void (**)(void))&__pyx_f_6fpylll_2io_mpz_get_python, (void (**)(void))&__pyx_f_6fpylll_2io_vector_fp_nr_barf, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_4(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_gso(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_gso},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "gso",
      __pyx_k_Elementary_basis_operations_Gra, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit_gso(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_gso(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_gso(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'gso' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "gso" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    PyErr_Clear();
    __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit_gso", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_fpylll__fplll__gso) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "fpylll.fplll.gso")) {
      if (unlikely((PyDict_SetItemString(modules, "fpylll.fplll.gso", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_type_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_variable_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/

  /* "fpylll/fplll/gso.pyx":53
 *     from .fplll cimport FT_DD, FT_QD
 * 
 * class MatGSORowOpContext(object):             # <<<<<<<<<<<<<<
 *     """
 *     A context in which performing row operations is safe.  When the context is left, the appropriate
*/
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_mstate_global->__pyx_tuple[2]); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_kp_u_A_context_in_which_performing_r); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_2 != __pyx_mstate_global->__pyx_tuple[2]) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_mstate_global->__pyx_tuple[2]) < 0))) __PYX_ERR(0, 53, __pyx_L1_error)
  }

  /* "fpylll/fplll/gso.pyx":58
 *     updates are performed by calling ``row_op_end()``.
 *     """
 *     def __init__(self, M, i, j):             # <<<<<<<<<<<<<<
 *         """Construct new context for ``M[i:j]``.
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_1__init__, 0, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext___init, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "fpylll/fplll/gso.pyx":70
 *         self.M = M
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Enter context for working on rows.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_3__enter__, 0, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext___enter, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_enter, __pyx_t_5) < (0)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "fpylll/fplll/gso.pyx":78
 *         return self
 * 
 *     def __exit__(self, exception_type, exception_value, exception_traceback):             # <<<<<<<<<<<<<<
 *         """
 *         Exit context for working on rows.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_18MatGSORowOpContext_5__exit__, 0, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext___exit, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_exit, __pyx_t_5) < (0)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "fpylll/fplll/gso.pyx":53
 *     from .fplll cimport FT_DD, FT_QD
 * 
 * class MatGSORowOpContext(object):             # <<<<<<<<<<<<<<
 *     """
 *     A context in which performing row operations is safe.  When the context is left, the appropriate
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext, __pyx_t_2, __pyx_t_4, NULL, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_MatGSORowOpContext, __pyx_t_5) < (0)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":99
 * 
 *     def __init__(self, IntegerMatrix B, U=None, UinvT=None,
 *                  int flags=GSO_DEFAULT, float_type="double", gram=False, update=False):             # <<<<<<<<<<<<<<
 *         """
 *         :param IntegerMatrix B: The matrix on which row operations are performed.  It must not be
*/
  __pyx_mstate_global->__pyx_k_ = fplll::GSO_DEFAULT;

  /* "fpylll/fplll/gso.pyx":439
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Make sure attempts at pickling raise an error until proper pickling is implemented.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_5__reduce__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO___reduce, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_reduce, __pyx_t_2) < (0)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":904
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_begin(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called before a sequence of ``row_addmul``.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_7row_op_begin, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_row_op_begin, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_row_op_begin, __pyx_t_2) < (0)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":945
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_op_end(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """
 *         Must be called after a sequence of ``row_addmul``.  This invalidates the `i`-th line of the
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_9row_op_end, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_row_op_end, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_row_op_end, __pyx_t_2) < (0)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":987
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def row_ops(self, int first, int last):             # <<<<<<<<<<<<<<
 *         """Return context in which ``row_addmul`` operations are safe.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_11row_ops, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_row_ops, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_row_ops, __pyx_t_2) < (0)) __PYX_ERR(0, 987, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":996
 *         return MatGSORowOpContext(self, first, last)
 * 
 *     def get_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_13get_gram, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_gram, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_gram, __pyx_t_2) < (0)) __PYX_ERR(0, 996, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1044
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_int_gram(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return *integer* Gram matrix coefficients (0  i  ``n_known_rows`` and 0  j  i).  If
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_15get_int_gram, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_int_gram, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_int_gram, __pyx_t_2) < (0)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1095
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `b_i, b*_j`.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_17get_r, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_r, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_r, __pyx_t_2) < (0)) __PYX_ERR(0, 1095, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1148
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_r_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = r_{i, j}` and exponent `x` such that `b_i, b^*_j = f  2^x`.  If
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_19get_r_exp, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_r_exp, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_r_exp, __pyx_t_2) < (0)) __PYX_ERR(0, 1148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1210
 * 
 * 
 *     def get_mu(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `<b_i, b^*_j> / ||b^*_j||^2`.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_21get_mu, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_mu, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_mu, __pyx_t_2) < (0)) __PYX_ERR(0, 1210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1254
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_mu_exp(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Return `f = _{i, j}` and exponent `x` such that `f  2^x = b_i, b^*_j / b^*_j^2`.  If
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_23get_mu_exp, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_mu_exp, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_mu_exp, __pyx_t_2) < (0)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1316
 * 
 * 
 *     def update_gso(self):             # <<<<<<<<<<<<<<
 *         """
 *         Updates all GSO coefficients (`` and `r`).
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_25update_gso, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_update_gso, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_update_gso, __pyx_t_2) < (0)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1377
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def update_gso_row(self, int i, int last_j):             # <<<<<<<<<<<<<<
 *         """
 *         Updates `r_{i, j}` and `_{i, j}` if needed for all `j` in `[0, last_j]`.  All coefficients
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_27update_gso_row, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_update_gso_row, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_update_gso_row, __pyx_t_2) < (0)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1419
 * 
 * 
 *     def discover_all_rows(self):             # <<<<<<<<<<<<<<
 *         """
 *         Allows ``row_addmul`` for all rows even if the GSO has never been computed.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_29discover_all_rows, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_discover_all_rows, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_discover_all_rows, __pyx_t_2) < (0)) __PYX_ERR(0, 1419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1455
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def move_row(self, int old_r, int new_r):             # <<<<<<<<<<<<<<
 *         """
 *         Row ``old_r`` becomes row ``new_r`` and intermediate rows are shifted.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_31move_row, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_move_row, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_move_row, __pyx_t_2) < (0)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1497
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def swap_rows(self, int i, int j):             # <<<<<<<<<<<<<<
 *         """
 *         Swap rows ``i`` and ``j``.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_33swap_rows, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_swap_rows, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_swap_rows, __pyx_t_2) < (0)) __PYX_ERR(0, 1497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1538
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def negate_row(self, int i):             # <<<<<<<<<<<<<<
 *         """Set `b_i` to `-b_i`.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_35negate_row, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_negate_row, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_negate_row, __pyx_t_2) < (0)) __PYX_ERR(0, 1538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1575
 * 
 * 
 *     def row_addmul(self, int i, int j, x):             # <<<<<<<<<<<<<<
 *         """Set `b_i = b_i + x  b_j`.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_37row_addmul, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_row_addmul, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_row_addmul, __pyx_t_2) < (0)) __PYX_ERR(0, 1575, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1636
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def create_row(self):             # <<<<<<<<<<<<<<
 *         """Adds a zero row to ``B`` (and to ``U`` if ``enable_tranform=true``).  One or several
 *         operations can be performed on this row with ``row_addmul``, then ``row_op_end`` must be
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_39create_row, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_create_row, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_create_row, __pyx_t_2) < (0)) __PYX_ERR(0, 1636, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1677
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def remove_last_row(self):             # <<<<<<<<<<<<<<
 *         """Remove.  the last row of ``B`` (and of ``U`` if ``enable_transform=true``).  Do not use
 *         if ``inverse_transform_enabled=true``.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_41remove_last_row, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_remove_last_row, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_remove_last_row, __pyx_t_2) < (0)) __PYX_ERR(0, 1677, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1717
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_current_slope(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """
 *         Finds the slope of the curve fitted to the lengths of the vectors from ``start_row`` to
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_43get_current_slope, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_current_slope, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_current_slope, __pyx_t_2) < (0)) __PYX_ERR(0, 1717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1798
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_root_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return (squared) root determinant of the basis.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_45get_root_det, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_root_det, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_root_det, __pyx_t_2) < (0)) __PYX_ERR(0, 1798, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1877
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_log_det(self, int start_row, int stop_row):             # <<<<<<<<<<<<<<
 *         """ Return log of the (squared) determinant of the basis.
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_47get_log_det, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_log_det, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_log_det, __pyx_t_2) < (0)) __PYX_ERR(0, 1877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1956
 *         raise RuntimeError("MatGSO object '%s' has no core."%self)
 * 
 *     def get_slide_potential(self, int start_row, int stop_row, int block_size):             # <<<<<<<<<<<<<<
 *         """ Return slide potential of the basis
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_49get_slide_potential, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_get_slide_potential, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_get_slide_potential, __pyx_t_2) < (0)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":2037
 * 
 * 
 *     def from_canonical(self, w, int start=0, int dimension=-1):             # <<<<<<<<<<<<<<
 *         """Given a vector `w` wrt the canonical basis `\ZZ^n` return a vector `v` wrt the
 *         Gram-Schmidt basis `B^*`
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_51from_canonical, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_from_canonical, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_from_canonical, __pyx_t_2) < (0)) __PYX_ERR(0, 2037, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":2177
 *     #     return tuple(ret)[start:]
 * 
 *     def to_canonical(self, v, int start=0):             # <<<<<<<<<<<<<<
 *         """
 *         Given a vector `v` wrt the Gram-Schmidt basis `B^*` return a vector `w` wrt the
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_53to_canonical, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_to_canonical, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[4]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_to_canonical, __pyx_t_2) < (0)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":2306
 *     #     return tuple(w)
 * 
 *     def babai(self, v, int start=0, int dimension=-1, gso=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return vector `w` s.t. `wB - v` is small using Babai's nearest plane algorithm.
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_55babai, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_babai, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[5]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_babai, __pyx_t_2) < (0)) __PYX_ERR(0, 2306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":2558
 *     #     return tuple(vv)
 * 
 *     def r(self, start=0, end=-1):             # <<<<<<<<<<<<<<
 *         """
 *         Return ``r`` vector from ``start`` to ``end``
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6fpylll_5fplll_3gso_6MatGSO_57r, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_MatGSO_r, NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[3]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO, __pyx_mstate_global->__pyx_n_u_r, __pyx_t_2) < (0)) __PYX_ERR(0, 2558, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":2566
 *         return tuple([self.get_r(i, i) for i in range(start, end)])
 * 
 * class GSO:             # <<<<<<<<<<<<<<
 *     DEFAULT=GSO_DEFAULT
 *     INT_GRAM=GSO_INT_GRAM
*/
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_GSO, __pyx_mstate_global->__pyx_n_u_GSO, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_fpylll_fplll_gso, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "fpylll/fplll/gso.pyx":2567
 * 
 * class GSO:
 *     DEFAULT=GSO_DEFAULT             # <<<<<<<<<<<<<<
 *     INT_GRAM=GSO_INT_GRAM
 *     ROW_EXPO=GSO_ROW_EXPO
*/
  __pyx_t_3 = __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(fplll::GSO_DEFAULT); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DEFAULT, __pyx_t_3) < (0)) __PYX_ERR(0, 2567, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "fpylll/fplll/gso.pyx":2568
 * class GSO:
 *     DEFAULT=GSO_DEFAULT
 *     INT_GRAM=GSO_INT_GRAM             # <<<<<<<<<<<<<<
 *     ROW_EXPO=GSO_ROW_EXPO
 *     OP_FORCE_LONG=GSO_OP_FORCE_LONG
*/
  __pyx_t_3 = __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(fplll::GSO_INT_GRAM); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_INT_GRAM, __pyx_t_3) < (0)) __PYX_ERR(0, 2568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "fpylll/fplll/gso.pyx":2569
 *     DEFAULT=GSO_DEFAULT
 *     INT_GRAM=GSO_INT_GRAM
 *     ROW_EXPO=GSO_ROW_EXPO             # <<<<<<<<<<<<<<
 *     OP_FORCE_LONG=GSO_OP_FORCE_LONG
 *     Mat = MatGSO
*/
  __pyx_t_3 = __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(fplll::GSO_ROW_EXPO); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ROW_EXPO, __pyx_t_3) < (0)) __PYX_ERR(0, 2569, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "fpylll/fplll/gso.pyx":2570
 *     INT_GRAM=GSO_INT_GRAM
 *     ROW_EXPO=GSO_ROW_EXPO
 *     OP_FORCE_LONG=GSO_OP_FORCE_LONG             # <<<<<<<<<<<<<<
 *     Mat = MatGSO
*/
  __pyx_t_3 = __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(fplll::GSO_OP_FORCE_LONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OP_FORCE_LONG, __pyx_t_3) < (0)) __PYX_ERR(0, 2570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "fpylll/fplll/gso.pyx":2571
 *     ROW_EXPO=GSO_ROW_EXPO
 *     OP_FORCE_LONG=GSO_OP_FORCE_LONG
 *     Mat = MatGSO             # <<<<<<<<<<<<<<
*/
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Mat, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6fpylll_5fplll_3gso_MatGSO)) < (0)) __PYX_ERR(0, 2571, __pyx_L1_error)

  /* "fpylll/fplll/gso.pyx":2566
 *         return tuple([self.get_r(i, i) for i in range(start, end)])
 * 
 * class GSO:             # <<<<<<<<<<<<<<
 *     DEFAULT=GSO_DEFAULT
 *     INT_GRAM=GSO_INT_GRAM
*/
  __pyx_t_3 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_mstate_global->__pyx_n_u_GSO, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_3);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GSO, __pyx_t_3) < (0)) __PYX_ERR(0, 2566, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "fpylll/fplll/gso.pyx":1
 * # -*- coding: utf-8 -*-             # <<<<<<<<<<<<<<
 * """
 * Elementary basis operations, Gram matrix and Gram-Schmidt orthogonalization.
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO___init___line_98, __pyx_mstate_global->__pyx_kp_u_param_IntegerMatrix_B_The_matri) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_G___get___line_445, __pyx_mstate_global->__pyx_kp_u_Return_the_Gram_matrix_If_this) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_float_type___get___line_5, __pyx_mstate_global->__pyx_kp_u_from_fpylll_import_IntegerMatri) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_d___get___line_616, __pyx_mstate_global->__pyx_kp_u_Number_of_rows_of_B_dimension_o) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_int_gram_enabled___get, __pyx_mstate_global->__pyx_kp_u_Exact_computation_of_dot_produc) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_row_expo_enabled___get, __pyx_mstate_global->__pyx_kp_u_Normalization_of_each_row_of_b) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_transform_enabled___get, __pyx_mstate_global->__pyx_kp_u_Computation_of_the_transform_ma) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_inverse_transform_enabled, __pyx_mstate_global->__pyx_kp_u_Computation_of_the_inverse_tran) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_row_op_force_long___get, __pyx_mstate_global->__pyx_kp_u_Changes_the_behaviour_of_row_ad) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_get_r_line_1095, __pyx_mstate_global->__pyx_kp_u_Return_b_i_b__j_param_i_param_j) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_negate_row_line_1538, __pyx_mstate_global->__pyx_kp_u_Set_b_i_to_b_i_param_int_i_index) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_from_canonical_line_2037, __pyx_mstate_global->__pyx_kp_u_Given_a_vector_w_wrt_the_canonic) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_MatGSO_babai_line_2306, __pyx_mstate_global->__pyx_kp_u_Return_vector_w_s_t_wB_v_is_sma) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init fpylll.fplll.gso", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init fpylll.fplll.gso");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_object); if (!__pyx_builtin_object) __PYX_ERR(0, 53, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "fpylll/fplll/gso.pyx":150
 * 
 *         if U is None:
 *             self.U = IntegerMatrix(0, 0)             # <<<<<<<<<<<<<<
 *         elif isinstance(U, IntegerMatrix):
 *             if U.nrows != B.nrows:
*/
  __pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);

  /* "fpylll/fplll/gso.pyx":53
 *     from .fplll cimport FT_DD, FT_QD
 * 
 * class MatGSORowOpContext(object):             # <<<<<<<<<<<<<<
 *     """
 *     A context in which performing row operations is safe.  When the context is left, the appropriate
*/
  __pyx_mstate_global->__pyx_tuple[1] = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_mstate_global->__pyx_tuple[1])) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[1]);
  __pyx_mstate_global->__pyx_tuple[2] = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_mstate_global->__pyx_tuple[2])) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[2]);

  /* "fpylll/fplll/gso.pyx":2037
 * 
 * 
 *     def from_canonical(self, w, int start=0, int dimension=-1):             # <<<<<<<<<<<<<<
 *         """Given a vector `w` wrt the canonical basis `\ZZ^n` return a vector `v` wrt the
 *         Gram-Schmidt basis `B^*`
*/
  __pyx_mstate_global->__pyx_tuple[3] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_neg_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[3])) __PYX_ERR(0, 2037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[3]);

  /* "fpylll/fplll/gso.pyx":2177
 *     #     return tuple(ret)[start:]
 * 
 *     def to_canonical(self, v, int start=0):             # <<<<<<<<<<<<<<
 *         """
 *         Given a vector `v` wrt the Gram-Schmidt basis `B^*` return a vector `w` wrt the
*/
  __pyx_mstate_global->__pyx_tuple[4] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[4])) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);

  /* "fpylll/fplll/gso.pyx":2306
 *     #     return tuple(w)
 * 
 *     def babai(self, v, int start=0, int dimension=-1, gso=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return vector `w` s.t. `wB - v` is small using Babai's nearest plane algorithm.
*/
  __pyx_mstate_global->__pyx_tuple[5] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_neg_1, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[5])) __PYX_ERR(0, 2306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[5]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<6; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 12; } index[] = {{161},{52},{349},{442},{346},{57},{46},{313},{31},{1051},{27},{25},{24},{27},{36},{33},{24},{42},{51},{29},{31},{42},{43},{43},{326},{179},{220},{319},{1713},{2328},{888},{58},{24},{18},{28},{22},{28},{1},{8},{61},{7},{6},{301},{2},{9},{11},{2847},{66},{24},{28},{32},{1},{7},{3},{8},{1},{3},{6},{18},{28},{27},{27},{17},{12},{17},{24},{21},{24},{15},{19},{18},{13},{17},{12},{16},{19},{26},{15},{17},{8},{22},{17},{19},{17},{14},{16},{19},{17},{21},{13},{20},{8},{1},{5},{18},{5},{10},{18},{10},{2},{2},{1},{2},{9},{17},{7},{6},{3},{3},{9},{19},{14},{15},{8},{4},{5},{5},{10},{16},{14},{8},{17},{8},{12},{11},{6},{10},{5},{9},{12},{19},{4},{3},{1},{8},{16},{8},{25},{13},{5},{1},{4},{6},{4},{8},{13},{10},{8},{4},{3},{15},{8},{10},{5},{5},{6},{5},{3},{11},{14},{2},{12},{1},{10},{15},{10},{12},{10},{7},{4},{12},{10},{5},{9},{8},{9},{1},{8},{3},{12},{6},{10},{14},{1},{6},{1},{1},{2},{87},{339},{15},{1415},{539},{639},{18},{469},{469},{469},{371},{539},{539},{553},{523},{334},{322},{402},{318},{354},{354},{450},{371},{26},{26},{25},{9},{567},{661},{601},{601},{18},{56},{163}};
    #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (7052 bytes) */
const char* const cstring = "(\265/\375`Ah\025\334\000J\315\340*H\360\260\272\001\314\300\356\310'\0026Fl\025\260B\224\222Z\260a\340\313Pzd\205\242/S\262I\256\026\025j\222\223OO\034\251\242(O\321\337\306\260L#\3204M\243\211\366\177\036y\214\246\323\327{\\\267)C\222\245Gr\002~\002\242\002\332\373L\206^\367+\232\371\236V'\224\030\226\230k\376\320\353\330&\2658\373\267\225\373\363\354_\375abH\260\340\033\030\231R\3276~\336\034\273\2630\353\025\233\314#P*\324\247\342\247\216\366t\347&\224\215w\254W_\212\365\201]e\372\360\010\246\304\324\267s,\307V\254mn\021\352t\272\332\334d\350b\374\265\014c\317%\005\213l\241+\022m[\210\367\020\016\006M`\252\264J\251X,\325\351\304B\235<\023J\312\224By\337%y\236wb\225V,\357\233y\231\211y\t\021\202\005\203\327\377\344\332j!\233\351;\241.\351T2\205jW\203\010\305\207\023\252\205\270\227aO\004N\245\370\277c\227d\262M\324\344\222P!\257\344b\253\005\203a\376g4\332\344#`W\317l\"\314\303@\224|=\014\366s\014\365w\373\326\357\371{\030\314\223<4=\025O\004\014\346\267\212\030\277:g\223(\232<\321\337\252\345\263\005\033\245P\371\342.g\341\014J\255\243_\367\0133S\2300q\002v\267\311\315\374\273\355\302l\260\333\371\017u\355\346k\272x\"\347_4\321\373\271yA\336\002\350\352\363\366\357\317\234l\311]\206\277\377!*\362~\336\317\305\360\3760\353\260hS_]\223i\363\372<37\231M.\313\333\203\010\227\214\013\246\031\361\342u\337(M\367\336\321\360\3362w\027\020Q\n\251&\245\206\246&t\373[\334^\215\250\311X\306\"Q{~\206ny\275\231\373\277\332o\364,9\332i\\F\300\204\300,+20-8\006&\305\31329^\022\210\366dn\221\231\234\304:\364\\!O\204\010\004/\t\004C)\327\025\"D\210\230\226K\"\351\354\376\263\210\256e/\367w~\226\373\222$y;\307[\362>^\016\0348\200x%\032r\361\372\277\257\326\376\222`0\022-E1\217\374v\224\357Z\236\351\230\32723\317\374\3669v\363\235\375m\273\337\324^\367S\367\0133\343r\371\277\277\353\332\2154\3715\363\212\007\203\211B\242\251\361\3111\014F\2229\274\267\330\025\265\356\371z\361D\365\317\273\237\274\237g&\375Q\223z\366\257\251g7\367zz\314\376\372}\275\311\367\317\374\332x\2772s\227""\235\217]\237w\026\356\231\355\232\373~\035\375M\036^\327\005\t\346\367}\217$Q{\324C\271]/\334_\347\273;J\313m\355\234\316m\"\261{\221D\371\314\207|\354n\324\274\272\314y\346s\270a0T\274\334\223\331\344\244\232\227\333\252\361n\377,u\354{\264\274\377\205\227-\225{e  \020\010\010\345\"\350\373\274\271u\017\261(\346\016\336\3775\237\232\256k\2426\367\250\305\320DG\224\013\242\210J!\021%R)\344?\024\250\322\275\337u\231\320\324%\245J'\026\035-\2666\n\0146\3435\027\357\327\262\236\377\375\346\346\247?QO\022\257\ts=\021\252k\274\313n\216\031A\212\372\026\013]m\362n\376\354\301D\344\3165\355\257\353\266ZW\343\030\233\225\333\277\231\364\361,MR.IE\345\303\271\243k\206Px\234\357y\215\222\271vs\374\356$\016:\227\2247\234\\\217\202\364\221@\034\225\177r\\#u7\t\351\025[\004^\014$S\0054w\350\317l\202\330\276Fr\237u\264\327]\377\316KM\022\325F)r.\257\276\021\201\250\325\n\345\272'\367\212j\227\204o\344\211\226\236+T\013}\250\221\210\364\211\300\024ZIw\354\251\300L\275\303=\216:\177\324\023u\211z\237\371%qQ\267\274\262s\031\231\25763y\336\237A*\036-}M%\306\014\0346\0320\274\357\371\226\350\373L\336o\352P\367\373=/C7'\3141\035\346\224Kr\361<\357\373>\2574\032\211B\246wB\225P \270b\261T\240\351\273(\025\010\246\276S\212U\272\237\211\225R\255V\337\307\372N\251\217\365\225N\254R\n\005\226T%S\nT]\323\352TJ\241\300\313J\261R\247\357K}`\t\004o\252\364\231@\023\212\205R\231V&S\352t\277Ui\265*]\324\251\204B\255V+\020L\201`ie\272\246\017U*\201(S\352\256L\245\224Je:\251N\246\357\004\262L\367c\235T(\023\212O\305B\225J\253\213\323O\027\027\r *%\347\3263\355\003U&\023(\346\336y\357,\242._~\276$\355\267\255\303\374\375C\264\377K\202\301<R\276\346G\371\274\024\313\004\206P_\310c\354\215Z*Z\333\203\331\250\201C\005\036m\034Sk\340\200\311\350p\377\237\311\220\212\217\225\250\327A\33443H\373\357\363y\371\277\242\326\346E\371\355\216/\327\363\346\376\344F}\257\266\357\362n\202\016\304\266\254\037\353\227`g\347\225\236\244b\356\225\233\020\342l\036\271\031\\\355\243\375\334x\320`Gv\243\226\324\217""\332\222\216l\326\322\352\342\322\335\260\002\330\330jSe\306t\226Y\333z\002\251\000TZJ\222\202\\V\223\265E5Q=j*\025y\350J\330\324*\262\246T\221\013ih\300G\247b\365\252\262\216\252\212\n\2526\251,7 \347`\304\305\336\254#kWI\324\236\346\013\271\026\334H\310\215\017\216A\202\016\2214@Z\222\203@\322\021\262\343I\303\234\rw\302\215x:L\320\337\376\335n\024-\n\221\256\205\375`Wf\331\226\2616\206\323\342\334\26475\255\214\004[[O\253\251\206\266\250\212VE\330\206\020t)\366\257*\022\221\216\221\034\236\225Fu\251\244\010-\230\2130\262\363}\353g\355\354D{\202\246\245\221ie^mj\267\322\331\260#,\253\301\316'\007a\344D\025\323Wja\344\006\355\006\327\300\263\363RGT\0175T\322\322p%!;%\331\222\271\315&Z\0236\255\rM;\356Tv\340\316F'c\007\260\036\326\223g'\343HB*\244\236\364\023\262\363\312\235\344T\270/c\001\202\035\332\201\0027\\90'\302\211\250a: \365p\001\347e\234@rx\322\236[\311}\344\034 \330\361\344hp-\031\010\014tx\324r|X\325j\372\264\237\217\266\343c/\333\376\026\216=\307\316\216\263\243\244\277\035\242\376O\363eE\207\250\245\325\272\032w\023\237#\026O\030\205S\370o\035\362\336\241ga\207\350\222.\204:D\241\021\214\216\255v\226\372\363\237\277\366\030\217\235\314\250H\253\235\035\213$\357\330\246\3152\233\230\367\025g\251IT\344\371k\234K\214U\250\360\245\376\033\373\2157\367&:b\354q\035\352h\214EQ\264\205\265\360c2\3648'\344d\314k\336\371\016\315\233\3175\243\226\031\201\177\270=\350\334b0\346\377\3146/\232\332\3342\035\373\374\304\237\363~\242\345\327\"\226q\222\364\030\207\332\334\177\353`\3345\306\336\312\tc\3432\"hB\324\270ZX<\250\210Z\344-\204tn\247\227!\354\036\227\272\247\244\320\230\\\322\n\004\022M]\2432\013s\277\244\375\365\270\311\216\212\241\310\313\366\230\257\247\275}I3?\324\343\350\372\370\322D\3229\032\215F0\230\311\270\275M\227\\\334\274\226\321q\306\305\262{\327\023\315\\j\021\305g\321\243\0345\261i\343f\016\016\032%s\r\337\306\335\201E]\333:\324\035\377\023\355]cS\373\235;\346\"\356\220\231\333\354\331\206\307\221c\331\366\270C4\272=\317B\001+j%e\220z\210\270""\027\316\205Cq\025p?\223|\264\027\026\264!32m\313\216\205\342\332\215\272\022,\206\t\023RP\022\220\324\0276B\210\324cwA\367\200\315\221\220^\220\240~v-:\026{`C\352\331\245t\"\226\005)\245\351Hp\020\244\nF\335j\232v\264c\301a\324\206`\270\305%\332\234\335\007\0246\255\206\035\004\0063-\204]N\212\250\305$Z\234]+\305M\013b7\252i1\354@>:\026\353\310\245\213\300\316h,\210\025\004yt9\253\310C\207s2iC\264\003\254\206\322m\331\374\361\241\001\001\216%\304C\365\220~\2244\031\013\304\\\205\234'\227#C\345\265\312\\\353\315:2\242R\361Z1l\222\006\243\210\007\305+AJ\311:\002\262\032>l\013da\324\221G\027\262/\226\2533\227\007KA\005\231\330\017\333A\025\275<l\00654\203U\031\030`A\013\r\001mU\201Z\023\036\226%j\327S\2056\257\251\013m\211\327\212\262\320\262\253P\273\232NZ\233W\316\225\033\321\000\350f^->\273\007\272\316\256\270\312\335\213\316D\347Y\002,m\315\353\204\335\215\225aOX\225\010Z\213\334\316en\266\262\324\237f\027\023N\351\207CJDn\304\r\020\001Y\274\\k\004\0176v\003@\343f\036\266\20358\331\312\201,@\304#\207\302i\031\n$|P\001\24152\261C\325\004\242W\023\210t4\223\223\316\014\004\210\220\202j4\244\"\026\014i(\347Q\034\017\270\021\234\351\346\325\225\003\037\270\220\334\203\234\003\007y5y\326\360\263\372\327z\342\261\316\200n$.\335\310\252\260\014X\226\025|\360_J\366\200\022`\211\r\300\242\326\217\201\227\314z\262\212,\020\022\002\266\332\307\204\365\253\205\325S\342bG\006\240\352\"\273!\240r\301x\261\021\332O\216\224\241\240\300\r\233\232k\251\tZ_W\326\321#\302\206k\203\325\203Du\000\006X=\334\334\220\251\257\0229\266\232V\033\325Eb\307Cw\201\005\300\316\254\002V\232\232\325\001jI\232\312}\223\325\253'\365c\223\2531(@\223\216\244\341'\027\301@\316D\303\201\220\221\300C\016\027\214\220K;\333S\267\332\246}\241\305V,\321\226\230ig^\355+\246\245p\312\341b7\214\332\321G\233e,0\020\022\222`;\370j\206\231\254\225\301Z\230\t\021\005Y\255 \022S\264)h\332\026:\035\226\204\245YQ7\300\\\200\\\t\316\303\240\005q\014\020\354\234\250\t\207`\250C\010\223$\244\312\241\021\221$I2\034\343""\240\020\034\030\223O\205\023B]\370\001\303\223\tE\022H\3048\014\302\020\220\001)b\210!\214\020I$\020\021\021A\031N:\217\351]\234\236\353)O\025\302\003\210\313\336O\035\022 \365\206\004*\010J\325zN\335\017\241q\264\003q\247y\n\243\022\331\364\245\265\317\344(>\312\241\355^\214v\3333X\232\223%Q\364\331|UA\\\261v\342\2473\221\007\203\347\262\215\366\225\270\023\357\241\317\276\342\353\373g\221N\342B,\362h\372\334.\024D\316\224\221\037\025\030\014E\341\\(\212l6b\256\347\210=6\221\220\300\345Y\303\243\325T\023p\001\303\361\260\374\226!\361;=s\305\335H\2403g5\001d\020\372\337\330g\375\301\213Di7|\257M4g\251\253e\022\301\365+\016\225\271\177xL\365\331\017A\204=\353mw5\240\307\027\277N}\007\244\370\215\365\331\207\240\236n\3015\202\3354u\261\344R\r\267;\346K\373\300\226\213\320\274\027\356U\241,_\363\366\014\027\332|\035\261P\201\375\341\344\356\007}\010S\2234\361l\210\025(|\270v\331X\3010\2043qdu\320\234\361U\2164\300\007l\203\321\337P4{\350o\001\316\347\031[x&\202\037\344U\357\206h\250p\240\264\323\361^\200\300f\023\250XSi\222\036\230\357k]\345j\000\214\320\3604|\3728\370G\333\312\256$\312\330\266\376\220-o\017\324\221\035\016\310\356\016GF\025H19l\222t\347\374Z6\251\364\335\242\367\330_\262\322\260\373\330\260a<uk\026\366\236\213F|\003\225\323x\000?\222\310\215tWB[F\232\264\335\2544\0009\217\361\264\354\314\353d&\364\263\214\007\377)g\224\226*\361\202Rn6!\257\002m\237\205\373V\322\261\337F?s\311U.\356m\264E<\353(\372\270\"\3118l\223;b@\021\340K\230@\242xO`\033(}\201u\241\331\036.\024\312\226\300\001\010.]\241$P?\377\320.\253\333\240\024\277\262\240\342\362\245\305T\031\247\032\376\277C1\004\270Y{\314\305\301\351;B\330\305\007\247\016R\000\200\030\375\356+\333\r\007\r\213\006\260\346\305\234\300W\210\270-\200\261\0108.d+\360K\316\251\217\315\3112\036\345*\250\\\010+o\306i\253\316\321$4\"\266\361\010\025\320:\234}M\364J\216m+2\004W7f\305A/\270\272c\016\373\202jc(\2622{\243:@\204\026\354\013\325U\230w\003\000y\347[%e\030\230\236\214\337\361\304g\212\373+?%d\341\307\221""\026_A\360M\026\227\334\275\214rF\242\212\3235\307Y\007\301\300]\0069\226\0375S\002\256\265\305\220W\246N7\261N\2769\216p]\215\270i\364M\026_\177\242>\324r\300Xt\300\035\004\210te\027\005\323>\n\n\323\373E\332\322\246\263\344eg\355\023\212\330\026mk\003E\321\272\007\324Hc-\010%R\004\327\022\007\262\202u\321\377\353\322\340Q\341\370j\314X\256!\371\002\342JU^\374\226\335\314w\251J\350Q\363\277\315\034\213\373F\342\352Y\340\345a\245\326\212d\303\023\320Y 0\000n\256\3219*\233\301\274\211\027\224\272\354\004\362\335\035\303\246\277\242\316\272\tY\3242s\366\354\327\221\267{\234\345K\n\255t\334\344\023\350\372\026\250\ta\355\251HEq\217<icnoC\201\334\216\024\217\231\032\017N\375\027+\253>\203\002\244\262(F\3650\223\231\326\3212\334O\261\025D\247\035\275\"\036\336\214\320\2663\323\275\225UtL\207\207Nt\3372\3152\240\037p\261\242\310\347\371^f\224\335\030\207\234\350\216\231\357M-\036B\031q\037\255\3632|\201\013\275\202\337h+~2\t\316P,\274V\216\302'T\202\351\237\204\016\274\347}\312\241\024\344\225\255H\347\020\177K\321\260g\357[\325|TM\023\351\226I\266\233\003t\371\365r\346l?\271\320,+\"2Ug@\027B\366*h\333{\320\030H\030Z\260\246\246\\\223\326\365;\337\371\225b\353e\261p\241\227\r\367;/\241\225\354\372z@kB\261c\366\220\360G\000D_Z\270\320e\353\203by\330\200BE\265d\233\254\370\317Z \215\222\004\303\032j:\007\250A\013[\2776\347r\207H\335\357=\020a m\202Q\373\030\260\266\234?\330S\003\350fK\355L_\230\366 \257\022\247Q\002`Zb/\250y\265\372\002\240\325\245\265\320\014]\313\247\322\325\353[<5\225m\035nb\311\310\220\n\t\270%?\230\341/\264%\261\367\027\247\326\217.\224\203p\231\342`\245i>\266\000\200\330\274$/\271C\232E;F\247H\220\306\234\255\330\325#\001\207l\n\022a\227\037\375\206\021\250\"Q\314E4\366\302\3339\366\0363\352\301\"U\310\233i~FE\n\361\001\227'\277\272{KG\227\024\023\033eCo\373>\013\204\2409Q\033/.\177U\307F\032\017\n\261\250\020\020\010{\252\353aY\002NK\001rM\314d\227\177\233P\206\010_\030\001S\356\n{\332\265\326P-\202\357\227\250\216\003Fy6\261\351\321X\222\303\007""\313e\007\223\263*\3020\321,\257[?,\0072tO\235\311\035\351t\313\023r\254*^\322\312\341r\275U\372a|5.j\346\005rw\246\032\206\277\035J\300\017\013@\200\027\002\254\010&\234\204\330\345z\300\017\005\257W\216\275\321\241C\3040\266\223)\214\002\214(n\225\343\\\350D*F\324\020\n\271\236\260\205\n|IW\002i`\363q+\207\213\023n#\235\213`\276\311\315\025!\335\305\271?\261(\330vM\007\227\227\362QK\273\326Z\216\324\245\273\356\372N\0261u\300\270\\M\335\352\327x9\340\220O\232\026\255\205@\225\260K\024\021\211\310\231\231\014/\250D\366R5-\215\027h\030 Uk3L\302\254\367\255*\307\252\226G\006\255\224S\210\265@\234\027EF!\212P\322\216Y)2\024&\222D5S\3260\262\236T\222t:\177yqI\263\217F\341\246\303\307\006s\226\211\212\312\000\227\004\001\344\367\307\310G'\206}\313N\307\373\227\301\204HA\304{\021\263G\230(\t\227Q\354\235\001>\227\304\275\233c\255\230\271\014%\373\343\256q\215Y\202\2420\275U\301\325\275N?\013\307\243\304E'\215-\320N\203\3026a\270\332\217\263\225\374\271o;\265=\002rG\303:+\370\343b.A\341R\244\1777\377l\220%d0jg$R\344\327\321\177\243e\220\010\212tD\322\024&\21580_b\255Q:\210\3720\234G#\371U\333F\357K\256m\345\235%qy\216\333\024\357hN1\235\272Rz\033&\326\351\370\202\200\340U(\342\262\342\\\361\031\2200&\017\251\225P\177\336\300H\000\334c=\215\205q<Y\230\3408O\200\254r_\210\017\353\370\200\226\226Fvh\315\210\270\3260I`\211Y\331\000\232x&\255-\033x\273\302\002-\240\306\267\260O\036h\341e\033\270&\021\022!\345\237B\004\371q\341\016F\202y\220\034\322\026UC\226\010\203]$\230\004sA\\\017y\261\373\022;\221\217\333\371\210\343\262\221\262\330W\242\370C\200Q\3574\356\323\"\215\222u$\025\245&\022\017\362\233\345?\204t\224\322\002\324H'S\306e\211\033n\354&\274\255\021\032\217b'\353\023m\306/r\037H\024\202S\243\001r\3507Q\322\350\300n\322ru\007M\205\377s\314\275\313\3370!\321\020\t_52]-\334\247\223\200\241\336\210\312\013O\342\025\260Yx\353+\267\365~\217\003}\374(\222Kh\206vd\310\370\216\333C\222*2A\242h\363`\036-o\313\367\022-\002,\201Ve\3403\335\271\325\314X\347N(\271\007G9\206\377~pk""q\013\0203.Z\324\017=\335.\214>w^=\245\021,\211\010U\360\247;\257\207>+\263\031\307\001\036\375\2173\311YC\274F\223ky\255\234h\317\250\013\271\251l\371\304\354\363\303\231]z\374jJ_Y\226:\256]g\247\030c\000\205}\250\036\336+V\274\350\2767\215\364\301\327\314Q\001\274W#\333\370\354\033\304C5\336\325\261PU\022\205\347X\304&\336M*\330\306\242\007u~\213M\000\206\372\243\305\016 \236 g\271\270\301\036K\343\350\025\327\350U0\305\001\216\306+\205.&;\251\0136\243a\273\002\320\014\001q\316w\263\372Cf\014\231m\344Z\334\263\374\\\016\221f\031j\245\300\353\246\306\317\311~\232\303\211\031\201\314R\205\034fI\016@\317mZ\026i\307P\365X\024\376\030\tB\370\230g\242IV\304\345\243\321P\245G\264\210\360\341\002A\202\232\242\330.X\203\257b\312S6\362\332\233n\005\254y\263U\226\204-G\204I\277\227;Q\346\177\270@t\224\245\320\037\234\263VB\324\310\033\310Q\336\2707\034\234\350\007\265\210\n\341\243\300*\204\007\224f\343'\236DvA]0\305\261\320(\272\205\232\217 7k\340\225`\353\024H$\272d\026\275Y\351\205]\023\364\350A\356'\3758\200\007\035\236\336\357\035\237\220\026\023\332\257_\r\342\036\304\362N\334t\246CS8\034\366\2073\344Rm\325su \r\007\004\034\372\261qW\245CNX\323\276E\314\177\325q\252\314\026\275f\271xZC\3014(\337\277\221D\322kDF\010k\305\364\205\035_\266|\326\r\212}\270&\354H\324\n\rr\372\305\311\360\244%\353g\021\310DsN\\\2567\361\250\250\\\243\2566j-\267\314\244\327\347\276\023\225M\364;\332\301\002\340\376\0101w[\2659\301}Q2\210\220I\263\342\227\333O\020\014\200\306\266\212\275\231\305\277\032=\3205\261\030a7j\362\014Z\256Mk\344\347:y*\035\337Un3\0049!<3\177G\036\273h\022\224\216\230\251\311\023\236[\245\201(\340\333\333\211\301;I,m%\025\356\310\242\202\003*\365)\342\226T\270\355,\017\272x\230\326N\214\321\002\3742\203\203b\371\233\331V\277/\212\261\244Dp\325\005\250\303\305\032\212\230t\332\324\306\321\024\227\335\271\364\300T\355\"\005\310I\364\335\007\271\215\267\241k\263\025\267\302\024\360&\254\227\232^c\240\312\\\314\311\245\353\307;\374T\242\234\0135\203(<\366<\177s\375\223""\231\207\264\373\226\035x{\330\357z\252W\204\356\267(\316\377\203\022\221\345\\\326\334%\020(~\245\306\025\344\"\360\345\211\342\r\020\2170(\032\256\210\347g(\224\226\024\247\243(\310\247ZC\302\256r\211\317\341\307$\260\\d>?\035\006\266a1\360\220\370\265\002\014\276g\206?*6Y\275f\256&\266\026\016N\250\333c\373b\202\017s\006T\035\341\022+?\020\240?\340\016W\232&$\272S%f?\334\031\330\302mz\237&A\261\244\032\006@\241\245\271\317\2258\321j\033P\025\177\216\305\010\316\317&0\211=XrJ\253D\n\000\256c\371\275\307\002\005\337\265\222\231\351.DOr^\224\215\337B'`\351/\334\n\332\372\007r\337\241\027S/\266\250\254\313\357\346\352j\030a\024\217\206\230\3039\020@\022\235\240H\254\347\352\300Pw\375#%\214?\273#\332\2172\307W*\275p\032\314\3030S\026B\364d\344K`\211|\364'\237\240t\254\375ps\340!c\345\251\032M\005\371\361Cd1M\266\372U\364\223\306\326Fc\230O^\330\260\265\203d\272\314\372\212w,c\233\032\307\271\0374A\222\221\r\340\317\353\344\355\222zz\224\221\361\207\205\250\257j_`@m\347\033\037J\031\275{Q\276\306\302\340\016Mj\325\202JE\245 $\363`\361\002_+\324\036\230I\374\331\327\025r\224\375W\342\344M\023L\032l:\260\t\355\002'W\353G\222\205\000\316\326\356Z\n:\372\357ii\2276\236M\177I\266G\252 \253\032\220\004\244\332\227\025\313\245u= \236\366Y\326\\\000\277o\004\020\242~\334}vn\314\211\000l\311\177\225\362\036'_\253$pPik\221\376\353hc!*\027\237\002\362\333\005\357 \224}\001\324\003\365=De/ ~O\263\262b\274\370\225\207\204F-\230\207_\245G\010\\Y\255H\2579.\254\232\227(\016~\312\277S\016\242(\0049A\313\337\3765\r\007\206g)i=.A\272\232,\300\362\235\251\322\0339\211\307*e\350G\"\306K7\322Q*\366\007\320Fd D+\234\234GP\360\312\204\317a\242\027u\235\205\262m\312\231\237\251\363\210k\347\362\253\271\002\354\275\225\026\353\355\307H\214\032\236\271\017~\261Z\2427>\257\246\342\265\312Td%\317\225\226\001o\3279\237L\225~NFZ\224\236\374\323\233@ \202\245\013\316\232\350\234\323\001\367[9\262w\213y\335\004\255rr0\220\201\001H\231~\246\022h\346\016${VV\221\245\031\227\312qd\255-\375`\233\027""\\EG\351p\003\016\027\035+\005\010\211\035i'\347Ey\000|\270-\007F,r\252\312\342\261JaB\372P\334>'\340\321\215\t\033\003\217\034#v\024{\242\275t6Z\215\321\230F\037G3J\302\250V\377+\347\320\212\304\240\034D\033\340\371\324-\261\230\376\016\300#l\342\006\326\272\037\2701\340\361\350\222U|\034b~\310\201\207k\350&\362mI^\033Yz\034\270L\210&D\347 \376\021\341\235B\335\2506\365\356^\205\204\330L\324\250\035\365c\005\243\032\327\264\0373$\207Y\273\265\211!\273U\352\234\242\200\254\025\021\260\0325b\253\326[\203\230P\212\241M\361\256\364\3555\teb\335D0\275\221,KD\351{b\372\321\005\207xvr\377@\033\272\2407?.\252\377\271\340kT\252J-\362\207\354\2709:\334>\215\243\331\203\207\356\330\325\2007\016FD\260\331o\265\223pJZ6D\331.\320\016O\266\240\t\253\336\347<\034\300n\025f\001*\021~41/=\255\272<\311n\257\362\353rK\312\257S\231_\3060\236\226\373\004cB\264\030\r\267\000\277\234Ns\242\006\317\334K_\355\023Xx-\201\\\300%\331\024\275^\202V\026j?\332t\370\304\350\211*&_k\006\036d\203\2572\013\\=}\330\301V\001}*\307\231yH'\270\362/\017d\206\365\212\367@\330\370\220\006\233\347_\262\217\365\370\366R\255\363\352Io\370\255\325S\360\264\370\022\333\323)\025\314u\214\277+\3462\222\213\344\026fW,2\34592'G\341\343D\006\030N\217\240#\247\203P<\312\2510\006A,\200\030@\242\310\226\207\005a\212\344'\246h]@#\366k\037\000\003D^\222\302\271\037\203\r\314\270\227\037\376\345\377\014\nY\211\346hFS\362\331\364\336\r\341~\241k\271\010\224\224\\\2721\030\017\244w\245\234\036\032\n\324vG/\017\351\366\252<\312\\+\301P\014\021\n\025\324d\240\006\234Zo\006]\271\256\202\000\210\374\210\264\356Z:fN1\024\274X\2436\362\020\302yAw\356\203e\202\367\353e\266\246.(x\373\\4W1h>\243E\2010g\036\3672\320\r\0269\205\342l\273_Y\350mn\177\036<]\205\246e\307\365C1Z\334\3550\342\007|=`\177\002\220\211\204\352\265\213\253\371\231\215\343YA\025\r\201\232\276\326\235\367\322\177\2202\211\022\203+/\000\2233\222J\004@l\243\244{\001\027\203\376pM\303\314\230 B\013\224KE\372\030-\337\311Tu\226\255\214s\013\351`K\274l\225h\262\212""\250\006m\363Q\307\2173C\035\363z7eDbm}\307\204V7E'\037\207n\346\\\366\306cV\"b\232t\257\352\237\030\001\002`\276\210\326\004\242\350\321\242\375\267\310\361\025l\016\317i\347\rM\346(\366bM\001\376b\223k/cg";
    PyObject *data = __Pyx_DecompressString(cstring, 7052, 3);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (7097 bytes) */
const char* const cstring = "BZh91AY&SY\377\202\323\334\000\001\337\177\377\377\377\377\376\377\377\377\377\277\277\377\377\377\377\377\373\302HA@\300`@@@@@@P\000@\000` :\357\226\236v}\2003\327\326\367\274\370\024=\363\316\267u\325\256VH\372t{w\257\273C\326\276\201\317\263\256\331N\357s\323\351l\237F\245i\263\000n\307JtUi\\\355Zwe$\036\352T6[\342>\275\300\241\256u\354Y\364$\220H)\352aOL\322\233\322\r\030S\365OF)\370\221\244\366\211\350a\244Pi\246\231\246\220\364\001<I\247\244\320ha\030!\246\232\004\241\000\215\000 F\212jxi\023ji\241\352\003F\200\32022\000\000\006\200\000\003@h\000\003LBP\322\220\315=S\323j\215\003#\020\033S@\r\032\000\r2\000\000\000\000\000\000\000\000\022jD\020\205'\342\024\374\232S\321\344\312\233$zj=&F\3232i\t\345='\250\0001\032\r\006\2004\032z\215\000\0004\010\244D\233U=OA\242?\025?E=CC\314\231\024\365\003F\324\323\020h\364\237\252y\242\232\001\246zP\000=M\000z#\023O\024mFA\022\204# M4\t\211\221\223F\223\t\251\264\304\247\251\3502\023&\231\030\232=#\324\006C@\000\000\006\217S@\034\023\033\215#-\\M0\365\021T\333\214\355n\334\251\330Z\3075;\351\346\035\204\347\236\254\216\230Pb0h\227\307f\377w\261\016\373\235\325;\315\333\336t\371\262I#\227\203^O1\350\364\210\376D/\351\037\346+l\013\026\243\375\026&\010\336\352\324V\327\253\206\031I\010\332K\254\211\200\230)`/O\372!\010\002\007\342\004/\000/\274o\032\215\002\203\377\300\337{p\255\340gp\014\000\275\250T*\340Op\367\001\022\010\010)\030D\204\024\210A\223\022\002(\210D\304\022\022%~\\\271\265r\014.\3736\363\301\364\\s\336.\023\320\342I\035\007\243\235\334\346L\257\335\231u\352\301\032\337\254ue\340\313#X\310Zr\266v\207\330\2232\273\366\261d\202\242\241\233\002\224u\352\314\236\266\2370\265:\376;\032+80\261F\tJL\251\027\230\2403\036w\245\237g\332\361{\372\323c\375\262\255\005\345\350\215\276\366\021\231\224E\325ETe6T\344\244\224s\340\352\335\233\236\302\014D2\301\337\376\275\333n\276\337\206\265\354\361\373\020\006\235Bx\236\260:\374#\342\220\220\220\220\210\242\212(\242\212(\242\212(\242\212(\242\212(\242\212(\242\212*\212\311""\001d@s\236Z%EW\nD\"\006\200\237t\327i1\204\363\206\270%\372\355\n\200\214\303\005\3168\214\020FI$$\370K\325\014*8\201\005<\327\010y\264\212b\216\265M{\031\010I\201x\324\254\224Q\273\316X/\260\210XB\255\315G\001nmjR\204\245$\226!h\032\200\310=\343P\001\351\030\230\336g\023\350\216\370\353\275A\014\0069`\216\tQ\3106\002.\330I$\304\014\310\006`2\020\316g0P\274J\256cO\274\031\300|\330\342\030b&\367\323\035\202\031\205Wp&\370\231\324s\271\303=\342\026\035'\t\267\330+a[\31064!\235\013\032C\337\300\027\n\234N\261^4n\025.\314\016\2478XM7\\\351\032\005\020\304\220\267\"\240\013\336z\376\357\213\363\341\353\217\323\364\350<\377R\241\326JH)\005\223I\002H\331\027\363\343\325\261\2568+B%Q\352\347Z\213a{\312\327\307`\207Nu\016\327\255\326\207\362\353\351\3611&f'\343\336\234\372\321j\323\035j\207\227\307\236\203\312u\264\274\363\247\255VK\200\355K\305\267\271\211\30310x!\004\366\035#\276*\302\325BSb\\*\342{\255\313\361_v\304\310\266\201x\264\270\357\226_p\235\017@dh\316F\205\243\177$\264\020X<<\244`\023\\\004\002JG\026\223V\306\031:+\001\302\234\035\t\34286\022\317s\235\304n\333\243=)!\270\006\347\016;'\247\221t\272\271\004\346\212\236\367o\244\234\376,w\001b\214w\031{\21166\273\342P\303\002eg\261L\212\016\001\237L\300\231YR\300\177\004\025\355d\006\205\327\031\014\201 K\357p\304\261\245RH\021\204C\352\363P\251$\316_S\014r\246\031b\353 \207\007!B\353t\305Sw\336e\267\302\033\370\201\302\341 \224h\217h\035\235\222:]\313\345\243a\255\255Kx\205D\336\325\356\310\317v\014\247(\346\031\320\326\330x;n\343j\2626)8<\217#\324\013\320\022\030\234\206\244\317 \247\203\234\\\257\264{D\204\306\216\003K\013e\202d\312\252.Jt\360\272\244\300Z,\277z\365\320\251\241\033\337qe\356\200I\014[\274\246O\340\355\007[\212^y\3742\364c\255\263\251\246nl\260U\007\243\240\347\274.R\230\312\213W\257\206H\007H\210\375\225\324U\327].\322\021s\266+\321\272\330\347\024\022\365\313\303\032I\212O\0076\313}\342\211-\236\232\356)G\0360\371*9a\006G\177\010nt\313m+\220\362\305\234QU\264\031\032\223\326-\254\375=\231 ""\314p7\275\335v\247\240\2529u\014=W\"\\\313\033\003uqA\215`\323$3\265\264\0058\314\016q\271[\300F\242\253.*i.&\303\354~\310\264(\314\245\333\363\203\027>5J\333\300\351\254\354\204\372\\\373\325\260X\325\256\3440\333\014dV\252\317&\226\2722l\005\302\031\276\311\021\203FTs\222P\243\224W\314\203\2109\232\023\275G\032^\350MI\030\035\202\220+F\306\245\364\274\337\333\2674%1\317W\202\373\033\252\2653\265\222H\256;\205\036\231\276\025\n\027\327\322L\237|HBkN&\216\2356\377\010\254\275\361J\222\224A\326\260\254\n\312\002\311\255\220C\322@\267\240\213@\323p'x\263\211\221.K\201\210\021\210c\203d\246\261\302\336\214\333\337\2366\372s\372\006\331[\2314o\317\302\363\220\252)\233F\361\250\r\346\301\210\355\021\035\303\200\230#\201pm\276\365\013\320\262{FG\336\037\252&)\222^\270\256#\213\220\032\n\234.\366\316\016\361\221n\002\243\270\032\371.-\002\364Cl\2211\036=/\"p\357\241u\207m\334O;(\372\250\320\345\314\330sx\370q+\234s\337\302=\210\226mCT\304\206\313{\265\256\252\221\312 S\247\n\315vZ\264\266\265m\303\327\201\273\315!a\230k\030\352\256e\216O+\217\325\354\367^y\244\346F\223\0163\2256\264\326\233\230\326X\231,\370i\317hE\257o\013s\211\222_b\340\3607\367l>p\363\032\027J\322\016;\013\356n\377n~\315\034W\252=\336\317\02527\364Oq\224D\367\375K\310\335\326\3748E\213\374\004UX\3422Pd\034\222\252\010\006PSdaq:/ \365\200\026\377\202\332L\351\240\312\207\227\324\344\335\351}6\327\363\270\2164\336\355\360\306\324\030X>\241\334\363\001\262d\010\357f\031e[\303'\221\227V\3635\016\211?\206\323\301\355S)\360\243#\251\231\263\313\374\332\215\016\035y_\267v\233M\375\353r\3746\323\177\322\345y\231#=\317\333\023\253\251\353\360\020\237e\240m#\372\274\241\334v<\264\262\304\337\014\244r\246\275\233\336\271\316\223\242\252\256\351*\223\275Z\014Q\254i}{_v\024\276\327\333\0057\342p\323\346\274\347Go\330\257\263\017z8\373\351\345\336\202\265\211\250\352Z\360\336\303\004\350L\245rv\352\312\365h\254\260\253\010\n\025\317\205\213{\337$\344\242\345\312\352D\253<x\343\2045a\234\226\317\340\2274\014Ej\017F""\324\214HdtO\321<\035\036?/\337\024\351\210s\305<h\005\245\240T:kj\241xrdx\270#\276\330\340/9A\312e\206#/\255\236\256\221\246\331y\031g\212:\363t\357\214\237\361\004\310k\022\333R\365<\346H+\206@f\273\007\211\215\212\221=\344\004\253\225O\026l#\320\037k\202\325+W\305\344\362b\202\321\256\224\340*\030\275\327T\363\210\034\322\036t's\262v\252\325T\224\323\200N<\"\004\275\212\"\010L\t\345\222\301\"\010\026m|q\274\302\310%\325\261\013\023\263\263\256\030\212_\257,Y\303\236\332+0\311\025M\314\311\230\240o\345\013N\215\361!FB\214nv\211\242$a\302\302wV\373 \2415/W\252\022h\266\"\276-\013\335f.\262\222\233\346\304Y\215\0015@\313\357y\2777\250v\300\233\037\007\014\363\335\240\330\030\351\2549\272\021\212\364\361k\316\315\0054Q*l\305S\347\273\350\213eU3\033<\312\333V\222\300pG\203V.\0249\266z\241\314\336B=t\243\022!w\t-)o\262\255e2+R\233\342\376\026\333h\315a\2757\033u\034\377\013nCr\027\351\242\3277\277-tz\275\333+\363\247M,\243\364\313*\231\250g\302\352\323\013X\3410IT\233\236\224@\345x\016\347/\321)\271\351\027\270w\021\013\260\2731\332e\231\243\341\264\035\273t\3438;\244A\004\333n\204\350<\306\351\331\023d+g@\305u\313,\335\tA\361q\234!\336t)\256\257#)\217X\034S\2174c\347\035\005\341,\033\225\225\250\365\254\226Q~\nMd\204Iv\250E\241\305:\223\313NX\033\323\024\364\366\005&\203\032<\3307;:\275{Z\021\211\254iP\266P7\335+6\325*\352\375{\311\007*\221\220\260\316$\363\205\222\217\223\321\225\217\252\t\353\252z\230B\000>\334\002\224\243\031\276%\256/\365)@J(H\n-e\3130\314\226C\302p\"\217\247\010\243ay\010\305\004Y\004dA\200(1D\006E\010y\216Kv\341\277\303\007f\014\240\030\353\001\267\"\254\262\270\216Z\231\3500fJI)\001&\223\034\331\nbJ\203\r\246\211:\177\250\240D@\222\363\306\230\"j\241B\220\360x\000\247Q\245\3111\003I\261\300\300\336\334\322~\340Sb\266\261\314tq\317B\376\246\033\0005\001UEH}?\016\27746\333\034h\342\026Z\207\251\214\356F\344\204\363\233\021M\202\273\r\231\336\004z\036W\231\310\377\036\351]@X\371\220\031<\344\350b\245)!UC\266&c\013\327l\327\257X\334\037\231\037""\263\373\370v\301\310\341\240\256\364$\014\235\316\346\222\274uM<\032\024\016>`0\010\234O\2277\333\271R\034e\026D?\216#S\252<\n\236~I\214\236\3656\230\255\314\306\254R\356I\311\321h<\230\323\210\266\376\025\343N\200\350g\316/Ll\n\013\2002IS\303n\177\274\013\260\207'\021)G\261y\242\"w]\334\023\324\330.\364\204=\003\237\000\202\357\205\330gR=\220\331N\036KNIo\216^\242\214eo\"x\366\201\264\241\260\003\332R\341\334B\265)=\252J\224\254\255\303z\215\230\202\027\010E\030\010\217G\211\363\300\3018\375\225*\007\211\315 \022I\224\376H\206\327T\000qO\214\337\313i\223\2229\006G;\364\227\247%=\320#S')\t=\330H\310C\326\035{\232\353\343\003`;\023Rb9\311\317\347\243\350\343\330\206\246\306\030aR\336\345\264\231;\217Z{\034\200\356\241\274\033\306\017\032\036\264\270\315\202\006\360p\2334\213x\231dd9\005\217\031\341\035\340<A\244\271\013\341D\"\206v\264\017\302\007\313s\362\313\t{yCy\307g(1\016~s\177\346s\366\351\031m+\301\300x\216\r\306\302s\342\006\365Cs\372n\200\1776\t:!\361\315\263:/\247M=G\007P\221%C4\212&H\0345\327\315\nC k\3611\236,E42\325\0208\312hF\350\3448E>[\263`\032\024\211\033\257Z\274\347Fu\353\300\221\213\027\3738\377w\267\324\225\251\317Uv\035\007G\264\030\026t\035\311\312\252l\340l+\307\3141\305\204\222\016\rJ\374\375\025~\034\244\320\327K\3663\267\005\204\337\322\006q?\0036\\\332N=\324\372\365\275\326\226(\336\321&!\206YFo\272\324\3513\231\334\362$ES5\n\271\032*@U\005\203#r\261d\316X[\252P\3314\220`a\233<\314\300\320j\034\025)\031\3135\270q\346=\307\263\245\374\007'\240C\317\020\376\230h\367\\q\230)=\302\311\366\305\342\233\226\351\362'!\206\000j\230th\217~3M\311\227K\225\332\206\3545u\213\023\215)\215\203\260\240\367\315zr+\222\343\010\020A\t\366\330\025~\342\242\252\024\213\343\311\"@$\026\21770\367\252\251\376\336\326\310\006Z6\024P\326nM\245\345H\335\337~]\001w>+\274f\023\247\305\240\360\030MP)\035\342\220\027\335\271\036>\243$9\371\242F\300\205m\020\013\352\214\230\237\224\235\354\310\013|\020v\0251>H\245\205\3540\304\277\314!P\347\2158\216\016+\031\250\007""\306V\354\306X\003\233K|^\273\352\377\225\017nu\252H\252PCo\243\227\177\251\032\353Uj\255H\272\346P\331\226z\314\2252\321\246\"1\200\244\020`W\246e\355\342h\363\3565\200\250\204Y\022\225+Dl\032\221\2134\313\257zg\002\225CQ1gD\204\221\"r\221D\327\034\215\034<\2203m\205\355\241\"\270w\210>P\213R\033\216\232\001\355=\007\2721p\316\336Q\240$\205.\274~t\332;>#\351\340w\262\362y\354&p\2046O\255@)\2445\\k1j\023D\240B\325H\013<}\307{\314 \030vZ%\366\003Z\310\310\273\306\250I\027%\016H?\335\027~\267\367\r\372W\342\242\0311\340\233\rU\323\013(\312\231dC\321\356\366\360\365\n\217|S\255C\251:Q\353\177\030<;<\363\206\001\277\270#\344\251I\000\301\000\236%\267\006\220F\016\2540\003\026\257\024\307\014\000'\260\332\\\272\003#\366^\276C\311`ur\204\352Is\331\017\030k\245&\313\254j\013f'\252\022\344h\354\236\273\253\205\332\032'\001\207?:\363\200s\371\016g\326\035\311\324\035\2119#h\220\336\263\304B\227Bx8\300\017`D6\304f5<\013\016\250\221\232Wu@\"\264F\223\246\250\3455\024#\344\277\306*[R\025\230\322\030\037a\340\252L\205\321-\231C\324B\216\263d\315\032\326\266'\223\247f\274\rxPJ\0213[=\333$\264\307\0013knzK\005a%\303vn\341\366\253\220h\304(\206\334\235\225\313\365\021\242\334\"\nd\327\342\004\261\271\357\241\271\232*\344x\321 \0279\031\005U\264<\230\321R\030\037\027\016\260]\343\340\"\366$\304\264\020\035\000WV\246\325,\235\020k\t\214\304\353\270\363M\265M\256\0200\0205%\233m\310h\327+\244X\251\222*\221,.D\2017\310d\223\320\230)l\205\351\257\216h@\253\332\010\2008\211\r\004\210\367\271/g(\204\226\tA\361\326\2563\266o\303\242x9\266\264\244\030\260Yo\242Z\245\343\002\014\n\"\242\241\2038c\217\t\242\212R\261\327\261w'W\n\t\200\363\361\036\263\260\364-\357\2154'(w\010C\356I@\220B\022%yj\332y\016\224\274\370\203\303f\326\n\206\227\367Q\330\002\250\253\305\316B\345\010%(^\032\022!{pa\362\346\177a\210\343\236\226\373\317xj.\001\252\365\317m\034>o2y\207\223\324\037s\346\344\360\"\3434\224j?r\324\004'\006\2606Ii\327\025N\3160pGVU\177\202f\307>\241\212\000\316\022\365p\234`2R\346\217h\340'""\032q\234c\307g\213\227h\035\244 GU>)B\277\024i\270\242\205a\025a\177&W](`\205\252\354X\210P\230\360n\033'\214l\020\332\307\214\362M\021g\016-zj|\232S\273\317B\370t\211iC\305\332\036\020\315~)\234\313\321\336N\004\273\274q\006c\004\315\251+\226d\263\253_]6\t\360_\210\247\275\006\332z\271\026\301\022\330\227Q\3561]T\311G\342\336\207c%\251Q/\301\261R\245\023\226\306\r\345\362\346\304B\3616\352[\261\253\343\300\271\214\340\341/\273\211\315\210\262+\026$D\0303\314\022pko\034\363[t3*\024\264\324\244(HA\241\002\016\273\303\272\363\032\026\376c\341&\365\350n\n\267{$]\213\260\206\037_\224\314\252wz\r\352\035}GX\373^\320ju\305t\347\341\331\237:\356\264\014\304|\254\245u\225\361^'\224\324:\237/&\330\300\r\020\244\331F\210C\236Pd2jV\357\251\335\037\267\333\203\264\345\337~\n\231xy\014\304\204\030\225\240\245\351v\273\222\32453\220\273\350\031\273Q\323\264\314\261\030\305`y\025\312\021c}Na\233\356\372&\255a\327\343\no\357\027\343\277\212\360\325h\227\026:\266eE\341+\303/\266\321\347\004\317zvc\320Y$t5\026\203X\222$\032,hZ\005RT!\022Q\331S\0349\021\314a\2575\034-,\245\341R\023\311\211{\013\3608n\317\365{\206/\223Vc\210\370O\217\307\275\260\217\276@\016\026\205\0042\306\373\240\241\3040C$\3647\367\373\351\327\314K\322\2631\315\367\250\252b\241\246\341\251\016\004\230\023!\203\335\324\320TT\001\202!\003\266u4\007m\0038$\335\243w\317\374]\035\234Y\025\330\206T\241B\2252\2626\245Q\251F\223m!{\215*j\273\n\320\211\010\244`C\002)\2317\2545B\316\021L\331\343S\250\200IM84\031r\346\314\30324LT\245\034%\242(\214\206\363%\t\006\002Q\000\242\213\022\205\201HwbbUK\242\334O?:i\352\243\335\205\006\350\024\016\267M\3268\000r=P+-u\324r\256]\241k\321v\343\2379=#}\223Fk\213b+#\006RZv\006\t\261\323u\230\306\024\300\246\007q\rq\003\323-\360\347\206}ho\251r\027\266\023 \216\255F\275\000W>\251\234o\2715W\310I0a$i\013\210$\240\3551\330s\032\356B\004Ce\031 M/D\t\220\023%BF\2432\250\260;\227\035RC<6\330\352q%\2715\326\022\242\374A\0244\023L\003\206\003\356\260\354\017a\276\207\000t\224\371\020:M:\315\200""\034\npA\014!}hT\220oh\3368\224\255L\006\016 o\215\341q\356:\257Wk\301\316^b\354\364U\260xw\215\226j\346\245\220&*R,*?\202\206\364\351a\014\301\n\205{\257M/;\251\022\323\300{\021\362\363\"\373\001\225\033?C\336\341\201u\367\200\372\004\260VBI\007\270)f\310\302\240\252*\357fE7\214\300*j\020\331\303k\000@e8hX\n%\364o\371\244.\335\213\357\221\010\221!\332\245r[\230^I\216\251\202\035\r \265p\244DZ\336\231\342s\t[\251\244\276\236[_\242\230^\310`P\304\306\317QZ\204\302\352\342\315\372\206\222\362\345R\202\273n\033aC\237\002\345\013\024\320\372s\025\263\241 \352\364\236J\007\212\264\343\211\341\274,d\255\010\252\206\300\260\372\023kZ$9\203D\232\3052\266\240\220\223|\356\013\010M\267\2669{\374\375\327\243\340:5\031ME7\312\232\010\032'F\253n\344\014\006\242\310\022z\326\024I\316\254Z\022:\220FaHF\311\013E\204Y {\203\231#D1DPgq\312i\027\020\200\254\306\360\207\033D\271v\367\246\250\221`\347\020Ap\275\030r\260\213\313\212\313\241\032\260\241\007\n\2049\363A\257\311\007\273\022\257\224\303+9M4J.\260p\357A\277\r\231\003\266\025fmXl\304\\\331 \353\255F\314\200\326\253\005\251\255\243\r8A\243\n\036\244`\325O+h\322\2367h= t\201\322\360z\016\036N\337U]\362\263sA\337\344\335\262\341-\311YJ\033f\010\363\203>\270 \262\025\233\341\321\353\036ub\356\026|\332\030B\234\322\201\232k0E\257\2734R\304RO\035 G\275\247#\034\327_\014\255l\326\356ish.\02500)q0\232\362\330\345\200\033S#5LID\222\025\212\031\243G*.iQ\004\210\301\025\261\243\r\254uX\014\246\314T\323\243\024\241\354\302\202\n\310\367Q\206f\004\006\266\005^\017F\265\234%(I\002V'\252 \024\302{\205P\270:\211\234\205\346c\244\325N\375\rf\233\312\232\350\347\336\244!X0\265\032\222G\001\271iu\3656i\023|\357\347\303\002\nb\356\364\311\204\330QC}\224R\324DA\210\216\305/b\240\344G_\"\"`\007Qz\352\r\013t\342\356V\242\020\207yD{\310\t\332\035\367\277\211\264\345\360<\207\326\260Y4\233\210\3007D$\206\036\254\n7\337\177z\313\303\306\372\326\336#D\246\336\271<r\016Nhd\244z_\341\323\264%\311\224\214\336\004\014\020\230C4\327\230%\317\030\223ut\361""\023\333T\3725D\355*\212l\200\240m\313\304\035\331\246\035Q\306\221/C\214\314P)J6l\226\305J\336W\344\206\212\335\233\313\264\352D\016\256\256\000\354\326\353\214\003@E\036\215\307A\246\333\241\200\230t4B\254$H\241~\241Q\324.\255K\250>\353\300&\270\210c\342\360\300\267\273\t\005)\273\316\235\314;\345\345i\023\222=\322\264I\r\305S\202\007\304\276+\207\250\023\213+\324\3650Y\020\356\027|\031\350\234c\304oT\346'\020\334\234\205\340Vx\364\032i\224\300\361\276\3104`\"\004\265\014\035\301\355\273\237\222\302A\002)\"\301\210\252\260\204c\007\363\010\236\031\361\t\352!\006\217i @v\310Y\000-L\325\014\327\200/X\200\205^\244x,\207\213`\204\017\330\252\252\263\246X\204%\247\300\274\t\335\"\3061H\210E'\321\362\316\367\240~O\336\250\242\207\265@O\320\023\312$\203\337\372\246*`\262;\020=U\025\205\004\207\246=\023\262b3F\220H\267\206\252\002\204X\312'\325\264H1\204\371?\014$?*A@\0376\000\335S{d\375Q\345\002x\240\320\013\373\010\216v\307\304\212g\r\303i\347\314wA\333 2\005HI\0014@\204\371\017\275O\234[\362\210\030\025\347o\017\366=q\021\3224\221\002\375\341\275|Y\2011\320\276+N\005u9\005\314\361.J\026\003\367l(f\213\206\354\200\350\375\250\201\027\300\370\026\010}\251\331\341\200\265\221\352\023'\373<$\010HB\021;\\\034<H*\360\264\217\375\237t\003\204\234`~\2768\203\026*o\364\247J\222\005\000xN\030\227\"J\237\320(\250\213\016O\007\216\317j\035\271\016\322=\234\310xg\301\3326\202\037~4\354\376\250t!\342P\355\370\030\004\220.\362\233\320\211!\201\200\273t\334\274_\030 HCs\210'OO@64\276\004W\327s\226\t\347\377jUC\352\330\365\010\323P\372\034\227x\223\277\234i\273\235\347k \366\330\365\327H\321\020\302\202\001\231z\232z\320R\257\206V\321=\215\315\036\347\024d\260A\222\377\242\032\315\324L\226\252\374\354\2633i\207H\324VRx\367~\276\202d\t\221\266\301po\334e\343`8\\\327h\352\232\221\021\034\345\234\372\363\203zt?\004\2515HI\230\301\274t\250\027\264\341\207\022k2dNq-f0\304\227W\\\2558ZYk\314g\000b\036\336\253&[\263\362&\342=\212\031lI$\303\004\001\255\252\340a\221\243 \350J\035z_\001\236C`Tr""\\0\2448\022G#\216 \367\275 \343\211\004\371f\017&y0\332PVd=\000\245&\315\303A4\224t\260:\231\306\006=l\016\2633\327\230We\206\274\274\302\014\340\226\231\241\361\211\344=\365Z\335\007\300%TO\221\037\\\226-`\327\rt4\\/\263Ml\255d\305\273\256\266\316\036/\255:\354 (\342\251\251\246\016\003\333\354\002\357\205\207ZKU\227\tB\330D\202\221E\210\"D\373\216\003\342\3253\006m4\347j8x\215M\304\370\216Q,\243\025Z&\007\254\351\360Y\231\266\231\2558\262\005\227Am\246\"\\=6\216\230\314\326m[\036\344\255\020\026\3302\271\031 \245]\020G\205Y%\031\225\311c(<%\214\213\355\023\0215\225\275@G\221t\225\262\0035\311ZD\370+\251\256\217z\223Y\213A\272\256\256%\327]\034J\244\007!\313f\337Q\215P\271C\336\225\016\365\347\236{\002\362\247\246=\324\275\371N\310)\331\037\244\221\344\264\263\354j\263g\254\375\001\302d\306\212\330+\274\212\\\245\234\230;c\016Fr\313U\001\326\225E\014\255\316\322\354\361|X\314\335\207\016fw\020\305\244RX*\210a-\334$Q\371\215\307\000\324k\230ko\005k\035C4\333\3129\374{\257\336\262,\301\007\034DA\030\20577t\243\2043\0318\014\330\371\t\262\r\304\3061x.@\250)\264\027L\275X\351\034\2630\310U\221X\306]tc\373)\220\354\035\354'3\2706\371v\325\344\306\231mt\243(&;\340|\311\332W\010y\222\246\266\203M\033h\350\001\203\222W]\337\000\267|\225M\223c\241M\232\250\0169a\3256\205\004\270\315 \235\312J\352\265MM\023B\256\356\322\272H[\232\220\020vh \304K\260\026\005Q8\264\202w&\360\220\2477\212\014X\004A\020A\001\020d.,\021\005\304\215dc\036z\305\353\326\261\256\236X\3173vr\327\253\032vI\260\004=\032\n\311\"Z\312\246fP\201h\2564\240\005 \335K\3546\204 \267\003\250\177J\014\271\242UF%D\022`@\310\230\231\013\226o\316\266\177\317\235fo\n\272rSB\325\025\201\250RC8\222F$\014&\242\005$QV\211Aa\004'~e\001\214\222\371\"\212(\242\341\023\333\327=\2775\253kZ\266\226\226\266\006D\234\234\222b\013\214\t\210\320h\336\026t\215\300\024\002\261\272\304\212A\272B^\022\205K\002\221n\350\334\325H\001\013\201\214M\031\305c\027\214\006Hx\261\204n\256\361x\300d\335*\306\010AB\020\020\210G3\370\233\376:/]""hPFb\254\224G3 9Q\\\320\210K&\232\200\211Hi\377\305\334\221N\024$?\340\264\367\000";
    PyObject *data = __Pyx_DecompressString(cstring, 7097, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (7252 bytes) */
const char* const cstring = "x\332\315<\313r\333F\266\362\304q\022\347e\331\212\355\304\223\232\226\234X\244Bs\010\276\364\360(S\222m\271<\361K\226d\305vl\020\"@\0226IP\000HYI\315\275\263\271U\256\272\033\256nq7\\\362\356\260\304RK-\261\36425_\220O\270\347t\003 \000\002\024){\352\306e\363\201\356>\347\364y\237\323M\237&\360g\205\024\225\272.\275\322\211\\'{\025\271X!\rI-)jM\256\227\211\252\354\021\005\276\013\272\254\3245\"kD\023JR\222\220\355\212T'zE\352\257\326HU*\351\t\372Ph4T\245\241\312\202.\235F$\315\206\010\0375\"\250\222\003]\022\311\316>)\n\325*\342)\024\000\023\2574x\251.\306\342\205B\222.\273.\324\211R\257\356#\222\226\244\352DW\310\255\215\373D\225\032\252\244Iu\235\222E\366d\275B\004\262#h\262\306\026\322\305\025\241^\006\234H\317\216T\021Z\262\322T\211R\262q\t\242XkV\013\205\004\321$\211\310\272FD\245\330\2549@\223\247]@\337\177\377=)\251J\215\224\032\373\325j\225\310\265\206\002\264\334\206}\227%\365\256\240\253\362\253\004\322\225 k\017\356\334\271\343[\270B\226\3753c\034\227 \034\027\367\315\272\013\263\000@\022\246\304V\002CI\2333\300\264\242\304W\225z\331\035_\023\252\232t:\032R\202\224\252BY[\306\007\367\037\360k\367\037^\277\311\337\271\177\357\326\350(6\325\246\007C\237\271J\255\321\264\331\017,E\036\313(\"M\"\272*\3245\2240\251\321\r\223\030}\322P4I\214\377\216\330j\323\313\273\364\202\356\t;UI\034\306\336\255 \336\244,\202\312\310\372~,\210|\013\020l\216>= \270\255\345\255\004\003\261L_\307\247~t\311\005%\366;\022\322\277K8\203\334\216\237\036\031\265\237\263\214\241\350\304\220\227\267T\241F\030vRl\252*\340\007\377\245J\273M\031\\\026\305y\373\336&\177\353\341\312\335\033\262PV\352B\025\305 \327\001\206c0\025A#u\251\0142jI\004\000\250\262\344\361k7_\tE\035<\242O\214\242\242\023p\271b\263\250k\277+\033\323\3712pd\024\351Ez.\207_#\003\367\313g\255\252\010\0209\366\033\022\231\375V\233%u`U\263.\202\365\350\212\"&o\001\223\353\020=ZRQWTR\330+\220=\2144\030\332\204\272R\227!D\261\320B\n?=y\362\274^\000i\352M\325\273\246\345\256q\261\242\036\\\335(Vj\262\250;\313W\237\317""\025\372t-5\004\324\225\326\022\000\322\233\215\252t\265*\277\224\210\262\363\002\240R\231\312\020\2154\024p\241p7\271\232\254\027\225\252V(\004\001h\272\240\352Kn\234\324@\347U\2425w\030R:\212\312\t<(\024\350\267A\020.\246 \230B\301\035*\024\354\355j\004\266,\2402a(\275\312\025\274{b\254\321\334=\005\367\341\001W@8\2703\021?\357a>\341G\207,+\334S\352\222\027\303f\005\036\273\031\t\316\361\306\036\032\335u\205w%W(,-\365\027;\272c\233\001\030\270\250\324\006F\007\364>\311&\306r\t2\323\254\313\350\023f\022d\007r\206\345||`y\204A8\303<\014\337M\262\204\210/kJlpJ\013\246P\356\305F'\343i\352Y\374\032i\371`\305205\235M\220\034\274gS\36093\210l\217\322\203N\242\317\265X\013`\355\221\313\230\022A\332\006\332\365\335\315;wn?\330\270\275\341G\220J..\244\027\263\311d2AR\311\\>\223\247\037\257f\222\331\334b6;\277h\217,\316\347\027\354\217\351<\227\341pZ\310\276yw\343O\301\270c\252\002v\032\333\223\343q\002\233\2054\017STp\314\036\371\306\366\342t\337\374\370\033\007./\007\027\372=\007\260\035\005y+\311\363eI\347y\022\203\\U\"\331l.n\017\361\274\\\227\373#\213\013\316\300\216\260#\310\366\323t&\225w\236\213\001Xy\316\035*\241\237\342\321O\005\346\000[\3359>19\360S\231yg\002\256S\355\347\\j\321%4\350+\203d\344S\375\231\021\211E`\311B\177S4VI<\326\n6\346\\\306\341\204\343\317\250\353\245\201M\001\367\242JI{-f\236\322\253\206\022\201e>\345\262t G\r\022\224s\t:\212\366\371\234\307n\357\301<\241*\377\354\306RI\200\032\210\026>%\262\203E\212@\032\312\236Dk\207\364\357\254.\360\262\356X\301\365\341\375m\376\346\217\017\356\217\014\334o\"\367\024\035\362\307\n\004\227\353\373z\2059dQ\252\312;\350\240%\010%\032\354\r|\210\212\223\352\344\301\315\007W\263\013Y\002\216\014\242(*\206\206\241\252X\0254\r\262#dxS\256B\274\242\361ZK\222\333%\262\2574!\033\202r\021\212\277\006\314\363.\3201jh\022\013\327\263B\035b;\025#\232\021\004\275Y\210=* \301<\nVS\276\364\023\251{\315\332\016\223*lVc\261c\025\342N\254\037\260\354\004\271*\350\272\\\224~O\325K_ \034\027\222\345?d)J\341_\377\354\355\3602D""\2119\376\305\277\376\371\277\205\344@\376!/\005\237\274X:r\233s\276\tt\203I\r]\017\215P<T\324b,\025?}\334\250\232\033\203\021\241\221\224*\251\177\036\365\2141`\263\207..\263\230O\246\242\331\347&\364\003u\321U\324L\035s\021\217\217ci\t\3521&\207\236\205\t'eDKI\216\003\204%q\264\301Q(x\223a\320S`x\302\023\2750i\323U(\000\202d\333\326F\t\220u\017\366\3730Q\335\2235)\001\2300\325\322o\327 \370b\017D\022o\252\252\242\262,L\025`\216\370\216t?\\Y\270\014\304\260\321\364\205\203x>\263+\250\373\240-/\227s\266\312p\251\370\230\325\304\265a\251\030\202\270E\207o\371\2365TLL<\375\223\247d!\235\316-\316\263o\251c\277=\363@\314\344\346\263\213)\222Y\344\262\251\314;\201\230\235\317f\346\347\001b>\235Y \371L\216K\247\337\016b.\225\201\014\217d\026\322\034\227G\300\034\267\000\231\321\302\002|;&\304\\.\235\315\221\364\302Bz!E\262\371Lf\001\001g\346s\360m1\007_\307\346#\227I\245qU\036\002>\341\000$\000\346\322\\\212\242\311\247R@?\227_\314/\216\014\221\300:.\007~#\237\316\002q\000h!\003yVv\0366\317\3453\351yw\3250\300^\210i.\227O\303\274t6\235Zd\340\201\306T>\233\002\225ZL\245\026\202\213C\001\373 .\314\347\0273\0008\005\220I\032\276,\302\346\363\331\014\276e\026Sy.\234*?`/D\016r\374y`Y6\237\312\300\342\305\371E\nxq\201\343\200\253\271t.;\224\2016\340g~\007\262\002\025K\262\016N?\026\237\233K\273C\314\232\222\251T\nJ\204\350\034\346V\202`:\273\214\216~$K\366\233\262?\21192\306x\027\nEiG(\276$\261\232\242A\t)\025\301[\32266d\t\232\036\357GS\244\337\223&\005]\353\322\361\033G\321\001\313\323\304\320\222z\022\342\377?\376g\357_\377\375_\253\340\355[\360\231\272s\255\206\32465\304\274\212u\312,\266\233\004\300\242\223FU\200\374X\250\226\025\025bN-9b\273\342w\330\223\010\200\003\245Xb\243({w!\ro\316i\002\344\230{\354\220\301\021\210\277\203\223 \212\0231}Uc\260O\004\177!=m\326\240\356\030\2435B[<\230\211\372\333\0350\257\251cs\260O\260\000\314\220J%\271(\243\356\331\317m\312!\203\r\353xx\302u\022t\316\215\331l1\217v\030\332\007\301X\255J\330V\004\"#\332\021\276x\234\206\200\274\273""\014\345>\027?\2425\222\260O\205\230\r\2076A \326\247\022\361\271\\*\242kA\253\354X+dq\177[\261\225d\255\t%E\243\272\317\343\001Ul/\236 \2558!\227\211m\034+\266q\370\240\344\026\026r\334\230p\343\036\230\003\360 \024\345<\231\372\266\004\331\231G\253Y\027\313#g\341(9?\237\013\225t+\254\237\34322>\234\223\t\264\223(\201\034\301\323\010\034\214\221\336}\263\3265x\031RST\3345\224\207\340{\320!H\257\004t\2234c\325\224j\013'i2}\364C]hh\340x\217\320\356\301\n\305\333x\353'\237`\362E\031-\017\3647\204+u\230\314\r\252\335\352@\341VO\300\334\357\0107\010b\3256\020\371g)6\003\233T\245\252[\337\204\241l\361JC\007\370\253\001\336>\345\022\251\004\373\207\257\364\375\331\340r\215,3\020\020WA\017\361\353_\204\004y\365}\002{\253*r\022\\\207\255D\340z^\332\374$-\241\332\364\236/8\000\221\226\247\3323\330\\\254N\346\0106\030O\2072\325\357#V\207\233\375\252\317\35411w\272^\3133\265FI\235\tA\262\357QQ=\334S\004\231\266?8\2152\006[~\360>\330\364\013\355E^\177\364\300F\013d\353\341\r\313\345@\323\325\237Z$\223x\336 \221\245%p\247\232\204\261\010\276\311N.\3406\261\205\226 W\261\321Bcb\037o\274\220\204\030\000\317\006\226x\221R;\252C\300Q\321\332i\327\205\302\242=\027Z`*\020\325c;\230O4$\240@\254\366\217\336\321\363\334\263\303\377\003\177\370\367\342\000\032\004R\246\207%\256\355\240#\002\302T\005\373+\000\006L\266\211\344\305\223\344>\253\236i\300$@\206\230`\204\370\367\341E\2405\033h\271\032S\t\244\254\241\200\331\020H\017\240vw\003=\272\006\037\203\210\250H\330V\324=\301v\003\026\024vx\271@]\345U\374\024\322\371\000\3402$\005uQz\345tz\260\355\007KXG\363\264\367\314\r\351>\266\357\t/z\263\351\370\321\207\017\261|\202\204\2342\254x\275\0138\227&fc\356q\000\306\340L\210Ob\345k\340T\002\022|\310\322\2612\"\351\034\376}\026\030N\321\t0\300f\014\016\343\004\266\024f\204\rc\021@+\202T\304\260;#r\230\315xvz\334\363\226!g-\241\206O{-\316\215\010-\226N\244=9\275\235\327\263\323\001O\337;\026\220\2447\367\037\201\367\370\0278\207\014\214\342?N\301a{Z\030\233\256r\344*\014\321\177\021r\300\277""\310gZ\234\245\"\247x\246\r\233bO{\0268\235+5\353E\307\257\321\324]\224Jr\035\222k<\304\351w\272`\260\005\276\301\356qm\321#\nzJ;\215\356\334\371\266\305rb\366\220~\244\327!\242f\323\261\260\025:~\307\303D\262\0039\326\026\372m\374\226\374\253 \212<\272\350\242*9\207\030\350\246\352\230\245\200\033B7j\267\337\"OF\260\"\321\360\023\373\376o\353\021C\242=\264\315\025,[\373\261\325\035\230\025\225&\2208{z\224\314\210K\035\325Tsc\367,\306\356\331Q\010\240\023\373\032S\006\\6\033\361L\2070\372\202\256\332\307\010\262\272D\353\"\273\273\2518\327\326\002w\325|w\315\300do\353\244\326\204\030\207\347\377;~\273\227j\r}?9\034\351\326\022vk\013\205-\326\023E(tY\302\213\223\026rx\206\200\310\205\252\246\300~@\345\350\343\246\247(\245\207\224\262\035\233\213\202\006Z\t\221\222\321W\021\234h*\324hT\367\034R\304q\037%\006\214\251\251\254\3134\342{\357\036\340\037\347\346\213\333\201v\362#\032\362\335\013?;\373v\345A\341\330\365+Fyv\256n7\"\202W\353\302\031\204\266\007L\032\270\006\026\323*J\263*\002\323\035\2161y\331F\243\r\320\356\271\333\222\300\302\336\246\016B\235\310l1\260\2718\223\356\236\242\276\264=\216\034&\251dX\002@\033\303Kd\r\337\374\261\205\365\310\007\272\356\254iOsWOu\2469\t\204\257\357\256\272\305\016#|\000>\301\212\247\250\323\032\250\214\316\220\246]\222.\027aK\236\366<|\332\367\203\003\345q\362\244\2534OJ\262\303\270\020\024\364x\216\336\257`\310\372H\220=MM\202\334\014{'a\333)\311\252\206M\232:\377\262\256\354\325y\273?1\210\204\021\007R\2517\225\246\006\"`QW\264\253\017A\033\2448l[(\275\020\350J\375\252(\325 \341I\2727@h\204)\322#?\252Y\314\2078\367H\274G\233L\r\300\265%\243\005\354\231\353\021\260\367$\230\3315\325'v^\314.\260z\317\206\201\016P\3700\021\210\n\232\035\273\305\352$\316Af0\243\250\2007)5\321\242\205\226\"\213@\267\002^\000#%\314\337\323\354\375\207\261(\212#\324\026\002J\314\370Asi\217\325D\250h\241\340-\322\230\203\236A\037\207\231\270o\314\343\301a\002\263J\246b`\3464u\017\001?7\347\270\345\2719\244\033\025\222\246\n\001\274\r\204\231\010>""\025\361\341\221D\357\3424\022\204\211\241\210\327\013\205!z\341\2735K\225c\245T\242\311\313\021\327\212\223X\204\320{\305\241\352\020~\323\330\366K}\022\261j\014\226C\3608A\344\244\224\004~\022\211\025S\014\277\335\337\0035+\311eO\360\325\234\373\324\316\037\032B\006*ov\244\350\251\356\354\274\307\237\024\304a\032\323\363\376\211#+#\003ji\237g\242\226\210\n\365\302Ez#\233r\256\217Dl\252N\025Z\225K\340\225j\022s>h\345\024\304 \203\260\365\317r\000\3262sm\323w\352\0328\275O\020\210\322\025\347&\202{]<\010\233\371\255%r\035]\"\004ZO\361\340\323\224\376\315\007\300V\254\340\036\034/Nyn\253\360*\323\331-\327^h\230\2643\004\251No\263\210#\326\225\201\304\021\0226\232=\036\335\245\362\034\265\317\332G\355\263\254T\204\231\013\t\342&\323\313\204\332\360\314\221=\234!Wm\355\244;\036\254\265F>8\t+\2406\201:\373\330$\252R\370\377b\341\262\207\201\313\357\214}\2030=\2151U\252AD\340\221o\307,X4\265\370g\306\031x\303WP\360dc\377\025e+\330\315\026\211}\253\305\251\325\332}\031It\307\350\305\366\301\361\325\0337\327V\266\356l\302>\235Ps\027v\307\356d\261\327\207\312\336\375\306u\366\213\221\301'I\236\307S\030\225\347\303\307^\341U\273\320!v\013\317\275\224G\273\221\222\373\200v\212\354\317\3752\317\271\221'kE\014\257<h\"MoB\257\332y\256\327\33191\257U!T{\236\243S\362|un\334y\036U\2252/J\272\347I\255\351\373\2027\256\274\027\371\274\237\203c\212\242\007\200iUP\"\276\001~\251\216\351\262=B5\245\277\335~\317\302\271V\347\274\373u\312s\351\216\2054\377-\274\035\251,\327\375\217\244\272\350{\3400R\333\023\032^\306z\257o\332\217\372Nv\340\001\256\364\005a\236\177\260\377\n\376\335\220\213:\177\017\304\377P*9\331\333\026UMA\333\257\027e\005\342\240\252\340\371\252\244Q\005\330\251*\305\227\274\006\211[\021/\001\202\200\3200\230S\352kE\261U\334\023\341\217s07\240\036<\017\321\033_0\313\201\244\004\266\355\252\255\364\252(5\330\3753\007\262\347\021\230O\377\033\355\272;:\215\027\355h\246M\253\221~`\266\003:\265\320$0\303\257\223<\217\235\026v\263\321\247\224\2166z\325\320\243\177L\327\372""\032G\325\311\3251\257r\205h\025\205\245)\262cs\301\213\245\216\327\212\364=\274\254\361\256dd]\252i/P\347\250\336\275@O\307\3635\001d\003\177\240F\021\350M?\372E\021\233U\t\337\231>c\312Rk\374\014\017T\274\244H\177$\201\363\352P5\303\253\253\346ui\217W\251Ke\331\204R\025y\265\001\372\2129\r\204|\t\027\201\347\343[\264g\316\363\273 \317\335\246Pe\200\324\2767\tXH\3374\2746\3217\006\333\n \367-\361<\346P\014 |\022\245\222\000\3258=\370\246/T\261t\205\231\211c.\300\\\274{\r\257P\274zl\206\331F\337B\374\266\322b\3079{\257\320F\356\263\024l.\326\377\030\237\300$2\206/Wh\214\261\337\350K|\242X\221\300H\372\0328\201LR\225\"\244\357 j\021\322(\315\003\2261N\347\363LQ\371\034\325T>+\202\211\361\366ya\251\301\327!\313F4R\275\211\361\030\246,-\321_e`T\217O\214\t\360\347Px\020M\007\240\241z@\240k\350j|\002\213)2.\301}X\221\304\373\026i\325\246\332\230\360\322\311\236 !hK\rzG\326\277fGPK\305}M.k\274>\301>X'\247\255\351\2141oN\377\326:1\361\321'\257\227\332\233\235\3117\237\\\354\234\354\\\357\250\335\311\337N\343\323\354k\255}\005\036\335\350\236\352\026{0~\266\035\357p\235\225_?\374\030\306v\337|\362\371k\275=\337\271\334Y\177sf\272;\331\375\206\316:s\276-\274\231\314\0327\314Sf\371\340\321!w\270zX\2626\037Y\217\236XO\004K\250Z\325\332\2333\027\332\273\360b]\210\365N\364\246z\353o&\277ho\003\356\335_\247\276\355\256w\305\336ex6\365Ug\372\315\027\213\346\224\371\350`\3410o\255?\264\036nZ\233\000\346'\353'\200T\261*\232\245\351o\246.u8x\261.%z+\275Mc\362\267\251\211\263\347\031\270A\302\346\r\335\314\037|\025\004W\264\212/\254\027M\253\331\212\246m\020X\306\310\032-\363G{\227ekk\333\332~j=\335\261vjV\255>\316.\027\314\223\346\332A\274O\026\200yf=\003H\262%\353\226\336\034\334\345\314\304\344T;\333\336\353\024\273\223o\336\005\333\316L\234\377\252s\241\373^\227{\363.\350;;\361\351\271\366\364\257C\264\344\314T{\255s\005\264K\350\252\275\363=\325\2302\266\315\2251\3306u\261s\252S\356>\352q\275\325^\311X5$s\376`z\220\224S\321\nAi\210u\257\000\252\263\275\274q\326\310\233\027\016N""\214\241\004\024@\274\233\357M\366fzk\306\214q\213\3220&\200\331\356\371\356n\357\017\275Y\240 k\354\231\302\270\\\250tK\260\331\207\275=c\307|\337\334>X\031\237\013\316&n\031i\343\321q61\327]\353M\367\322\275m\220D\231\322\020\004\0004\014Q\332\021\305\371\346\213/#\324\364\335\0008\232\225o\r\340W\360\245\323\326I\340\n8+\352j[\355\215\316\t\327\305:\016x\257]D\307\374ug\275#v/w\327q\302\364\233OS\306Ic\315\234=\370\372P8T\255\365-\307\361\374\364\346\223sm\016^\254s\214.\230;\331\276\320y\257\303\375:\340\274r\306\246y\336|u\360wk\223\001\000\367\360\334z\016\236P\354\313-\016\032\361MO\000*?;\313\000\rR\303\274\340\223> \200R\260\ne\253\\\211\246g\020\314\237{:\030\337\305\267\333\024\213;\362h\233\232\231\370\364Lt\010\033\213?g\206\204\234\261h:;\361\321\347\257\005\353\344\2345\367\027s\345\267\354[h\307\237\254\007\353\326\372\206\265\001(\037[\217\301]\213\226(\035GE\376\323z\304`0\311J\226\344\217\342}\342\217\326\022\027\026\000b\341\243a5v\217\243(o\277?G2\243\356\217\214\2440#B\033\222W\274;H\343\356\360\014U\277\177\254\374v\003\022\303O_\377\320\336\005\316e:\370df\342\243K\235i\370R\354Nu7\2517\377\320\247\207\347\300\261\267:\217h\024\231\356e{\032\004\3035\323\237\001\\h\353\235|\367B\357TO\350\355\032\357\033\033\346\037\314+\020oiJ\351\203\363#u\343+\275GF\006\334\350)S\030\t\316\361p=\246\016{\275Wv\346\374:8g\233\0067\256w\303x\217\306G.\204\236\213\220\305\354\032'\214/\214\242y\026\322\314\311!\270J\306uC\005)\357\216\004\347x\270\236t[\200I\200@d\317\371\365\303\317^W;\323\326%\360-\346:\010\365\314\250B\235?r\363\027z\037\034I\320\217\335\355#7?\010\347x\270\036w\313\301\315\207\010\365\026U\262M\343\034d\013%s%T\030\027\000\323\244\361\255\241\2313\220\004O\017\301\325r\025h\0248\307\303\365\244\273G\025\372\003g\316\200P\317\017\n\365t\250P\027\2510D\343\262\361\020|\363z\2500>\002r\246\215\234\371\236\231\206\202\202\013\025\352cJ\320)\227\321\243\3009\036\256\307]\231\n\376\2023'T\250\267\2510\364!\236\343b\357K\300\304\0317\315s\346""\252Y\202\024-\032\327y\227\321\243\3009\036\256'\335}*\370Yg\316\010\226\032\002\206\211t\3038\021)\202\313\306z\244\0105cz\350\272\361`2\366\275gD\213\250hLF\2624c\010Ca\016[7\036L\306\372s\306 \313/\206\260\374\"\344a\037~\331\301j\312kQg\332'i-\3731\270\223\353\300\310o\215}\214F\347\332\231\266_\375\246\3327h\215\362\224\342\274n4\251\225\003\231Z\307o\354\014b\254\373\035e\3249\320\036p\227cC|\013\324\361\3565\252\023\227\215-\026Z\031\352\301\211\263\335KT\351\336\003\313\375\350`2\232\306J\367%\325\226\r\250\212\320\274\307E=2\304\267@=\327\375\201jX\006j\307|\1773\357@5NC\004\315\200(\2770\344\341\202|\342#`\210j\314\271l\007'76\304\267@\035\357.\205ie\230j|5\232AT\272/F\325\312\245\321\014\"\002\342[\240\236\353\376-\324 \002\252\361\307\301\350\353W\210\317^K\355\\\347\204\327k;\352\376\320\360gDg\333W:\357C\371#\364\035\356\307\020I\256\323\210\344\217#\237\275.\267\267\000/\327\367\351\216\241\253\346\3448P\217M@\245-ay\332w\326\216\315\375\001\252\000\377\324\000\007\266]\253\3331O\014\247\365b\357\222\261\00201\376\257\017\347\200\237\2001\240\036\233\200\000\007\236t\177\241a\007\363\"n@Q\316\036\225{\237i\237j\227:wi9\225\307\010\205p\277\207\no\272\233\305\240\025\320z4\267\257\335L\214\232\357\177@\t,t\365\336\242\261\022P\350S\355J\247\346\026X\302[A~+2\344\316\337\335\222`7HFX\346p\227&\211\363\346e\363\241\271\177\030\236i\177m\010\306\256\371\201\251\035\314\034\334>\014\317Nj\240\307+\306\266y\335T\017\276<\234\036\t\316\361p=\351\376\0350\255\033es\343\340\017\007\361\303AU\260\323\363]\354p\314uV:\353!;\177d]\316\204&>\027\254\330\202\031ZB[\337\346\214\365\350\025c\200zl]\311\033B\230<\254o\262Fh\331d\305\027\315\311hP\221+\306\000\365\304\232\235\007\217\031\344\346'\243p\023}nh\266\013\376-4C~\032\221U\343\374\321\341P\237\024\252\327\340\001Cu\360\222\261\022\t'j\376\350p\250\213\nsM\201rq\267s\262\263\326\275\322\373\034t\375\275\220\372\237\243\307\204\345\036\017\0206B\232,l}\254\367gs\022,w\375\310\365\307\203\037\357\375\325\23463""\346\240\246\262\361\331\336\237\314\023Pb\255D\340\257\364\024s\335,\206\364\023\202\360\217Z\177<\370s\275\373&\007\036iP\247C\2732\326\345H\373^2\247\303=\302\274\261\033\275b\014P`\306\340*\302=B\244}_3\271hP\221+\306\000\005\036\001\\\305\000\367\246B\333\037\327hw(\322\013\030\267\314HO`\\0O\014]7\036L\226\251\314\232\221\236\301\370\300\210\364\016\364\320t\030\314a\353\306\203\311\022\232ys\024\217\201\034^\036\302\251OiD\014\357F<\263\261\014[7\036L\026\357o\231\\dN\021\305)\214\357x ;\014\346\260u\343\301d\271\002p?*G`\263'\317:\345K\t\325\303\361!>N\177q\036\217#\231\333C\347o\373!\237\\\373ph\205<\036\234c\343\222Q\215\372\270B\347\320>\305\021\364\304z\337\031\353\343\341\032\005\316\261q\275`\311\200\273\257\360\204\177\036x4\325\3334\246\214\350\026\336vhN\305\332m\263\346dd\013/\312\2359\353\306\203\311\332m\350z\242Zx\345\320\370\303\332m\363\341q\303\2059l\335x0Y\013\017\035M\010\313?}\275\372\372eg\262\363MG\354~\323\005\233\373\374\365.3'\034\251\321\310|\262{\243w\302\0319\203#7\333\300\220O<o,\006\263\3031\273\301~\255\373\3028i\3340O\232\253\246`\372\231\204'\225N\353\307\"i \375\032\353\321P\375\360{\014\373\002\005\325z\032\240\315\217Y\213j\227\275D\300\215Y3\220z\033OY+\342\030p\337\001\rq\232\202\030/Y\247\314\246!b\356,^:\343\214\037\314\335\243\351\255\320\224\300\274\324\277C2&\r\343\300}\0074\314\321\244\307\370\345`\332\313\207\360\026\376\350j\303\304{\372\360;k\313{\021\002^\372\247\343~\205`D\314\035\376`m?\263\236=?j\005\260\216\211z\351\360\251\365\343s\3539\337_\021\270\253c\337n\241.\336\212/C\032\373\362\360+k\003\326\320Sw\373\206\013\236\262\237\033\177\221\347B\315\310x\242\265\214i\303W\207\327\254G?Y?={\033&\204\257\000i3\315\370\333\341K\3531o\361\205Q\330\026\263\346\276\007\201\377r8gm\302\032\311\222JG\263m\350\242p\266\r\307\023T\312\317\306S\312\356'\020\235\236\232\037\035\234?\330=R\037\273\t\010I\277\230\361\203\374\341\344\221R\350\376\005\342\302\307\346\342\301\332\341\364HZ\330\373#\225\363\227\207W\254\007""\353#(`\304\374\010\335\213\202\036\245v\335?B8|i~yp\345\360\3041\367\032\241l\335;\020\334.\231\267\361\232\351Hz\326KP/\300nk\216\240b\021\363#\264+\n\372\333*\326\247\243\363/\326\275::\377\342\264\n\031\203\177\2634=\037\235\177Q\363\243\024+\002z\244b}=\216\021\205\3565J\261\260\354\371\316||P:\\\031M\261\256R?\271x\270f=\334\030E\261\302\347G)V\004\364\020\305:c}\2167\235\256\3405\020\353\344\371v\245#8\035\022\275Mw\371M\233fz\315\366J{\275-\202z\235\350\236\353^\357\352\275\234\361>+\022\331\215\375bEP\331\017M\361\022>\375\215\002\033\360|\304\327\370\004\374\3415\271\314+\245\022\277'\250u\271^\236\340E\205\247\377{m\377\2479\366\244:O\377\3371\265\331\320y\374-\242\334\222Dw\010\036\340o~&\350\177\331\302\343\317x\350\357y&\340\231\\\332GX\354\367;\377\007:\2673\207";
    PyObject *data = __Pyx_DecompressString(cstring, 7252, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (26945 bytes) */
const char* const bytes = "\n    A context in which performing row operations is safe.  When the context is left, the appropriate\n    updates are performed by calling ``row_op_end()``.\n    Can only convert to GSO representation with a basis.\n        Changes the behaviour of ``row_addmul``, see its documentation.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.row_op_force_long\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.OP_FORCE_LONG)\n        >>> M.row_op_force_long\n        True\n\n        \n        Computation of the inverse transform matrix (transposed).\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.inverse_transform_enabled\n        False\n\n        >>> U = IntegerMatrix.identity(11)\n        >>> UinvT = IntegerMatrix.identity(11)\n        >>> M = GSO.Mat(A, U=U, UinvT=UinvT)\n        >>> M.inverse_transform_enabled\n        True\n\n        \n        Computation of the transform matrix.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.transform_enabled\n        False\n\n        >>> U = IntegerMatrix.identity(11)\n        >>> M = GSO.Mat(A, U=U)\n\n        >>> M.transform_enabled\n        True\n\n        Computing the Gram Matrix currently requires GSO.INT_GRAMDiagonal of input matrix has negative entries.\n        Exact computation of dot products.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.int_gram_enabled\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.INT_GRAM)\n        >>> M.int_gram_enabled\n        True\n\n        Float type '%s' not understood.Given a vector `w` wrt the canonical basis `\\ZZ^n` return a vector `v` wrt the\n        Gram-Schmidt basis `B^*`\n\n        :param v: a tuple-l""ike object of dimension ``M.B.ncols``\n        :param start: only consider subbasis starting at ``start``\n        :param dimension: only consider ``dimension`` vectors or all if ``-1``\n\n        :returns: a tuple of dimension ``dimension``` or ``M.d``` when ``dimension`` is ``None``\n\n        This operation is the inverse of ``to_canonical``::\n\n            >>> import random\n            >>> A = IntegerMatrix.random(5, \"uniform\", bits=6)\n            >>> M = GSO.Mat(A)\n            >>> _ = M.update_gso()\n            >>> v = tuple(IntegerMatrix.random(5, \"uniform\", bits=6)[0]); v\n            (35, 24, 55, 40, 23)\n            >>> w = M.from_canonical(v); w # doctest: +ELLIPSIS\n            (0.98294..., 0.5636..., -3.4594479..., 0.9768..., 0.261316...)\n            >>> v_ = tuple([int(round(wi)) for wi in M.to_canonical(w)]); v_\n            (35, 24, 55, 40, 23)\n            >>> v == v_\n            True\n\n        MatGSO.G.__get__ (line 445)MatGSO.__init__ (line 98)MatGSO.babai (line 2306)MatGSO.d.__get__ (line 616)MatGSO.float_type.__get__ (line 563)MatGSO.from_canonical (line 2037)MatGSO.get_r (line 1095)MatGSO.int_gram_enabled.__get__ (line 660)MatGSO.inverse_transform_enabled.__get__ (line 806)MatGSO.negate_row (line 1538)MatGSO object '%s' has no core.MatGSO.row_expo_enabled.__get__ (line 708)MatGSO.row_op_force_long.__get__ (line 856)MatGSO.transform_enabled.__get__ (line 756)\n        Normalization of each row of b by a power of 2.\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.row_expo_enabled\n        False\n\n        >>> M = GSO.Mat(A, flags=GSO.ROW_EXPO)\n        >>> M.row_expo_enabled\n        True\n\n        Note that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.\n        Number of rows of ``B`` (dimension of the lattice).\n\n    ""    >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = IntegerMatrix(11, 11)\n        >>> M = GSO.Mat(A)\n        >>> M.d\n        11\n\n        \n        Return `\342\237\250b_i, b*_j\342\237\251`.\n\n        :param i:\n        :param j:\n\n        >>> from fpylll import *\n        >>> FPLLL.set_random_seed(0)\n        >>> A = IntegerMatrix.random(5, \"uniform\", bits=5)\n        >>> M = GSO.Mat(A)\n        >>> M.update_gso()\n        True\n        >>> M.get_r(1, 0)\n        1396.0\n\n        \n        Return the Gram matrix.\n\n        - If this GSO object operates on a Gram matrix, return that.\n        - If this GSO object operates on a basis with ``GSO.INT_GRAM`` set,\n          construct the Gram matrix and return it\n        - Otherwise, a ``NotImplementedError`` is raised\n\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> FPLLL.set_random_seed(1337)\n        >>> A = IntegerMatrix.random(10, \"qary\", k=5, bits=10)\n        >>> M = GSO.Mat(A, flags=GSO.INT_GRAM); _ = M.update_gso()\n        >>> G = M.G\n        >>> print(G)\n        [ 822597      0      0      0      0      0      0      0      0      0 ]\n        [ 357490 391403      0      0      0      0      0      0      0      0 ]\n        [ 474377 396238 635122      0      0      0      0      0      0      0 ]\n        [ 503594 382116 396118 448816      0      0      0      0      0      0 ]\n        [ 555245 288280 463386 393750 495338      0      0      0      0      0 ]\n        [ 313028   6756 146380 121045 286004 316969      0      0      0      0 ]\n        [   2815 136246 304583 104718 163270      0 316969      0      0      0 ]\n        [ 215629  24209  28150 106407  90080      0      0 316969      0      0 ]\n        [ 287693 210562 276996 164396 139061      0      0      0 316969      0 ]\n        [ 182975 246031  97962 279811 145254      0      0      0      0 316969 ]\n\n        >>> A[0].norm()**2\n        822597.000...\n\n        >>> M = GSO.Mat(G, gra""m=True); _ = M.update_gso()\n        >>> G == M.G\n        True\n\n        >>> M = GSO.Mat(A)\n        >>> M.G\n        Traceback (most recent call last):\n        ...\n        NotImplementedError: Computing the Gram Matrix currently requires GSO.INT_GRAM\n\n        \n        Return vector `w` s.t. `\342\200\226w\342\213\205B - v\342\200\226` is small using Babai's nearest plane algorithm.\n\n        :param v: a tuple-like object\n        :param start: only consider subbasis starting at ``start``\n        :param dimension: only consider ``dimension`` vectors or all if ``-1``\n        :param gso: if ``True`` vector is represented wrt to the Gram-Schmidt basis, otherwise\n            canonical basis is assumed.\n\n        :returns: a tuple of dimension ``M.B.nrows``\n\n        The output vector is a coefficient vector wrt to `B`::\n\n            >>> from fpylll.util import vector_norm\n            >>> A = LLL.reduction(IntegerMatrix.random(50, \"qary\", k=25, q=7681))\n            >>> M = GSO.Mat(A, update=True)\n            >>> v = (100,)*50\n            >>> w = M.babai(v)\n            >>> vector_norm(A.multiply_left(w), v)  # \342\200\226w\342\213\205A - v\342\200\226\n            58851\n            >>> vector_norm(A.multiply_left(w)) # \342\200\226w\342\213\205A\342\200\226\n            530251\n\n        We may consider the input vector as a coefficient vector wrt to `B^*`::\n\n            >>> v = M.from_canonical((100,)*50)\n            >>> w = M.babai(v, gso=True)\n            >>> vector_norm(A.multiply_left(w), (100,)*50)\n            58851\n\n        We compute a more interesting example and solve a simple Knapsack::\n\n            >>> from fpylll import *\n            >>> _ = FPLLL.set_precision(500)\n            >>> n = 10\n            >>> B = IntegerMatrix(n, n + 1)\n            >>> B.randomize(\"intrel\", bits=500)\n            >>> v_opt = B.multiply_left([1,0,1,0,1,1,0,0,1,1])\n            >>> s = v_opt[0] # s = <a, x>, where a is vector of knapsack values"".\n            >>> t = [s] + (n * [0])\n\n            >>> _ = LLL.reduction(B)\n            >>> M = GSO.Mat(B, update=True, float_type=\"mpfr\")\n\n            >>> y = M.babai(t)\n            >>> v = B.multiply_left(y)\n            >>> t[0] == v[0]\n            True\n            >>> v_ = CVP.babai(B, t)\n            >>> v_ == v\n            True\n\n        .. note :: A separate implementation is available at `CVP.babai()`. That implementation is\n           more numerically stable than this one (by repeatedly calling the Nearest Plane algorithm\n           at a given precision to improve the solution). On the other hand, this implementation\n           supports floating point target vectors and `CVP.babai()` does not.\n\n        Set `b_i` to `-b_i`.\n\n        :param int i: index of the row to negate\n\n        Example::\n\n            >>> from fpylll import *\n            >>> FPLLL.set_random_seed(42)\n            >>> A = IntegerMatrix(6, 6)\n            >>> A.randomize(\"ntrulike\", bits=6, q=31)\n            >>> print(A)\n            [ 1 0 0 12 25 25 ]\n            [ 0 1 0 25 12 25 ]\n            [ 0 0 1 25 25 12 ]\n            [ 0 0 0 31  0  0 ]\n            [ 0 0 0  0 31  0 ]\n            [ 0 0 0  0  0 31 ]\n\n            >>> M = GSO.Mat(A)\n            >>> M.update_gso()\n            True\n            >>> with M.row_ops(2,2):\n            ...     M.negate_row(2)\n            ...\n            >>> print(A)\n            [ 1 0  0  12  25  25 ]\n            [ 0 1  0  25  12  25 ]\n            [ 0 0 -1 -25 -25 -12 ]\n            [ 0 0  0  31   0   0 ]\n            [ 0 0  0   0  31   0 ]\n            [ 0 0  0   0   0  31 ]\n\n        This function is only defined for GSO objects over a basisU.int_type != B.int_typeU.nrows != B.nrowsUinvT.int_type != B.int_typeUinvT.nrows != B.nrowsUinvt != None but U == None.?add_notecreate_row is incompatible with ``inverse_transform_enabled``disableenable\n        >>> from fpylll import IntegerMatrix, GSO, FPLLL\n        >>> A = In""tegerMatrix(10, 10)\n        >>> M = GSO.Mat(A)\n        >>> M.float_type\n        'double'\n        >>> _ = FPLLL.set_precision(100)\n        >>> M = GSO.Mat(A, float_type='mpfr')\n        >>> M.float_type\n        'mpfr'\n\n        gcisenabledlong double\n        :param IntegerMatrix B: The matrix on which row operations are performed.  It must not be\n            empty.\n        :param IntegerMatrix U: If ``U`` is not empty, operations on ``B`` are also done on ``u``\n            (in this case both must have the same number of rows).  If ``u`` is initially the\n            identity matrix, multiplying transform by the initial basis gives the current basis.\n        :param IntegerMatrix UinvT: Inverse transform (should be empty, which disables the\n            computation, or initialized with identity matrix).  It works only if ``U`` is not empty.\n        :param int flags: Flags\n\n                - ``GSO.INT_GRAM`` - If true, coefficients of the Gram matrix are computed with\n                  exact integer arithmetic.  Otherwise, they are computed in floating-point.  Note\n                  that when exact arithmetic is used, all coefficients of the first ``n_known_rows``\n                  are continuously updated, whereas in floating-point, they are computed only\n                  on-demand.  This option cannot be enabled when ``GSO.ROW_EXPO`` is set.\n\n                - ``GSO.ROW_EXPO`` - If true, each row of ``B`` is normalized by a power of 2 before\n                  doing conversion to floating-point, which hopefully avoids some overflows.  This\n                  option cannot be enabled if ``GSO.INT_GRAM`` is set and works only with\n                  ``float_type=\"double\"`` and ``float_type=\"long double\"``.  It is useless and\n                  **must not** be used for ``float_type=\"dpe\"``, ``float_type=\"dd\"``,\n                  ``float_type=\"qd\"`` or ``float_type=mpfr_t``.\n\n                - ``GSO.OP_FORCE_LONG`` - Affects the behaviou""r of ``row_addmul``.  See its\n                  documentation.\n\n        :param float_type: A floating point type, i.e. an element of ``fpylll.config.float_types``.\n            If ``float_type=\"mpfr\"`` set precision with ``set_precision()`` before constructing this\n            object and do not change the precision during the lifetime of this object.\n\n        :param gram: The input ``B`` is a Gram matrix of the lattice, rather than a basis.\n\n        :param update: Call ``update_gso()``.\n\n        Note that matching integer types for ``B``, ``U`` and ``UinvT`` are enforced::\n\n            >>> from fpylll import IntegerMatrix, LLL, GSO\n            >>> B = IntegerMatrix.random(5, 'uniform', bits = 8, int_type = \"long\")\n            >>> M = GSO.Mat(B, U = IntegerMatrix.identity(B.nrows))\n            Traceback (most recent call last):\n            ...\n            TypeError: U.int_type != B.int_type\n\n            >>> from fpylll import IntegerMatrix, LLL, GSO\n            >>> B = IntegerMatrix.random(5, 'uniform', bits=8, int_type=\"long\")\n            >>> M = GSO.Mat(B, U = IntegerMatrix.identity(B.nrows, int_type=\"long\"))\n\n        remove_last_row is incompatible with ``inverse_transform_enabled``src/fpylll/fplll/gso.pyxtype of U (%s) not supportedtype of UinvT (%s) not supportedBDEFAULTGSOINT_GRAMMMatMatGSOMatGSORowOpContextMatGSORowOpContext.__enter__MatGSORowOpContext.__exit__MatGSORowOpContext.__init__MatGSO.__reduce__MatGSO.babaiMatGSO.create_rowMatGSO.discover_all_rowsMatGSO.from_canonicalMatGSO.get_current_slopeMatGSO.get_gramMatGSO.get_int_gramMatGSO.get_log_detMatGSO.get_muMatGSO.get_mu_expMatGSO.get_rMatGSO.get_r_expMatGSO.get_root_detMatGSO.get_slide_potentialMatGSO.move_rowMatGSO.negate_rowMatGSO.rMatGSO.remove_last_rowMatGSO.row_addmulMatGSO.row_op_beginMatGSO.row_op_endMatGSO.row_opsMatGSO.swap_rowsMatGSO.to_canonicalMatGSO.update_gsoMatGSO.update_gso_rowOP_FORCE_LONG__Pyx_PyDict_NextRefROW_EXPOUUinvTasyncio.coroutinesbabaiblock_sizec""line_in_tracebackcreate_rowcvcwddddimensiondiscover_all_rows__doc__doubledpeend__enter__exception_tracebackexception_typeexception_value__exit__expofirstflagsfloat_typefpylll.fplll.gsofrom_canonical__func__get_current_slopeget_gramget_int_gramget_log_detget_muget_mu_expget_rget_r_expget_root_detget_slide_potentialgramgsoi__init__int_gram_enabledint_typeinverse_transform_enabled_is_coroutineitemsjlastlast_jlong__main____metaclass____module__move_rowmpfrmpz__mro_entries____name__negate_rownew_rnrowsobjectold_rpop__prepare____pyx_vtable__qd__qualname__r__reduce__remove_last_rowrow_addmulrow_op_beginrow_op_endrow_opsself__set_name__setdefaultstartstart_rowstop_rowswap_rowst__test__tmpto_canonicalupdateupdate_gsoupdate_gso_rowvvalueswxx_PyObject *(PyObject *)\000int (int &, int &, int, int)\000check_float_type\000preprocess_indicesPyObject *(__pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t &, enum fplll::FloatType)\000PyObject *(__pyx_t_6fpylll_5fplll_4decl_vector_z_nr_t &, enum fplll::IntType)\000PyObject *(mpz_srcptr)\000void (__pyx_t_6fpylll_5fplll_4decl_vector_fp_nr_t &, PyObject *, enum fplll::FloatType)\000vector_fp_nr_slurp\000vector_z_nr_slurp\000mpz_get_python\000vector_fp_nr_barfcysigs_t\000cysigs\320\004!\320!3\2607\270!\360v\001\000\t\014\210:\220T\230\021\330\014\030\230\004\230C\230r\240\021\360\n\000\t\014\2104\210s\220&\230\004\230D\240\006\240c\250\021\330\014\022\220)\2301\230A\340\010\013\2104\210q\330\014\017\210t\2207\230#\230Q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0214\260D\270\006\270g\300V\3101\310B\310f\320TV\320VZ\320Za\320al\320lm\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\340\024%\240Q\240d\250#\250Q\330\024\032\230!\330\0259\270\024\270V\3008\3106\320QR\320RT\320TZ\320Z\\\320\\a\320ah\320hs\320st\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\024\000\022\026\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0217\260t\2706\300\032\3106\320QR\320RT\320TZ""\320Z\\\320\\c\320cj\320ju\320uv\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0213\2604\260v\270X\300V\3101\310B\310g\320UW\320W[\320[b\320bm\320mn\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\340\024%\240Q\240d\250#\250Q\330\024\032\230!\330\0258\270\004\270F\300)\3106\320QR\320RT\320T[\320[]\320]b\320bi\320it\320tu\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\"\000\021\024\2204\220w\230c\240\021\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\0259\270\024\270V\3008\3106\320QR\320RT\320TZ\320Z\\\320\\a\320ah\320hs\320st\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\020\000\026\032\230\027\240\003\2401\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\0258\270\004\270F\300)\3106\320QR\320RT\320T[\320[]\320]b\320bi\320it\320tu\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\022\000\r\023\220!\340\014\017\210t\2207\230#\230Q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230&\240\006\240a\240r\250\026\250r\260\024\260W\270A\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\340\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230g\240V\2501\250B\250f\260B\260e\2707\300!\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\006\000\022\026\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230(\240&\250\001\250\022\2506\260\022\2606\270\027\300\001\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230)\2406\250\021\250\"\250F\260\"\260G\2707\300!\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230'\240\026\240q\250\002\250'\260\022\2604\260w\270a\330\020\027\220q\330\020\027""\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\340\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230h\240f\250A\250R\250w\260b\270\005\270W\300A\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\360\006\000\022\026\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230)\2406\250\021\250\"\250G\2602\260V\2707\300!\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\020\024\220F\230*\240F\250!\2502\250W\260B\260g\270W\300A\330\020\027\220q\330\020\027\320\027(\250\001\250\024\250Q\360\006\000\021\024\2204\220w\230c\240\021\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230g\240V\2501\250B\250f\260B\260e\2707\300!\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\330\025\031\230\027\240\003\2401\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230g\240V\2501\250B\250f\260B\260e\2707\300!\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\330\025\031\230\027\240\003\2401\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230h\240f\250A\250R\250w\260b\270\005\270W\300A\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\330\025\031\230\027\240\003\2401\330\024%\240Q\240d\250#\250Q\330\024\032\230!\330\024\030\230\006\230h\240f\250A\250R\250w\260b\270\005\270W\300A\330\024\033\2301\330\024\033\320\033,\250A\250T\260\021\340\014\022\220!\320\004(\250\001\360\024\000\t\014\2104\210v\220S\230\001\330\014\022\220)\2301\230A\360\n\000\t\014\2104\210w\220c\230\021\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r0\260\004\260F\270'\300\035\310a\310r\320QU\320UW\320W[\320[\\\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220\027\230\003\2301\340\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0215\260T\270\026\270x\300}\320TU\320UW\320W\\\320\\^\320^c\320cd\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\024\000\016\022\220""\027\230\003\2301\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r3\2604\260v\270Z\300}\320TU\320UW\320W^\320^`\320`g\320gh\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220\027\230\003\2301\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r/\250t\2606\270\030\300\035\310a\310r\320QU\320UW\320W[\320[\\\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220\027\230\003\2301\340\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0214\260D\270\006\270i\300}\320TU\320UW\320W\\\320\\^\320^c\320cd\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\"\000\r\020\210t\2207\230#\230Q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0215\260T\270\026\270x\300}\320TU\320UW\320W\\\320\\^\320^c\320cd\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\020\000\022\026\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0214\260D\270\006\270i\300}\320TU\320UW\320W\\\320\\^\320^c\320cd\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\022\000\t\017\210a\320\004*\320*<\270A\3604\000\t\014\2104\210v\220S\230\001\330\014\022\220)\2301\230A\360\n\000\t\014\2104\210w\220c\230\021\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r0\260\004\260F\270'\300\037\320PQ\320QS\320SW\320WY\320Y]\320]d\320de\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220\027\230\003\2301\340\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0215\260T\270\026\270x\300\177\320VW\320WY\320Y^\320^`\320`e\320el\320lm\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\022\000\016\022\220\027\230\003\2301\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r3\2604\260v\270Z\300\177\320VW\320WY\320Y`\320`b\320bi\320ip\320pq\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220\027\230\003\2301\330\014\035\230Q\230d\240#\240Q\330\014\022\220!\330\r/\250t\2606\270\030\300\037\320PQ\320QS\320SW\320WY\320Y]\320]d\320de\330\014\023\2201\330\014\023\320\023%\240Q\240d\250!\330\r\021\220""\027\230\003\2301\340\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0214\260D\270\006\270i\300\177\320VW\320WY\320Y^\320^`\320`e\320el\320lm\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360 \000\r\020\210t\2207\230#\230Q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0215\260T\270\026\270x\300\177\320VW\320WY\320Y^\320^`\320`e\320el\320lm\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0215\260T\270\026\270x\300\177\320VW\320WY\320Y^\320^`\320`e\320el\320lm\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\330\021\025\220W\230C\230q\330\020!\240\021\240$\240c\250\021\330\020\026\220a\330\0214\260D\270\006\270i\300\177\320VW\320WY\320Y^\320^`\320`e\320el\320lm\330\020\027\220q\330\020\027\320\027)\250\021\250$\250a\360\020\000\t\017\210a\200A\360D\001\000\t\r\210K\220q\230\003\2303\230a\200A\360\"\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\360\010\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\2406\250\021\250!\2504\250s\260\"\260F\270!\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\006\250a\250q\260\005\260S\270\002\270&\300\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240V\2501\250A\250V\2603\260b\270\006\270a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\006\250a\250q\260\005\260S\270\002\270&\300\001\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\006\250a\250q\260\005\260S\270\002\270&\300\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240f\250A\250Q\250g\260S\270\002\270&\300\001\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240F\250!\2501\250D\260\003\2602\260V\2701\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\026\250q\260\001\260\025\260c\270\022\2706\300\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240f\250A\250Q\250f\260C\260r\270\026\270q\340\014\017\210t\2207""\230#\230Q\330\020\027\220t\2306\240\030\250\026\250q\260\001\260\025\260c\270\022\2706\300\021\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\026\250q\260\001\260\025\260c\270\022\2706\300\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240v\250Q\250a\250w\260c\270\022\2706\300\021\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\020\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\360\010\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\2407\250!\2501\250D\260\003\2602\260V\2701\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\007\250q\260\001\260\025\260c\270\022\2706\300\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240W\250A\250Q\250f\260C\260r\270\026\270q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\007\250q\260\001\260\025\260c\270\022\2706\300\021\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\007\250q\260\001\260\025\260c\270\022\2706\300\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240g\250Q\250a\250w\260c\270\022\2706\300\021\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240G\2501\250A\250T\260\023\260B\260f\270A\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\027\260\001\260\021\260%\260s\270\"\270F\300!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240g\250Q\250a\250v\260S\270\002\270&\300\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\027\260\001\260\021\260%\260s\270\"\270F\300!\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\027\260\001\260\021\260%\260s\270\"\270F\300!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240w\250a\250q\260\007\260s\270\"\270F\300!\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\026\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\360\n\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\2409\250A\250Q\250d\260#\260R\260v\270Q\340\014\017\210t\2207\230#\230Q""\330\020\027\220t\2306\240\027\250\t\260\021\260!\2605\270\003\2702\270V\3001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240Y\250a\250q\260\006\260c\270\022\2706\300\021\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260!\2605\270\003\2702\270V\3001\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260!\2605\270\003\2702\270V\3001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240i\250q\260\001\260\027\270\003\2702\270V\3001\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240I\250Q\250a\250t\2603\260b\270\006\270a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2601\260E\270\023\270B\270f\300A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240i\250q\260\001\260\026\260s\270\"\270F\300!\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2601\260E\270\023\270B\270f\300A\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2601\260E\270\023\270B\270f\300A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240y\260\001\260\021\260'\270\023\270B\270f\300A\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\020\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230V\2409\250A\250S\260\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260#\260Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240Y\250a\250s\260!\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260#\260Q\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260#\260Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240i\250q\260\003\2601\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240I\250Q\250c\260\021\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2603\260a\330\010\013\2104\210w\220c\230\021\330\014\023""\2204\220v\230Y\240i\250q\260\003\2601\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2603\260a\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2603\260a\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240y\260\001\260\023\260A\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\030\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\330\010\030\230\001\330\010\031\230\021\360\006\000\t\014\2104\210w\220c\230\021\330\014\020\220\004\220F\230&\240\013\2501\250C\250s\260%\260y\300\001\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240[\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230(\240+\250Q\250c\260\023\260E\270\026\270q\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240[\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240[\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230)\240;\250a\250s\260#\260U\270&\300\001\330\014\023\2203\220a\340\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230'\240\033\250A\250S\260\003\2605\270\t\300\021\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240k\260\021\260#\260S\270\005\270V\3001\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230)\240;\250a\250s\260#\260U\270&\300\001\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240k\260\021\260#\260S\270\005\270V\3001\330\020\027\220s\230!\330\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240k\260\021\260#\260S\270\005\270V\3001\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230*\240K\250q\260\003\2603\260e\2706\300\021\330\014\023\2203\220a\340\010\016\210l\230!\320\033<\270A""\270Q\200A\360\030\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\330\010\030\230\001\330\010\031\230\021\360\006\000\t\014\2104\210w\220c\230\021\330\014\020\220\004\220F\230&\240\n\250!\2503\250c\260\025\260i\270q\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240Z\250q\260\003\2603\260e\2706\300\021\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230(\240*\250A\250S\260\003\2605\270\006\270a\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240Z\250q\260\003\2603\260e\2706\300\021\330\020\027\220s\230!\330\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230g\240Z\250q\260\003\2603\260e\2706\300\021\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230)\240:\250Q\250c\260\023\260E\270\026\270q\330\014\023\2203\220a\340\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230'\240\032\2501\250C\250s\260%\260y\300\001\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240j\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230)\240:\250Q\250c\260\023\260E\270\026\270q\330\014\023\2203\220a\340\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240j\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\014\017\210t\2207\230#\230Q\330\020\024\220D\230\006\230h\240j\260\001\260\023\260C\260u\270F\300!\330\020\027\220s\230!\330\010\013\2104\210w\220c\230\021\330\014\020\220\004\220F\230*\240J\250a\250s\260#\260U\270&\300\001\330\014\023\2203\220a\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\034\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\360\006\000\t\014\2104\210w\220c\230\021\330\014\016\210e\2205\230\001\230\021\330\014\023\2204\220v\230V\240;\250a\250s\260#\260R\260q\340\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\027\250\013\2601\260C\260s\270\"\270A""\330\010\013\2104\210w\220c\230\021\330\014\016\210g\220U\230!\2301\330\014\023\2204\220v\230X\240[\260\001\260\023\260C\260r\270\021\340\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\027\250\013\2601\260C\260s\270\"\270A\330\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\027\250\013\2601\260C\260s\270\"\270A\330\010\013\2104\210w\220c\230\021\330\014\016\210h\220e\2301\230A\330\014\023\2204\220v\230Y\240k\260\021\260#\260S\270\002\270!\340\010\013\2104\210w\220c\230\021\330\014\016\210e\2205\230\001\230\021\330\014\023\2204\220v\230W\240K\250q\260\003\2603\260b\270\001\340\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\030\250\033\260A\260S\270\003\2702\270Q\330\010\013\2104\210w\220c\230\021\330\014\016\210g\220U\230!\2301\330\014\023\2204\220v\230Y\240k\260\021\260#\260S\270\002\270!\340\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\030\250\033\260A\260S\270\003\2702\270Q\330\014\017\210t\2207\230#\230Q\330\020\022\220&\230\005\230Q\230a\330\020\027\220t\2306\240\030\250\033\260A\260S\270\003\2702\270Q\330\010\013\2104\210w\220c\230\021\330\014\016\210h\220e\2301\230A\330\014\023\2204\220v\230Z\240{\260!\2603\260c\270\022\2701\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\022\000\t\033\230!\2303\230c\240\024\240T\250\024\250Q\360\010\000\t\014\2104\210w\220c\230\021\330\014\020\220\006\220f\230M\250\021\250!\2506\260\023\260A\330\014\023\220>\240\021\240!\2404\240y\260\001\340\014\017\210t\2207\230#\230Q\330\020\024\220F\230'\240\035\250a\250q\260\006\260c\270\021\330\020\027\220~\240Q\240a\240t\2509\260A\330\010\013\2104\210w\220c\230\021\330\014\020\220\006\220h\230m\2501\250A\250V\2603\260a\330\014\023\220>\240\021\240!\2404\240y\260\001\340\014\017\210t\2207\230#\230Q\330\020\024\220F\230'\240\035\250a\250q\260\006\260c\270\021\330\020\027\220~\240Q\240a\240t\2509\260A\330\014\017\210t""\2207\230#\230Q\330\020\024\220F\230'\240\035\250a\250q\260\006\260c\270\021\330\020\027\220~\240Q\240a\240t\2509\260A\330\010\013\2104\210w\220c\230\021\330\014\020\220\006\220i\230}\250A\250Q\250f\260C\260q\330\014\023\220>\240\021\240!\2404\240y\260\001\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240M\260\021\260!\2607\270#\270R\270y\310\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260q\270\007\270s\300\"\300I\310Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240m\2601\260A\260W\270C\270r\300\031\310!\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260q\270\007\270s\300\"\300I\310Q\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260q\270\007\270s\300\"\300I\310Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240}\260A\260Q\260g\270S\300\002\300)\3101\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\n\000\t\014\2104\210q\330\014\022\220*\230A\230Q\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230V\320#3\2601\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(8\270\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\320%5\260Q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(8\270\001\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(8\270\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\320&6\260a\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\320$4\260A\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320)9\270\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\320&6\260a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320)9\270\021\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320)9\270\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\320'7\260q\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\014\000\t\014\2104\210q\330\014\022\220*\230A\230Q\340""\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230V\240;\250a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240[\260\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240k\260\021\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240K\250q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\033\260A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240k\260\021\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\033\260A\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\033\260A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240{\260!\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\022\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240&\250\017\260q\270\003\2701\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240g\250_\270A\270S\300\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240(\250/\270\021\270#\270Q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240g\250_\270A\270S\300\001\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240g\250_\270A\270S\300\001\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240)\250?\270!\2703\270a\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240'\250\037\270\001\270\023\270A\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240h\250o\270Q\270c\300\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240)\250?\270!\2703\270a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240h\250o\270Q\270c\300\021\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2301\230D\240\006\240h\250o\270Q\270c\300""\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220q\230\004\230F\240*\250O\2701\270C\270q\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\010\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\320#5\260Q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(:\270!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\320%7\260q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(:\270!\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\320(:\270!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\320&8\270\001\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\320$6\260a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320);\2701\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\320&8\270\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320);\2701\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\320);\2701\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\320'9\270\021\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\024\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\240;\250a\250w\260a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\260G\2701\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240[\260\001\260\027\270\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\260G\2701\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\013\2601\260G\2701\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240k\260\021\260'\270\021\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240K\250q\260\007\260q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\033\260A\260W\270A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240k\260\021\260'\270\021\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\033\260A\260W\270A\330\014\017\210t\2207\230#\230Q\330\020\027\220t""\2306\240\030\250\033\260A\260W\270A\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240{\260!\2607\270!\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\022\000\t\014\2104\210w\220c\230\021\330\014\023\2204\220v\230V\240=\260\001\260\027\270\001\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\r\260Q\260g\270Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240]\260!\2607\270!\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\r\260Q\260g\270Q\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\r\260Q\260g\270Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240m\2601\260G\2701\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240M\260\021\260'\270\021\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260w\270a\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240m\2601\260G\2701\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260w\270a\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\035\260a\260w\270a\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240}\260A\260W\270A\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\n\000\t\014\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006\230f\240K\250q\330\014\023\2204\220q\230\001\340\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240'\250\033\260A\330\020\027\220t\2301\230A\330\010\013\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006\230h\240k\260\021\330\014\023\2204\220q\230\001\340\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240'\250\033\260A\330\020\027\220t\2301\230A\330\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240'\250\033\260A\330\020\027\220t\2301\230A\330\010\013\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006\230i\240{\260!\330\014\023\2204\220q\230\001\340\010\013\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006""\230g\240[\260\001\330\014\023\2204\220q\230\001\340\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240(\250+\260Q\330\020\027\220t\2301\230A\330\010\013\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006\230i\240{\260!\330\014\023\2204\220q\230\001\340\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240(\250+\260Q\330\020\027\220t\2301\230A\330\014\017\210t\2207\230#\230Q\330\025\026\330\024\030\230\004\230F\240(\250+\260Q\330\020\027\220t\2301\230A\330\010\013\2104\210w\220c\230\021\330\021\022\330\020\024\220D\230\006\230j\250\013\2601\330\014\023\2204\220q\230\001\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\022\000\t\033\230!\2307\240'\250\024\250T\260\024\260Q\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230V\2409\250A\250W\260A\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260'\270\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230X\240Y\250a\250w\260a\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260'\270\021\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\027\250\t\260\021\260'\270\021\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240i\250q\260\007\260q\340\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230W\240I\250Q\250g\260Q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2607\270!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Y\240i\250q\260\007\260q\340\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2607\270!\330\014\017\210t\2207\230#\230Q\330\020\027\220t\2306\240\030\250\031\260!\2607\270!\330\010\013\2104\210w\220c\230\021\330\014\023\2204\220v\230Z\240y\260\001\260\027\270\001\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\022\000\t\r\210B\210k\230\021\230$\230d\240$\240a\330\010\017\210q\200A\360\n\000\t\r\210B\210m\2301\230D\240\004\240D\250\001\330\010\017\210q\200A\360\020\000\t\r\210E\220\021\330\010\014\210E""\220\021\330\010\014\210E\220\021\200A\360\010\000\t\017\210a\200A\360\026\000\t\033\230!\230;\240j\260\004\260D\270\004\270B\270a\270q\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230&\320 2\260!\260;\270a\330\014\023\2201\330\014\023\2201\340\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230g\320%7\260q\270\013\3001\330\020\027\220q\330\020\027\220q\330\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230(\320\"4\260A\260[\300\001\330\014\023\2201\330\014\023\2201\340\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230g\320%7\260q\270\013\3001\330\020\027\220q\330\020\027\220q\330\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230g\320%7\260q\270\013\3001\330\020\027\220q\330\020\027\220q\330\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230)\320#5\260Q\260k\300\021\330\014\023\2201\330\014\023\2201\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230'\320!3\2601\260K\270q\330\014\023\2201\330\014\023\2201\340\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230h\320&8\270\001\270\033\300A\330\020\027\220q\330\020\027\220q\330\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230)\320#5\260Q\260k\300\021\330\014\023\2201\330\014\023\2201\340\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230h\320&8\270\001\270\033\300A\330\020\027\220q\330\020\027\220q\330\014\017\210t\2207\230#\230Q\330\020\026\220a\330\020\024\220D\230\006\230h\320&8\270\001\270\033\300A\330\020\027\220q\330\020\027\220q\330\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230*\320$6\260a\260{\300!\330\014\023\2201\330\014\023\2201\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\020\000\t\033\230!\230;\240j\260\004\260D\270\004\270B\270a\270q\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230&\320 ""4\260A\260[\300\n\310+\320U[\320[\\\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230(\320\"6\260a\260{\300*\310K\320W]\320]^\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\320#7\260q\270\013\300:\310[\320X^\320^_\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\320)=\270Q\270k\310\032\320S^\320^d\320de\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\320)=\270Q\270k\310\032\320S^\320^d\320de\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240'\320)=\270Q\270k\310\032\320S^\320^d\320de\330\024\033\2301\330\024\033\2301\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230'\320!5\260Q\260k\300\032\310;\320V\\\320\\]\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\320#7\260q\270\013\300:\310[\320X^\320^_\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230*\320$8\270\001\270\033\300J\310k\320Y_\320_`\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\320*>\270a\270{\310*\320T_\320_e\320ef\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\320*>\270a\270{\310*\320T_\320_e\320ef\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240(\320*>\270a\270{\310*\320T_\320_e\320ef\330\024\033\2301\330\024\033\2301\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\016\000\t\033\230!\230;\240j\260\004\260D\270\004\270B\270a\270q\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230&\240\014""\250A\250[\270\t\300\026\300q\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230(\240,\250a\250{\270)\3006\310\021\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\240<\250q\260\013\2709\300F\310!\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\250\034\260Q\260k\300\031\310&\320PQ\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\250\034\260Q\260k\300\031\310&\320PQ\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240'\250\034\260Q\260k\300\031\310&\320PQ\330\024\033\2301\330\024\033\2301\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230'\240\034\250Q\250k\270\031\300&\310\001\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\240<\250q\260\013\2709\300F\310!\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230*\240L\260\001\260\033\270I\300V\3101\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\250,\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\250,\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240(\250,\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\016\000\t\033\230!\230;\240j\260\004\260D\270\004\270B\270a\270q\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230&\240\r\250Q\250k\270\031\300&\310\001\330\014\023\2201\330\014\023\2201\330\r\021\220\027""\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230(\240-\250q\260\013\2709\300F\310!\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\240=\260\001\260\033\270I\300V\3101\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\250\035\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240'\250\035\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240'\250\035\260a\260{\300)\3106\320QR\330\024\033\2301\330\024\033\2301\340\010\013\2104\210w\220c\230\021\330\014\022\220!\330\014\020\220\004\220F\230'\240\035\250a\250{\270)\3006\310\021\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230)\240=\260\001\260\033\270I\300V\3101\330\014\023\2201\330\014\023\2201\330\r\021\220\027\230\003\2301\330\014\022\220!\330\014\020\220\004\220F\230*\240M\260\021\260+\270Y\300f\310A\330\014\023\2201\330\014\023\2201\360\006\000\021\024\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\250-\260q\270\013\3009\310F\320RS\330\024\033\2301\330\024\033\2301\340\020\023\2204\220w\230c\240\021\330\024\032\230!\330\024\030\230\004\230F\240(\250-\260q\270\013\3009\310F\320RS\330\024\033\2301\330\024\033\2301\330\025\031\230\027\240\003\2401\330\024\032\230!\330\024\030\230\004\230F\240(\250-\260q\270\013\3009\310F\320RS\330\024\033\2301\330\024\033\2301\340\010\016\210l\230!\320\033<\270A\270Q\200A\360\016\000\t\020\320\017!\240\021\240&\250\007\250q\320\004\026\220h\230a\360\010\000\t\014\2104\210t\2201\330\014\022\220$\220a\330\010\017\210u\220A\220Q\220d\230&\240\001\240\023\240C\240t\2505\260\005\260Q\260g\270Qvoid (char const *, int)\000void (int)\000void (void)\000\000\000\000_sig_off_warning\000_do_raise_ex""ception\000_sig_on_interrupt_received\000_sig_on_recover\000print_backtrace\000verify_exc_value";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 188; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 51) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 188; i < 222; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 222; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 188;
      for (Py_ssize_t i=0; i<34; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        #if PY_VERSION_HEX < 0x030E0000
        if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
        #else
        if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
        #endif
        {
          Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        }
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab;
    double const c_constants[] = {-2.0};
    for (int i = 0; i < 1; i++) {
      numbertab[i] = PyFloat_FromDouble(c_constants[i]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 1;
    int8_t const cint_constants_1[] = {0,-1,1};
    for (int i = 0; i < 3; i++) {
      numbertab[i] = PyLong_FromLong(cint_constants_1[i - 0]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<4; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      }
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 3;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 3;
    unsigned int flags : 10;
    unsigned int first_line : 12;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 58};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_E_E_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 70};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_enter, __pyx_mstate->__pyx_kp_b_iso88591_A_Bm1D_D_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 78};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_exception_type, __pyx_mstate->__pyx_n_u_exception_value, __pyx_mstate->__pyx_n_u_exception_traceback};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_exit, __pyx_mstate->__pyx_kp_b_iso88591_A_Bk_d_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 439};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_reduce, __pyx_mstate->__pyx_kp_b_iso88591_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 904};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_row_op_begin, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_4vV_t7_Q_t6_QgQ_4wc_4vX_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 945};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_row_op_end, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_4vV_awa_t7_Q_t6_1G1_4wc_4v, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 987};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_last};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_row_ops, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 996};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_t};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_gram, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV9AQd_RvQ_t7_Q_t6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1044};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_t};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_int_gram, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_fM_6_A_4y_t7_Q_F_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1095};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_t};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_r, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV6_4s_F_t7_Q_t6_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1148};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_expo};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_r_exp, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_F_3c_iq_3a_t7_Q_D_g, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1210};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_t};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_mu, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV7_1D_2V1_t7_Q_t6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1254};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_expo};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_mu_exp, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_F_1Cs_y_3a_t7_Q_D_g, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1316};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_r};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_update_gso, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_D_fKq_4q_t7_Q_F_A_t1A_4wc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1377};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_last_j};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_update_gso_row, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_4q_F_q_1_t7_Q_t1D_g_AS_4wc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1419};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_discover_all_rows, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_4vV_5Q_t7_Q_t6_4wc_4vX_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1455};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_old_r, __pyx_mstate->__pyx_n_u_new_r};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_move_row, __pyx_mstate->__pyx_kp_b_iso88591_A_7_T_Q_4wc_4vV9AWA_t7_Q_t6_4wc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1497};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_swap_rows, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_4vV9AS_t7_Q_t6_Q_4w, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1538};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_negate_row, __pyx_mstate->__pyx_kp_b_iso88591_AD_Kq_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1575};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_row_addmul, __pyx_mstate->__pyx_kp_b_iso88591_A_3c_T_Q_4wc_e5_4vV_as_Rq_t7_Q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1636};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_create_row, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_AQ_4wc_4vV_a_t7_Q_t6_1_4wc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1677};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_remove_last_row, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_AQ_4wc_4vV_31_t7_Q_t6_8_4wc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1717};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_start_row, __pyx_mstate->__pyx_n_u_stop_row, __pyx_mstate->__pyx_n_u_r};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_current_slope, __pyx_mstate->__pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_2_a_1_1_t7_Q_a_D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1798};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_start_row, __pyx_mstate->__pyx_n_u_stop_row, __pyx_mstate->__pyx_n_u_r};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_root_det, __pyx_mstate->__pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_Qk_1_1_1_F_q_9F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1877};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_start_row, __pyx_mstate->__pyx_n_u_stop_row, __pyx_mstate->__pyx_n_u_r};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_log_det, __pyx_mstate->__pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_A_q_1_1_1_F_a_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1956};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_start_row, __pyx_mstate->__pyx_n_u_stop_row, __pyx_mstate->__pyx_n_u_block_size, __pyx_mstate->__pyx_n_u_r};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_get_slide_potential, __pyx_mstate->__pyx_kp_b_iso88591_A_j_D_Baq_4wc_F_4A_U_1_1_1_F_6a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2037};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_w, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_dimension, __pyx_mstate->__pyx_n_u_cv, __pyx_mstate->__pyx_n_u_cw, __pyx_mstate->__pyx_n_u_tmp};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_from_canonical, __pyx_mstate->__pyx_kp_b_iso88591_A4_4vS_1A_4wc_Qd_Q_0_F_PQQSSWWY, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2177};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_cv, __pyx_mstate->__pyx_n_u_cw, __pyx_mstate->__pyx_n_u_tmp};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_to_canonical, __pyx_mstate->__pyx_kp_b_iso88591_4vS_1A_4wc_Qd_Q_0_F_arQUUWW_1_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2306};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_dimension, __pyx_mstate->__pyx_n_u_gso, __pyx_mstate->__pyx_n_u_cv, __pyx_mstate->__pyx_n_u_cw};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_babai, __pyx_mstate->__pyx_kp_b_iso88591_37_v_T_Cr_4s_D_c_1A_4q_t7_Q_c_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2558};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_end, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_src_fpylll_fplll_gso_pyx, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_kp_b_iso88591_ha_4t1_a_uAQd_Ct5_QgQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
        Py_INCREF(src[i]);
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall (used by PyObjectCallOneArg) */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* RaiseException */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* PyObjectVectorCallKwBuilder */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    Py_INCREF(key);
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* pybytes_as_double (used by pyobject_as_double) */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj) {
    PyObject *float_value = PyFloat_FromString(obj);
    if (likely(float_value)) {
        double value = __Pyx_PyFloat_AS_DOUBLE(float_value);
        Py_DECREF(float_value);
        return value;
    }
    return (double)-1;
}
static const char* __Pyx__PyBytes_AsDouble_Copy(const char* start, char* buffer, Py_ssize_t length) {
    int last_was_punctuation = 1;
    int parse_error_found = 0;
    Py_ssize_t i;
    for (i=0; i < length; i++) {
        char chr = start[i];
        int is_punctuation = (chr == '_') | (chr == '.') | (chr == 'e') | (chr == 'E');
        *buffer = chr;
        buffer += (chr != '_');
        parse_error_found |= last_was_punctuation & is_punctuation;
        last_was_punctuation = is_punctuation;
    }
    parse_error_found |= last_was_punctuation;
    *buffer = '\0';
    return unlikely(parse_error_found) ? NULL : buffer;
}
static double __Pyx__PyBytes_AsDouble_inf_nan(const char* start, Py_ssize_t length) {
    int matches = 1;
    char sign = start[0];
    int is_signed = (sign == '+') | (sign == '-');
    start += is_signed;
    length -= is_signed;
    switch (start[0]) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            matches &= (start[1] == 'a' || start[1] == 'A');
            matches &= (start[2] == 'n' || start[2] == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            matches &= (start[1] == 'n' || start[1] == 'N');
            matches &= (start[2] == 'f' || start[2] == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            matches &= (start[3] == 'i' || start[3] == 'I');
            matches &= (start[4] == 'n' || start[4] == 'N');
            matches &= (start[5] == 'i' || start[5] == 'I');
            matches &= (start[6] == 't' || start[6] == 'T');
            matches &= (start[7] == 'y' || start[7] == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static CYTHON_INLINE int __Pyx__PyBytes_AsDouble_IsSpace(char ch) {
    return (ch == 0x20) | !((ch < 0x9) | (ch > 0xd));
}
CYTHON_UNUSED static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length) {
    double value;
    Py_ssize_t i, digits;
    const char *last = start + length;
    char *end;
    while (__Pyx__PyBytes_AsDouble_IsSpace(*start))
        start++;
    while (start < last - 1 && __Pyx__PyBytes_AsDouble_IsSpace(last[-1]))
        last--;
    length = last - start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyBytes_AsDouble_inf_nan(start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    digits = 0;
    for (i=0; i < length; digits += start[i++] != '_');
    if (likely(digits == length)) {
        value = PyOS_string_to_double(start, &end, NULL);
    } else if (digits < 40) {
        char number[40];
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((digits + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}

/* pyobject_as_double */
static double __Pyx__PyObject_AsDouble(PyObject* obj) {
    if (PyUnicode_CheckExact(obj)) {
        return __Pyx_PyUnicode_AsDouble(obj);
    } else if (PyBytes_CheckExact(obj)) {
        return __Pyx_PyBytes_AsDouble(obj);
    } else if (PyByteArray_CheckExact(obj)) {
        return __Pyx_PyByteArray_AsDouble(obj);
    } else {
        PyObject* float_value;
#if !CYTHON_USE_TYPE_SLOTS
        float_value = PyNumber_Float(obj);  if ((0)) goto bad;
        (void)__Pyx_PyObject_CallOneArg;
#else
        PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
        if (likely(nb) && likely(nb->nb_float)) {
            float_value = nb->nb_float(obj);
            if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) {
                __Pyx_TypeName float_value_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(float_value));
                PyErr_Format(PyExc_TypeError,
                    "__float__ returned non-float (type " __Pyx_FMT_TYPENAME ")",
                    float_value_type_name);
                __Pyx_DECREF_TypeName(float_value_type_name);
                Py_DECREF(float_value);
                goto bad;
            }
        } else {
            float_value = __Pyx_PyObject_CallOneArg((PyObject*)&PyFloat_Type, obj);
        }
#endif
        if (likely(float_value)) {
            double value = __Pyx_PyFloat_AS_DOUBLE(float_value);
            Py_DECREF(float_value);
            return value;
        }
    }
bad:
    return (double)-1;
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* PyLongCompare */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        return 1;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            return (__Pyx_PyLong_IsZero(op1) == 1);
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                return 0;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                return 0;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        return (unequal == 0);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        return ((double)a == (double)b);
    }
    return __Pyx_PyObject_IsTrueAndDecref(
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* CallTypeTraverse */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod0 (used by PyType_Ready) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* TypeImport */
#ifndef __PYX_HAVE_RT_ImportType_3_2_4
#define __PYX_HAVE_RT_ImportType_3_2_4
static PyTypeObject *__Pyx_ImportType_3_2_4(PyObject *module, const char *module_name, const char *class_name,
    size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_4 check_size)
{
    PyObject *result = 0;
    Py_ssize_t basicsize;
    Py_ssize_t itemsize;
#if defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API)
    PyObject *py_basicsize;
    PyObject *py_itemsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#if !( defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API) )
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
    itemsize = ((PyTypeObject *)result)->tp_itemsize;
#else
    if (size == 0) {
        return (PyTypeObject *)result;
    }
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
    py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
    if (!py_itemsize)
        goto bad;
    itemsize = PyLong_AsSsize_t(py_itemsize);
    Py_DECREF(py_itemsize);
    py_itemsize = 0;
    if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (itemsize) {
        if (size % alignment) {
            alignment = size % alignment;
        }
        if (itemsize < (Py_ssize_t)alignment)
            itemsize = (Py_ssize_t)alignment;
    }
    if ((size_t)(basicsize + itemsize) < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize+itemsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error_3_2_4 &&
            ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd-%zd from PyObject",
            module_name, class_name, size, basicsize, basicsize+itemsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_2_4 && (size_t)basicsize > size) {
        if (PyErr_WarnFormat(NULL, 0,
                "%.200s.%.200s size changed, may indicate binary incompatibility. "
                "Expected %zd from C header, got %zd from PyObject",
                module_name, class_name, size, basicsize) < 0) {
            goto bad;
        }
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* GetVTable */
static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* PxdImportShared (used by VoidPtrImport) */
#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_4
#define __PYX_HAVE_RT_ImportFromPxd_3_2_4
static int __Pyx_ImportFromPxd_3_2_4(PyObject *module, const char *name, void **p, const char *sig, const char *what) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, "__pyx_capi__");
    if (!d)
        goto bad;
#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
    PyDict_GetItemStringRef(d, name, &cobj);
#else
    cobj = PyDict_GetItemString(d, name);
    Py_XINCREF(cobj);
#endif
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C %.8s %.200s",
                PyModule_GetName(module), what, name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(d);
    Py_XDECREF(cobj);
    return -1;
}
#endif

/* VoidPtrImport */
#ifndef __PYX_HAVE_RT_ImportVoidPtr_3_2_4
#define __PYX_HAVE_RT_ImportVoidPtr_3_2_4
static int __Pyx_ImportVoidPtr_3_2_4(PyObject *module, const char *name, void **p, const char *sig) {
    return __Pyx_ImportFromPxd_3_2_4(module, name, p, sig, "variable");
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_2_4
#define __PYX_HAVE_RT_ImportFunction_3_2_4
static int __Pyx_ImportFunction_3_2_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    int result = __Pyx_ImportFromPxd_3_2_4(module, funcname, &tmp.p, sig, "function");
    if (result == 0) {
        *f = tmp.fp;
    }
    return result;
}
#endif

/* Py3UpdateBases */
static PyObject*
__Pyx_PEP560_update_bases(PyObject *bases)
{
    Py_ssize_t i, j, size_bases;
    PyObject *base = NULL, *meth, *new_base, *result, *new_bases = NULL;
#if CYTHON_ASSUME_SAFE_SIZE
    size_bases = PyTuple_GET_SIZE(bases);
#else
    size_bases = PyTuple_Size(bases);
    if (size_bases < 0) return NULL;
#endif
    for (i = 0; i < size_bases; i++) {
#if CYTHON_AVOID_BORROWED_REFS
        Py_CLEAR(base);
#endif
#if CYTHON_ASSUME_SAFE_MACROS
        base = PyTuple_GET_ITEM(bases, i);
#else
        base = PyTuple_GetItem(bases, i);
        if (!base) goto error;
#endif
#if CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(base);
#endif
        if (PyType_Check(base)) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_mstate_global->__pyx_n_u_mro_entries);
        if (!meth && PyErr_Occurred()) {
            goto error;
        }
        if (!meth) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        new_base = __Pyx_PyObject_CallOneArg(meth, bases);
        Py_DECREF(meth);
        if (!new_base) {
            goto error;
        }
        if (!PyTuple_Check(new_base)) {
            PyErr_SetString(PyExc_TypeError,
                            "__mro_entries__ must return a tuple");
            Py_DECREF(new_base);
            goto error;
        }
        if (!new_bases) {
            if (!(new_bases = PyList_New(i))) {
                goto error;
            }
            for (j = 0; j < i; j++) {
                PyObject *base_from_list;
#if CYTHON_ASSUME_SAFE_MACROS
                base_from_list = PyTuple_GET_ITEM(bases, j);
                PyList_SET_ITEM(new_bases, j, base_from_list);
                Py_INCREF(base_from_list);
#else
                base_from_list = PyTuple_GetItem(bases, j);
                if (!base_from_list) goto error;
                Py_INCREF(base_from_list);
                if (PyList_SetItem(new_bases, j, base_from_list) < 0) goto error;
#endif
            }
        }
#if CYTHON_ASSUME_SAFE_SIZE
        j = PyList_GET_SIZE(new_bases);
#else
        j = PyList_Size(new_bases);
        if (j < 0) goto error;
#endif
        if (PyList_SetSlice(new_bases, j, j, new_base) < 0) {
            goto error;
        }
        Py_DECREF(new_base);
    }
    if (!new_bases) {
        Py_INCREF(bases);
        return bases;
    }
    result = PyList_AsTuple(new_bases);
    Py_DECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return result;
error:
    Py_XDECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return NULL;
}

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4)
    PyDict_SetDefaultRef(d, key, default_value, &value);
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(marker);
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
#if PY_VERSION_HEX < 0x030900B1
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
#endif
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* PyObjectCall2Args (used by Py3ClassCreate) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectLookupSpecial (used by Py3ClassCreate) */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_mstate_global->__pyx_n_u_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_mstate_global->__pyx_n_u_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
    Py_XDECREF(owned_metaclass);
    return result;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__fplll_3a__3a_MatGSOInterfaceFlags(enum fplll::MatGSOInterfaceFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum fplll::MatGSOInterfaceFlags neg_one = (enum fplll::MatGSOInterfaceFlags) -1, const_zero = (enum fplll::MatGSOInterfaceFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum fplll::MatGSOInterfaceFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum fplll::MatGSOInterfaceFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum fplll::MatGSOInterfaceFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum fplll::MatGSOInterfaceFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum fplll::MatGSOInterfaceFlags) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(enum fplll::MatGSOInterfaceFlags),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(enum fplll::MatGSOInterfaceFlags));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum fplll::FloatType __Pyx_PyLong_As_enum__fplll_3a__3a_FloatType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum fplll::FloatType neg_one = (enum fplll::FloatType) -1, const_zero = (enum fplll::FloatType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum fplll::FloatType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum fplll::FloatType) -1;
        val = __Pyx_PyLong_As_enum__fplll_3a__3a_FloatType(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(enum fplll::FloatType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) >= 2 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((((enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum fplll::FloatType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) >= 3 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((((((enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum fplll::FloatType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) >= 4 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((((((((enum fplll::FloatType)digits[3]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (enum fplll::FloatType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum fplll::FloatType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum fplll::FloatType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum fplll::FloatType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum fplll::FloatType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(enum fplll::FloatType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((enum fplll::FloatType)-1)*(((((enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum fplll::FloatType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) ((((((enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum fplll::FloatType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((enum fplll::FloatType)-1)*(((((((enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum fplll::FloatType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) ((((((((enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum fplll::FloatType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) (((enum fplll::FloatType)-1)*(((((((((enum fplll::FloatType)digits[3]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum fplll::FloatType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum fplll::FloatType, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum fplll::FloatType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum fplll::FloatType) ((((((((((enum fplll::FloatType)digits[3]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[2]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[1]) << PyLong_SHIFT) | (enum fplll::FloatType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum fplll::FloatType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum fplll::FloatType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum fplll::FloatType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum fplll::FloatType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum fplll::FloatType val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum fplll::FloatType) -1;
#endif
        if (unlikely(ret))
            return (enum fplll::FloatType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum fplll::FloatType");
    return (enum fplll::FloatType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum fplll::FloatType");
    return (enum fplll::FloatType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__2);
    }
    goto done;
}
#endif

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) goto bad;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  else if (!PyErr_Occurred()) {
      PyErr_SetString(PyExc_TypeError,
                      "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
