Group Abstract Group Abstract

Message Boards Message Boards

1
|
8.8K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Why my Mathematica 12.0 cannot find a definition for Sum in compiling

Posted 5 years ago
POSTED BY: Han Wu
3 Replies
POSTED BY: Han Wu

I find an identical behaviour as Han Wu with my Mathematica 12.0.

I don’t have this issue using 12.1 in the cloud

In[1]:= myFunc=FunctionCompile[Function[Typed[arg,"Real64"],Sum[arg^2+i, {i, 10}]]];
myFunc[18.]

Out[2]= 3295.

Perhaps it’s a bug or issue with your installation?

I do get this behaviour when using NSum—it looks like that is not compilable. Perhaps there is something you are doing with your sum that forces it to remain unevaluated or use NSum?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard