Skip to content

Commit ea887a8

Browse files
committed
fix compilation warning
1 parent 68f2572 commit ea887a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlinsights/mlmodel/direct_blas_lapack.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def dgelss(double[:, ::1] A, double [:, ::1] B, double prec=-1.):
6868
return res
6969

7070

71-
cdef void copy2array2(const double* pC, double[:, ::1] C) nogil:
71+
cdef void copy2array2(const double* pC, double[:, ::1] C) noexcept nogil:
7272
"""
7373
Copies double from a buffer to an array.
7474
"""
7575
cdef size_t size = C.shape[0] * C.shape[1]
7676
memcpy(&C[0, 0], pC, size * sizeof(double))
7777

7878

79-
cdef void copy2array1(const double* pC, double[::1] C) nogil:
79+
cdef void copy2array1(const double* pC, double[::1] C) noexcept nogil:
8080
"""
8181
Copies double from a buffer to an array.
8282
"""
@@ -110,7 +110,7 @@ cdef int _dgelss(double[:, ::1] A, double [:, ::1] B, int* rank,
110110

111111

112112
cdef void _dgelss_noalloc(double[:, ::1] A, double [:, ::1] B, int* rank, double* rcond,
113-
double* pS, double *pC, int* work, int* info) nogil:
113+
double* pS, double *pC, int* work, int* info) noexcept nogil:
114114
"""
115115
Same function as :func:`dgels` but does no check.
116116

0 commit comments

Comments
 (0)