From: Janko H. <jh...@if...> - 2000-10-17 07:01:42
|
Your mail is in some windows format :-) reshape(resize(a,(1,15)),(5,3)) ,should do it, perhaps reshape makes a new copy, to circumvent this you can do it in two steps. b=resize(a,(1,15)) b.shape = (5,3) Another way is ones((5,3), a.typecode())*a[:,NewAxis] HTH, __Janko |