On 04/12/2013 12:55, Sturla Molden wrote:
>
> On 26 Nov 2013, at 16:18, Daniele Nicolodi wrote:
>
>> Hello,
>>
>> I believe there is a bug in how assignment to typed memoryviews is
>> handled in the compiler. I think the following code should be valid code:
>>
>> cdef double[::1] a = np.arange
On 26 Nov 2013, at 16:18, Daniele Nicolodi wrote:
> Hello,
>
> I believe there is a bug in how assignment to typed memoryviews is
> handled in the compiler. I think the following code should be valid code:
>
> cdef double[::1] a = np.arange(10, dtype=np.double)
> cdef double[::1] b = np.emp
Hello,
I believe there is a bug in how assignment to typed memoryviews is
handled in the compiler. I think the following code should be valid code:
cdef double[::1] a = np.arange(10, dtype=np.double)
cdef double[::1] b = np.empty(a.size // 2)
b[:] = a[::2]
However, the Cython compiler com