From a6f8a72813237996036cd3ed4c46dec2a8a5d96e Mon Sep 17 00:00:00 2001 From: John ZuHone Date: Thu, 1 Feb 2024 17:39:22 -0500 Subject: [PATCH] This is insane --- pyxsim/lib/spectra.pyx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyxsim/lib/spectra.pyx b/pyxsim/lib/spectra.pyx index a13007b6..fe78cf6a 100644 --- a/pyxsim/lib/spectra.pyx +++ b/pyxsim/lib/spectra.pyx @@ -4,6 +4,10 @@ cimport cython cimport numpy as np +@cython.cdivision(True) +@cython.wraparound(False) +@cython.boundscheck(False) +@cython.cpow(True) def power_law_spectrum( int num_cells, np.ndarray[np.float64_t, ndim=1] emid, @@ -24,6 +28,9 @@ def power_law_spectrum( return spec +@cython.cdivision(True) +@cython.wraparound(False) +@cython.boundscheck(False) def line_spectrum( int num_cells, np.ndarray[np.float64_t, ndim=1] ee,