[Numpy-discussion] f2py: variable number of arguments of variable lengths
Fabrice Silva
silva at lma.cnrs-mrs.fr
Wed Feb 17 17:32:56 EST 2010
Le mercredi 17 février 2010 à 16:21 -0600, Robert Kern a écrit :
> > What about the next step: a variable number of arguments that are
> > 2d-arrays with different shapes ?
>
> - nm: number of arrays
> - ncols : a 1d-array (dimension nm) containing the number of columns
> in each array
> - nrows : a 1d-array (dimension nm) containing the number of rows in each array
> - np: the sum of array sizes [(ncols * nrows).sum() in numpy terms]
> - X : a 1d-array (dimension np) containing the concatenated arrays.
>
I guess I will need to be careful when building the arrays from X.
Thanks!
--
Fabrice Silva
LMA UPR CNRS 7051
More information about the NumPy-Discussion
mailing list