[Numpy-discussion] NumPy Glossary: a request for review

David M. Cooke cookedm at physics.mcmaster.ca
Fri Feb 10 21:20:03 CST 2006

Gary Ruben <gruben at bigpond.net.au> writes:

> Hi Sasha,
> A couple of points:
> Stride
>       The distance (in bytes) between the two concecutive elements
> along an axis.
> Stride isn't the distance in bytes is it?  Isn't it just the index
> increment or alternatively the distance in terms of the multiplier of
> the word length of the contained type. Also, a slight typo:
> concecutive -> consecutive.

In numpy usage, it's bytes. It's particularly important when you've
got a record array of mixed types. Travis's example is

temp = array([(1.8,2),(1.7,3)],dtype='f8,i2')

> Record
>       A composite element of an array similar to C struct.
> This implies that you can contain different types in a record, which I
> think is only true if you have an object array.

Nope; see above.

|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca

More information about the Numpy-discussion mailing list