[Numpy-discussion] c-api return two arrays

Yoshi Rokuko yoshi at rokuko.net
Fri Jul 29 04:52:12 EDT 2011


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




More information about the NumPy-Discussion mailing list