You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK, there's no way to return a new const-array from an njit function:
import numba
import numpy as np
@numba.jit(nopython=True)
def f():
x = np.empty(10, dtype=np.bool_)
x.setflags(write=False) # Unknown attribute 'setflags' of type array(bool, 1d, C)
return x
f()
Immutability is fundamental to safe, well designed, easy-to-reason-about APIs, and would a helpful addition.
The text was updated successfully, but these errors were encountered:
AFAIK, there's no way to return a new const-array from an njit function:
Immutability is fundamental to safe, well designed, easy-to-reason-about APIs, and would a helpful addition.
The text was updated successfully, but these errors were encountered: