{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/stan/issues/1754","repository_url":"https://api.github.com/repos/stan-dev/stan","labels_url":"https://api.github.com/repos/stan-dev/stan/issues/1754/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/stan/issues/1754/comments","events_url":"https://api.github.com/repos/stan-dev/stan/issues/1754/events","html_url":"https://github.com/stan-dev/stan/issues/1754","id":126401052,"number":1754,"title":"Error: no member named 'deep_copy' in namespace 'stan::model'","user":{"login":"to-mi","id":935625,"avatar_url":"https://avatars.githubusercontent.com/u/935625?v=3","gravatar_id":"","url":"https://api.github.com/users/to-mi","html_url":"https://github.com/to-mi","followers_url":"https://api.github.com/users/to-mi/followers","following_url":"https://api.github.com/users/to-mi/following{/other_user}","gists_url":"https://api.github.com/users/to-mi/gists{/gist_id}","starred_url":"https://api.github.com/users/to-mi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/to-mi/subscriptions","organizations_url":"https://api.github.com/users/to-mi/orgs","repos_url":"https://api.github.com/users/to-mi/repos","events_url":"https://api.github.com/users/to-mi/events{/privacy}","received_events_url":"https://api.github.com/users/to-mi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bob-carpenter","id":3383807,"avatar_url":"https://avatars.githubusercontent.com/u/3383807?v=3","gravatar_id":"","url":"https://api.github.com/users/bob-carpenter","html_url":"https://github.com/bob-carpenter","followers_url":"https://api.github.com/users/bob-carpenter/followers","following_url":"https://api.github.com/users/bob-carpenter/following{/other_user}","gists_url":"https://api.github.com/users/bob-carpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/bob-carpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bob-carpenter/subscriptions","organizations_url":"https://api.github.com/users/bob-carpenter/orgs","repos_url":"https://api.github.com/users/bob-carpenter/repos","events_url":"https://api.github.com/users/bob-carpenter/events{/privacy}","received_events_url":"https://api.github.com/users/bob-carpenter/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/stan-dev/stan/milestones/19","html_url":"https://github.com/stan-dev/stan/milestones/v2.9.0++","labels_url":"https://api.github.com/repos/stan-dev/stan/milestones/19/labels","id":1437786,"number":19,"title":"v2.9.0++","description":"Next version after v2.9.0.","creator":{"login":"syclik","id":425751,"avatar_url":"https://avatars.githubusercontent.com/u/425751?v=3","gravatar_id":"","url":"https://api.github.com/users/syclik","html_url":"https://github.com/syclik","followers_url":"https://api.github.com/users/syclik/followers","following_url":"https://api.github.com/users/syclik/following{/other_user}","gists_url":"https://api.github.com/users/syclik/gists{/gist_id}","starred_url":"https://api.github.com/users/syclik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syclik/subscriptions","organizations_url":"https://api.github.com/users/syclik/orgs","repos_url":"https://api.github.com/users/syclik/repos","events_url":"https://api.github.com/users/syclik/events{/privacy}","received_events_url":"https://api.github.com/users/syclik/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":16,"state":"open","created_at":"2015-12-01T16:06:42Z","updated_at":"2016-02-03T20:41:48Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-01-13T11:47:59Z","updated_at":"2016-02-04T10:39:19Z","closed_at":null,"body":"I'm running rstan (Version 2.9.0, packaged: 2016-01-05 16:17:47 UTC, GitRev: 05c3d0058b6a) and R version 3.2.3 (2015-12-10) on Mac OS X.\r\n\r\nWith the simple test model:\r\n````\r\ndata {\r\n  matrix[5, 2] X;\r\n}\r\n\r\ntransformed data {\r\n  matrix[5, 2] Xt;\r\n\r\n  Xt <- X;\r\n  Xt[,2] <- Xt[,2] / sd(Xt[,2]);\r\n}\r\n\r\nparameters {\r\n  real a;\r\n}\r\n\r\nmodel {\r\n  to_vector(Xt) ~ normal(a, 1.0);\r\n}\r\n```\r\n\r\nI'm getting the following error:\r\n````\r\nError in compileCode(f, code, language = language, verbose = verbose) : \r\n  Compilation ERROR, function(s)/method(s) not created! file3ae4a3a3ab.cpp:74:38: error: no member named 'deep_copy' in namespace 'stan::model'\r\n                        stan::model::deep_copy(divide(stan::model::rvalue(Xt, stan::model::cons_list(stan::model::index_omni(), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())), \"Xt\"),sd(stan::model::rvalue(Xt, stan::model::cons_list(stan::model::index_omni(), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())), \"Xt\")))), \r\n                        ~~~~~~~~~~~~~^\r\n1 error generated.\r\nmake: *** [file3ae4a3a3ab.o] Error 1\r\n````\r\n\r\nMy naive search of the repository for deep_copy.hpp in GitHub seems to indicate that \r\n`#include <stan/model/indexing/deep_copy.hpp>`\r\nis only present in the test case for deep copying but nowhere else."},"comment":{"url":"https://api.github.com/repos/stan-dev/stan/issues/comments/179763418","html_url":"https://github.com/stan-dev/stan/issues/1754#issuecomment-179763418","issue_url":"https://api.github.com/repos/stan-dev/stan/issues/1754","id":179763418,"user":{"login":"to-mi","id":935625,"avatar_url":"https://avatars.githubusercontent.com/u/935625?v=3","gravatar_id":"","url":"https://api.github.com/users/to-mi","html_url":"https://github.com/to-mi","followers_url":"https://api.github.com/users/to-mi/followers","following_url":"https://api.github.com/users/to-mi/following{/other_user}","gists_url":"https://api.github.com/users/to-mi/gists{/gist_id}","starred_url":"https://api.github.com/users/to-mi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/to-mi/subscriptions","organizations_url":"https://api.github.com/users/to-mi/orgs","repos_url":"https://api.github.com/users/to-mi/repos","events_url":"https://api.github.com/users/to-mi/events{/privacy}","received_events_url":"https://api.github.com/users/to-mi/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T10:39:19Z","updated_at":"2016-02-04T10:39:19Z","body":"Thanks! The new R-style indexing is great and makes code cleaner."}}