Skip to content

Commit

Permalink
This is insane
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Feb 1, 2024
1 parent 2894061 commit a6f8a72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyxsim/lib/spectra.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit a6f8a72

Please sign in to comment.