Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nPara = 3;
- cf = Compile[{{x, _Real, 1}},
- Sum[x[[i]], {i, nPara}],
- CompilationOptions -> {"InlineExternalDefinitions" -> True}
- ]
- With[{nPara = nPara},
- Compile[{{x, _Real, 1}},
- Sum[x[[i]], {i, nPara}],
- CompilationOptions -> {"InlineExternalDefinitions" -> True}
- ]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement