[Numpy-discussion] getting the equivalent complex dtype from a real or int array
heng at cantab.net
Wed Oct 30 05:23:11 EDT 2013
On 29/10/13 18:01, Sebastian Berg wrote:
> On Tue, 2013-10-29 at 16:47 +0000, Henry Gomersall wrote:
>> >Is there a way to extract the size of array that would be created by
>> >doing 1j*array?
> There is np.result_type. It does the handling of scalars as normal,
> dtypes will be handled like arrays (scalars are allowed to lose
This is clearly the correct way to do this. Many thanks.
More information about the NumPy-Discussion