I think the square brackets are very confusing as a numpy user not
familiar with CPython.
On 8/6/08, Christopher Barker <[EMAIL PROTECTED]> wrote:
> Dag Sverre Seljebotn wrote:
> > cdef numpy.ndarray[numpy.int64, ndim=2]
>
> +1 it's very clear what this means. I think the keyword should be require
Dag Sverre Seljebotn wrote:
> cdef numpy.ndarray[numpy.int64, ndim=2]
+1 it's very clear what this means. I think the keyword should be required.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959 voice
7600 Sand Point Way N
Dag Sverre Seljebotn wrote:
> Travis E. Oliphant wrote:
>> Gael Varoquaux wrote:
>>> On Wed, Aug 06, 2008 at 10:35:06AM +0200, Dag Sverre Seljebotn wrote:
>>>
Stéfan van der Walt wrote:
> 2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
>
>> - Require an ndim
Travis E. Oliphant wrote:
> Gael Varoquaux wrote:
>> On Wed, Aug 06, 2008 at 10:35:06AM +0200, Dag Sverre Seljebotn wrote:
>>
>>> Stéfan van der Walt wrote:
>>>
2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
> - Require an ndim keyword:
>
>>
> cd
Gael Varoquaux wrote:
> On Wed, Aug 06, 2008 at 10:35:06AM +0200, Dag Sverre Seljebotn wrote:
>
>> Stéfan van der Walt wrote:
>>
>>> 2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
>>>
- Require an ndim keyword:
>
>
cdef numpy.ndarray[numpy.int64, ndim=2
On Wed, Aug 06, 2008 at 10:35:06AM +0200, Dag Sverre Seljebotn wrote:
> Stéfan van der Walt wrote:
> > 2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
> >> - Require an ndim keyword:
> >> cdef numpy.ndarray[numpy.int64, ndim=2]
> > I'd definitely prefer a comma between the two, and an (optiona
2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
>>> cdef numpy.ndarray[numpy.int64, ndim=2]
>>
>> I'd definitely prefer a comma between the two, and an (optional) ndim
>> keyword argument if possible.
>
> I'm taking this as a vote in favor of this and against "2D" and <>?
>
> The keyword is alre
Stéfan van der Walt wrote:
> 2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
>> - Require an ndim keyword:
>>
>> cdef numpy.ndarray[numpy.int64, ndim=2]
>
> I'd definitely prefer a comma between the two, and an (optional) ndim
> keyword argument if possible.
I'm taking this as a vote in favor
2008/8/6 Dag Sverre Seljebotn <[EMAIL PROTECTED]>:
> - Require an ndim keyword:
>
> cdef numpy.ndarray[numpy.int64, ndim=2]
I'd definitely prefer a comma between the two, and an (optional) ndim
keyword argument if possible.
Looking forward to hearing more!
Regards
Stéfan
I'd like input from anyone interested in the following syntax questions.
The current experimental Cython syntax for efficient ndarray indexing
looks like this:
cdef numpy.ndarray[numpy.int64, 2] arr
Issue 1: One can argue that "2" above looks like a length specifier to
newcomers.
Issue 2: Thi
10 matches
Mail list logo