blob: 4753bab124f01e23368b8082fa91ea33e9b33a55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# mode: compile
# cython: test_fail_if_c_code_has = __Pyx_ErrOccurredWithGIL
# cython-generated memoryview code shouldn't resort to
# __Pyx_ErrOccurredWithGIL for error checking (because it's inefficient
# inside a nogil block)
def assign(double[:] a, double[:] b):
with nogil:
a[:] = b[:]
|