On 09/05/2015 17:09, pauld11718 wrote:
An interesting observation :
Any simple program with just :
cimport numpy as np
doesnot compile.
Fascinating. What has this got to do with the general election results
from the UK? Or is there some other context that you're not prepared to
let us i
On 09/05/2015 16:56, pauld11718 wrote:
NO the compilation isn't working...
The setup.py :
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("visco.pyx")
)
If you cannot be bothered to supply any context so I've no idea what
you're talki
An interesting observation :
Any simple program with just :
cimport numpy as np
doesnot compile.
--
https://mail.python.org/mailman/listinfo/python-list
NO the compilation isn't working...
The setup.py :
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("visco.pyx")
)
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, May 10, 2015 at 12:51 AM, pauld11718 wrote:
> Unable to compile :
> /usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using
> deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API
> NPY_1_7_API_VERSION" [-Wcpp]
> #warning "Using deprecated NumPy API,
Unable to compile :
import numpy as np
cimport numpy as np
import math as m
DTYPE = np.float
ctypedef np.float_t DTYPE_t
def visc1(float t, float dcal):
cdef float h, tr, trinv, rhor
cdef float eta0, sumi, i, sumj, im1, jm1, eta
cdef np.ndarray vb = np.array([1.0, 0.940695, 0