[Numpy-discussion] matrix indexing question
Bill Baxter
wbaxter@gmail....
Mon Mar 26 23:21:23 CDT 2007
On 3/27/07, Alan Isaac <aisaac@american.edu> wrote:
> May I see a use case where the desired
> return when iterating through a matrix
> is rows as matrices? That has never
> been what I wanted.
If you use a row vector convention it make plenty of sense.
AllMyPoints = mat(rand(100,2)) # 100 two-d points
for pt in AllMyPoints:
xformedPt = pt * TransformMatrix
# do something to transformed point
--bb
More information about the Numpy-discussion
mailing list