Indexing into a matrix
20 Dec
2007
20 Dec
'07
5:10 p.m.
x = M.rand(3,1) <-------- 3x1 x[M.isfinite(x)] matrix([[ 0.36541551, 0.6305087 , 0.66054899]]) <---------- Should this be 3x1?
My workaround is awkward:
x[M.where(M.isfinite(x).A)[0]] matrix([[ 0.36541551], [ 0.6305087 ], [ 0.66054899]])
5970
Age (days ago)
5970
Last active (days ago)
0 comments
1 participants
participants (1)
-
Keith Goodman