MATLAB の「cellfun」に似た python または numpy のアプローチはありますか? 長さの異なる ~300k セルを含む MATLAB セル配列であるオブジェクトに関数を適用したいと考えています。
非常に簡単な例:
>>> xx = [(4,2), (1,2,3)]
>>> yy = np.exp(xx)
Traceback (most recent call last):
File "<pyshell#47>", line 1, in <module>
yy = np.exp(xx)
AttributeError: 'tuple' object has no attribute 'exp'