From fb9706011fb97ce7dba77ade9e47b4df93ac272f Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sun, 3 Dec 2023 11:04:42 +0100 Subject: [PATCH] Compatibility with cython 3.0 --- pysph/base/linalg3.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pysph/base/linalg3.pyx b/pysph/base/linalg3.pyx index 1130654f3..d4ee036d2 100644 --- a/pysph/base/linalg3.pyx +++ b/pysph/base/linalg3.pyx @@ -4,15 +4,15 @@ # Eigen decomposition code for symmetric 3x3 matrices, some code taken # from the public domain Java Matrix library JAMA -from libc.math cimport sqrt, cos, acos, sin, atan2, M_PI +from libc.math cimport sqrt, cos, acos, sin, atan2, fabs, M_PI from libc.string cimport memcpy from numpy.linalg import eigh cimport numpy import numpy -cdef extern: - double fabs(double) nogil +# cdef extern: +# double fabs(double) nogil # this is cython substitute for const values cdef enum: