求问关于Compile的问题
mathematica吧
全部回复
仅看楼主
level 1
1.kx11为经过内插(Interpolation)的函数;
2.http://note.youdao.com/share/?id=bf2a031f7d0d69064941032c7857dfd1&type=note。这篇关于Compile的笔记当中,《原则三,模式匹配不能编译》还是不能很好理解,可以再解释一下吗
Jwij = Compile[{{x, _Real}},
NIntegrate[kx11[w]/(x - w), {w, 0.01, x - 10^-6}] +
NIntegrate[kx11[w]/(x - w), {w, x + 10^-6, 25}],
RuntimeAttributes -> {Listable}, Parallelization -> True];
Jwij[{0.011 , 2., 3., 6., 8., 10., 11., 12., 15., 16.}]
2023年08月16日 09点08分 1
吧务
level 15
……kx11 的定义明显没包含在Compile的里面,你在代码别说原则三了,连原则二都过不了。
2023年09月02日 00点09分 2
1