Precompute shape of ufunc output.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Precompute shape of ufunc output.

drtodd13
If I want to provide the "out" kwarg to, for example, a reduce ufunc then I
need to know the shape of the output given the other set of inputs.  Is
there a utility function to take these arguments and just compute what the
shape of the output is going to be without actually computing the result?
Would be nice if there were a standard kwarg for many functions that just
tells you the shape of the output without actually computing it but I don't
think that exists.  Any ideas appreciated.  Thanks.



--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
_______________________________________________
NumPy-Discussion mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/numpy-discussion