Theres also numpy.tile which is like a repmat generalized to N-dim. --bb
On 1/27/07, Sven Schreiber <[EMAIL PROTECTED]> wrote: > Sven Schreiber schrieb: > > Hi, > > > > the kron(a,b) function seems to allow shapes such as (0,x) or (y,0) only > > for the second argument b, not for the first argument a. (See below for > > examples.) > > > > Maybe it's too harsh to call it a bug because the result is typically > > not defined mathematically. But then why differentiate between allowing > > those things for b (very useful), but not for a (thus requiring > > workarounds.) > > > > > > Well in the meantime I learned several things; > > for my particular problem matlib.repmat is better suited than kron > anyway (note that repmat isn't mentioned yet in the numpy book), > > and "zero-length dimensions" may not be the accurate term in numpy-speak > (would zero-length axis be ok?), > > however I still haven't learned the reason for kron's partial limitation > described above... any insights on this? > > thanks again, > sven > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion