{"action":"created","issue":{"url":"https://api.github.com/repos/tmolteno/necpp/issues/16","labels_url":"https://api.github.com/repos/tmolteno/necpp/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tmolteno/necpp/issues/16/comments","events_url":"https://api.github.com/repos/tmolteno/necpp/issues/16/events","html_url":"https://github.com/tmolteno/necpp/issues/16","id":60687773,"number":16,"title":"exception with eigen library","user":{"login":"nicolasbarbot","id":11298144,"avatar_url":"https://avatars.githubusercontent.com/u/11298144?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasbarbot","html_url":"https://github.com/nicolasbarbot","followers_url":"https://api.github.com/users/nicolasbarbot/followers","following_url":"https://api.github.com/users/nicolasbarbot/following{/other_user}","gists_url":"https://api.github.com/users/nicolasbarbot/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasbarbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasbarbot/subscriptions","organizations_url":"https://api.github.com/users/nicolasbarbot/orgs","repos_url":"https://api.github.com/users/nicolasbarbot/repos","events_url":"https://api.github.com/users/nicolasbarbot/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasbarbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T16:37:15Z","updated_at":"2015-03-12T02:56:14Z","closed_at":null,"body":"Hi,\r\nI see that the eigen library can replace the safe_array class.\r\nBy rebuilding libnecpp.so using \"configure --with-eigen\", the build succeeded however the execution of the example programm failed with:\r\ntest_nec: /usr/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:393: Eigen::DenseCoeffsBase<Derived, 1>::Scalar& Eigen::DenseCoeffsBase<Derived, 1>::operator[](Eigen::DenseCoeffsBase<Derived, 1>::Index) [with Derived = Eigen::Matrix<double, -1, 1>; Eigen::DenseCoeffsBase<Derived, 1>::Scalar = double; Eigen::DenseCoeffsBase<Derived, 1>::Index = long int]: Assertion `index >= 0 && index < size()' failed.\r\nAborted\r\nwhich is due to a negative index in c_geometry.cpp:1840\r\n       for (int i = 0; i < ic; i++ ) {\r\n          ix= jco[i];\r\n          if ( ix <= 0) {\r\n            ix=- ix;\r\n            int ixx = ix-1;\r\n            x[ixx]= xa;\r\n            y[ixx]= ya;\r\n            z[ixx]= za;\r\n            continue;\r\n          }\r\nwhere, in the first iteration ix = 0 and ixx = -1 (which is used as an index).\r\n\r\nI would like to know if the eigen library is supported (and this issue is valid) or if this library should not be used with necpp (and you can forget my post). (This problem does not appear if i use the safe_array class).\r\n\r\nThank you in advance\r\n\r\nNicolas"},"comment":{"url":"https://api.github.com/repos/tmolteno/necpp/issues/comments/78415309","html_url":"https://github.com/tmolteno/necpp/issues/16#issuecomment-78415309","issue_url":"https://api.github.com/repos/tmolteno/necpp/issues/16","id":78415309,"user":{"login":"tmolteno","id":85630,"avatar_url":"https://avatars.githubusercontent.com/u/85630?v=3","gravatar_id":"","url":"https://api.github.com/users/tmolteno","html_url":"https://github.com/tmolteno","followers_url":"https://api.github.com/users/tmolteno/followers","following_url":"https://api.github.com/users/tmolteno/following{/other_user}","gists_url":"https://api.github.com/users/tmolteno/gists{/gist_id}","starred_url":"https://api.github.com/users/tmolteno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmolteno/subscriptions","organizations_url":"https://api.github.com/users/tmolteno/orgs","repos_url":"https://api.github.com/users/tmolteno/repos","events_url":"https://api.github.com/users/tmolteno/events{/privacy}","received_events_url":"https://api.github.com/users/tmolteno/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T02:56:14Z","updated_at":"2015-03-12T02:56:14Z","body":"Hi Nicolas\r\n\r\nAt the moment eigen has bugs. I have been slowly tracking them down, and will keep doing so. I will Keep this issue open (If that's OK) and close it when the bugs are fixed. \r\n\r\nKind Regards\r\n\r\nTim"}}