numpy.double が要素ごとにネストされたリスト要素に適用され、numpy.complex が適用されないのはなぜですか?
例を次に示します。
>>> import numpy
>>> L = [['1','2'],['2','3']]
>>> print numpy.double( L )
[[ 1. 2.]
[ 2. 3.]]
>>> print numpy.complex( L )
Traceback (most recent call last):
File "avr_std.py", line 17, in <module>
print np.complex( L )
TypeError: complex() argument must be a string or a number