Change np.intc to np.array(dtype=intc) and np.double as well