2006-10-10から1日間の記事一覧
from scipy import * converters = weave.converters def weave_func(x): y = zeros(x.shape, dtype=x.dtype) code = """ for(int i=0; i C++ weave.inline(code, ['x', 'y'], type_converters=converters.blitz) return y def py_func(x): return sin(x) * …