{"action":"created","issue":{"url":"https://api.github.com/repos/covarep/covarep/issues/67","labels_url":"https://api.github.com/repos/covarep/covarep/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/covarep/covarep/issues/67/comments","events_url":"https://api.github.com/repos/covarep/covarep/issues/67/events","html_url":"https://github.com/covarep/covarep/pull/67","id":104808126,"number":67,"title":"plain fzero function speeds up calculation of Rd","user":{"login":"twoertwein","id":6618166,"avatar_url":"https://avatars.githubusercontent.com/u/6618166?v=3","gravatar_id":"","url":"https://api.github.com/users/twoertwein","html_url":"https://github.com/twoertwein","followers_url":"https://api.github.com/users/twoertwein/followers","following_url":"https://api.github.com/users/twoertwein/following{/other_user}","gists_url":"https://api.github.com/users/twoertwein/gists{/gist_id}","starred_url":"https://api.github.com/users/twoertwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twoertwein/subscriptions","organizations_url":"https://api.github.com/users/twoertwein/orgs","repos_url":"https://api.github.com/users/twoertwein/repos","events_url":"https://api.github.com/users/twoertwein/events{/privacy}","received_events_url":"https://api.github.com/users/twoertwein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-04T00:40:38Z","updated_at":"2015-09-09T15:55:27Z","closed_at":"2015-09-07T20:14:26Z","pull_request":{"url":"https://api.github.com/repos/covarep/covarep/pulls/67","html_url":"https://github.com/covarep/covarep/pull/67","diff_url":"https://github.com/covarep/covarep/pull/67.diff","patch_url":"https://github.com/covarep/covarep/pull/67.patch"},"body":"The fzero function is called more than 10.000 times (for a 10sec file). Unfortunately, MATLAB's fzero function spends more time in validating and setting (default) values than solving the actual problem (in case of Rd). I stripped off all 'unneeded' stuff from fzero and craeted a new file fzero_plain.m. Compared to fzero, fzero_plain is about 66% faster.\r\n\r\nI'm not sure whether you can ship fzero_plain as part of COVAREP, since MATLAB's copyright may apply to fzero_plain!\r\n\r\nThe changes in 'get_vq_params.m' could theoretically be faster than the previous version but it doesn't seem to be. However, the code should be a little bit more readable"},"comment":{"url":"https://api.github.com/repos/covarep/covarep/issues/comments/138955283","html_url":"https://github.com/covarep/covarep/pull/67#issuecomment-138955283","issue_url":"https://api.github.com/repos/covarep/covarep/issues/67","id":138955283,"user":{"login":"twoertwein","id":6618166,"avatar_url":"https://avatars.githubusercontent.com/u/6618166?v=3","gravatar_id":"","url":"https://api.github.com/users/twoertwein","html_url":"https://github.com/twoertwein","followers_url":"https://api.github.com/users/twoertwein/followers","following_url":"https://api.github.com/users/twoertwein/following{/other_user}","gists_url":"https://api.github.com/users/twoertwein/gists{/gist_id}","starred_url":"https://api.github.com/users/twoertwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twoertwein/subscriptions","organizations_url":"https://api.github.com/users/twoertwein/orgs","repos_url":"https://api.github.com/users/twoertwein/repos","events_url":"https://api.github.com/users/twoertwein/events{/privacy}","received_events_url":"https://api.github.com/users/twoertwein/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T15:55:27Z","updated_at":"2015-09-09T15:55:27Z","body":"You can open a 'bug report' http://www.mathworks.com/support/bugreports/ and select MATLAB as product and 'Installation & Licensing' as category (they usually respond within 24h)"}}