Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit e201072

Browse files
committed
Add cython directives to kernels
1 parent 1cd41ce commit e201072

File tree

2 files changed

+48
-38
lines changed

2 files changed

+48
-38
lines changed

polylearn/kernels_fast.cpp

Lines changed: 42 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

polylearn/kernels_fast.pxd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# cython: language_level=3
2+
# cython: boundscheck=False
3+
# cython: wraparound=False
4+
# cython: cdivision=True
5+
6+
17
cdef inline double _fast_anova_kernel(double[::1, :] A,
28
double[:, ::1] P,
39
Py_ssize_t s,

0 commit comments

Comments
 (0)