Skip to content

Commit

Permalink
remove exception checking for _dot() (PreferredAI#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqtg authored Dec 1, 2023
1 parent 678399a commit 0079c60
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cornac/utils/fast_dot.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ from cython.parallel import prange
from scipy.linalg.cython_blas cimport sdot, ddot


cdef floating _dot(int n, floating *x, int incx,
floating *y, int incy) nogil:
cdef floating _dot(
int n,
floating *x,
int incx,
floating *y,
int incy
) noexcept nogil:
if floating is float:
return sdot(&n, x, &incx, y, &incy)
else:
Expand Down

0 comments on commit 0079c60

Please sign in to comment.