Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. nPara = 3;
  2. cf = Compile[{{x, _Real, 1}},
  3. Sum[x[[i]], {i, nPara}],
  4. CompilationOptions -> {"InlineExternalDefinitions" -> True}
  5. ]
  6.  
  7. With[{nPara = nPara},
  8. Compile[{{x, _Real, 1}},
  9. Sum[x[[i]], {i, nPara}],
  10. CompilationOptions -> {"InlineExternalDefinitions" -> True}
  11. ]
  12. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement