Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a datatype declaration

Cython does not use strings for the dtype attribute of ndarrays
in declarations.
  • Loading branch information...
commit baf2a2d2902d81e5ec629f604336b7dc761876a2 1 parent a9045f3
@aeberspaecher aeberspaecher authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/best-practices.rst
View
2  src/best-practices.rst
@@ -579,7 +579,7 @@ this Cython code:
double *mesh)
def mesh_exp(double r_min, double r_max, double a, int N):
- cdef ndarray[double, mode="c"] mesh = empty(N, dtype="double")
+ cdef ndarray[double, mode="c"] mesh = empty(N, dtype=double)
c_mesh_exp(&r_min, &r_max, &a, &N, &mesh[0])
return mesh
Please sign in to comment.
Something went wrong with that request. Please try again.