{"action":"closed","issue":{"url":"https://api.github.com/repos/numba/numba/issues/1596","repository_url":"https://api.github.com/repos/numba/numba","labels_url":"https://api.github.com/repos/numba/numba/issues/1596/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/1596/comments","events_url":"https://api.github.com/repos/numba/numba/issues/1596/events","html_url":"https://github.com/numba/numba/issues/1596","id":124157905,"number":1596,"title":"Invalid usage of Function(np.random.standard_normal) with parameters (int64)","user":{"login":"seanlaw","id":7473521,"avatar_url":"https://avatars.githubusercontent.com/u/7473521?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlaw","html_url":"https://github.com/seanlaw","followers_url":"https://api.github.com/users/seanlaw/followers","following_url":"https://api.github.com/users/seanlaw/following{/other_user}","gists_url":"https://api.github.com/users/seanlaw/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlaw/subscriptions","organizations_url":"https://api.github.com/users/seanlaw/orgs","repos_url":"https://api.github.com/users/seanlaw/repos","events_url":"https://api.github.com/users/seanlaw/events{/privacy}","received_events_url":"https://api.github.com/users/seanlaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numba/numba/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T03:27:00Z","updated_at":"2016-03-15T14:50:59Z","closed_at":"2016-03-15T14:50:59Z","body":"I'm trying out numba for the first time on a simple Black Scholes function:\r\n\r\n    @numba.jit(nopython=True)\r\n    def bsm(I=100000000):\r\n        S0 = 100.0\r\n        K = 105.0\r\n        T = 1.0\r\n        r = 0.05\r\n        sigma = 0.2\r\n    \r\n        z = np.random.standard_normal(I)\r\n        ST = S0 * np.exp((r - 0.5 * np.power(sigma, 2)) * T + sigma  * np.sqrt(T) * z)\r\n        hT = np.maximum(ST - K, 0)\r\n        C0 = np.exp(-r * T)*np.sum(hT)/I\r\n    \r\n        return C0\r\n\r\nIt's returning the following error:\r\n\r\n    TypingError: Invalid usage of Function(np.random.standard_normal) with parameters (int64)\r\n    Known signatures:\r\n     * () -> float64\r\n    File \"<ipython-input-43-204a1a6e6eab>\", line 9\r\n    \r\n    Failed at nopython (nopython frontend)\r\n    Invalid usage of Function(np.random.standard_normal) with parameters (int64)\r\n    Known signatures:\r\n     * () -> float64\r\n    File \"<ipython-input-43-204a1a6e6eab>\", line 9\r\n\r\nIt's not clear how I should interpret this or go about resolving this error. Any suggestions?"}}