Re: Question about function parameter copy

2016-01-18 Thread Random832
On Mon, Jan 18, 2016, at 13:44, Robert wrote: > cdef inline dtype_t _logsumexp(dtype_t[:] X) nogil: > . > > fwdlattice[t, j] = _logsumexp(work_buffer) + framelogprob[t, j] > > I find that [:] is about object copy, but I am not sure about its usage > here in a function parameter. W

Question about function parameter copy

2016-01-18 Thread Robert
Hi, I see the following line in a cython file (.pyx): cdef inline dtype_t _logsumexp(dtype_t[:] X) nogil: . fwdlattice[t, j] = _logsumexp(work_buffer) + framelogprob[t, j] I find that [:] is about object copy, but I am not sure about its usage here in a function parameter. Whet