On Fri, Jul 29, 2011 at 9:52 AM, Yoshi Rokuko <[email protected]> wrote: > > hey, i have an algorithm that computes two matrices like that: > > A(i,k) = (x(i,k) + y(i,k))/norm > B(i,k) = (x(i,k) - y(i,k))/norm > > it would be convenient to have the method like that: > >>>> A, B = mod.meth(C, prob=.95) > > is ith possible to return two arrays? > > best regards
Yes, return a tuple of two elements. e.g. def make_range(center, spread): return center-spread, center+spread low, high = make_range(5,1) assert low == 4 assert high == 6 Peter _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
