|
From: <co...@ph...> - 2006-02-11 05:19:55
|
Gary Ruben <gr...@bi...> 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') temp['f1'].strides (10,) > 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/ |co...@ph... |