{"action":"created","comment":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/70181964","id":70181964,"diff_hunk":"@@ -64,6 +64,31 @@ float64_t CDotFeatures::dense_dot_sgvec(int32_t vec_idx1, SGVector<float64_t> ve\n \treturn dense_dot(vec_idx1, vec2.vector, vec2.vlen);\n }\n \n+void CDotFeatures::dense_dot_range_parallel(float64_t* output, int32_t start, int32_t stop, float64_t* alphas, float64_t* vec, int32_t dim, float64_t b)\n+{\n+\tASSERT(output)\n+\t// write access is internally between output[start..stop] so the following\n+\t// line is necessary to write to output[0...(stop-start-1)]\n+\toutput-=start;\n+\tASSERT(start>=0)\n+\tASSERT(start<stop)\n+\tASSERT(stop<=get_num_vectors())\n+\tint32_t num_vectors=stop-start;\n+\tASSERT(num_vectors>0)\n+\n+\tint32_t num_threads=parallel->get_num_threads();\n+\tASSERT(num_threads>0)\n+\tint32_t i; \n+#pragma omp parallel for private (i) schedule(guided)\n+\tfor (i=start; i<stop; i++)\n+\t{\n+\t\tif (alphas)\n+\t\t\toutput[i]=alphas[i]*this->dense_dot(i, vec, dim)+b;","path":"src/shogun/features/DotFeatures.cpp","position":23,"original_position":23,"commit_id":"a9be369d6e58f0ddb6482149cc595676690a454b","original_commit_id":"a9be369d6e58f0ddb6482149cc595676690a454b","user":{"login":"karlnapf","id":699071,"avatar_url":"https://avatars.githubusercontent.com/u/699071?v=3","gravatar_id":"","url":"https://api.github.com/users/karlnapf","html_url":"https://github.com/karlnapf","followers_url":"https://api.github.com/users/karlnapf/followers","following_url":"https://api.github.com/users/karlnapf/following{/other_user}","gists_url":"https://api.github.com/users/karlnapf/gists{/gist_id}","starred_url":"https://api.github.com/users/karlnapf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlnapf/subscriptions","organizations_url":"https://api.github.com/users/karlnapf/orgs","repos_url":"https://api.github.com/users/karlnapf/repos","events_url":"https://api.github.com/users/karlnapf/events{/privacy}","received_events_url":"https://api.github.com/users/karlnapf/received_events","type":"User","site_admin":false},"body":"is this cache friendly when running on multiple CPU?","created_at":"2016-07-10T13:33:58Z","updated_at":"2016-07-10T13:33:58Z","html_url":"https://github.com/shogun-toolbox/shogun/pull/3352#discussion_r70181964","pull_request_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352","_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/70181964"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3352#discussion_r70181964"},"pull_request":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352"}}},"pull_request":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352","id":76471382,"html_url":"https://github.com/shogun-toolbox/shogun/pull/3352","diff_url":"https://github.com/shogun-toolbox/shogun/pull/3352.diff","patch_url":"https://github.com/shogun-toolbox/shogun/pull/3352.patch","issue_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3352","number":3352,"state":"open","locked":false,"title":"Multicore liblinear","user":{"login":"Saurabh7","id":4285091,"avatar_url":"https://avatars.githubusercontent.com/u/4285091?v=3","gravatar_id":"","url":"https://api.github.com/users/Saurabh7","html_url":"https://github.com/Saurabh7","followers_url":"https://api.github.com/users/Saurabh7/followers","following_url":"https://api.github.com/users/Saurabh7/following{/other_user}","gists_url":"https://api.github.com/users/Saurabh7/gists{/gist_id}","starred_url":"https://api.github.com/users/Saurabh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saurabh7/subscriptions","organizations_url":"https://api.github.com/users/Saurabh7/orgs","repos_url":"https://api.github.com/users/Saurabh7/repos","events_url":"https://api.github.com/users/Saurabh7/events{/privacy}","received_events_url":"https://api.github.com/users/Saurabh7/received_events","type":"User","site_admin":false},"body":"**WIP**","created_at":"2016-07-06T17:37:24Z","updated_at":"2016-07-10T13:33:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0462a266f0978bc4f866d1387267bfd6f0cf4b3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352/commits","review_comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352/comments","review_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3352/comments","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/a9be369d6e58f0ddb6482149cc595676690a454b","head":{"label":"Saurabh7:libl","ref":"libl","sha":"a9be369d6e58f0ddb6482149cc595676690a454b","user":{"login":"Saurabh7","id":4285091,"avatar_url":"https://avatars.githubusercontent.com/u/4285091?v=3","gravatar_id":"","url":"https://api.github.com/users/Saurabh7","html_url":"https://github.com/Saurabh7","followers_url":"https://api.github.com/users/Saurabh7/followers","following_url":"https://api.github.com/users/Saurabh7/following{/other_user}","gists_url":"https://api.github.com/users/Saurabh7/gists{/gist_id}","starred_url":"https://api.github.com/users/Saurabh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saurabh7/subscriptions","organizations_url":"https://api.github.com/users/Saurabh7/orgs","repos_url":"https://api.github.com/users/Saurabh7/repos","events_url":"https://api.github.com/users/Saurabh7/events{/privacy}","received_events_url":"https://api.github.com/users/Saurabh7/received_events","type":"User","site_admin":false},"repo":{"id":15224643,"name":"shogun","full_name":"Saurabh7/shogun","owner":{"login":"Saurabh7","id":4285091,"avatar_url":"https://avatars.githubusercontent.com/u/4285091?v=3","gravatar_id":"","url":"https://api.github.com/users/Saurabh7","html_url":"https://github.com/Saurabh7","followers_url":"https://api.github.com/users/Saurabh7/followers","following_url":"https://api.github.com/users/Saurabh7/following{/other_user}","gists_url":"https://api.github.com/users/Saurabh7/gists{/gist_id}","starred_url":"https://api.github.com/users/Saurabh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saurabh7/subscriptions","organizations_url":"https://api.github.com/users/Saurabh7/orgs","repos_url":"https://api.github.com/users/Saurabh7/repos","events_url":"https://api.github.com/users/Saurabh7/events{/privacy}","received_events_url":"https://api.github.com/users/Saurabh7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Saurabh7/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":true,"url":"https://api.github.com/repos/Saurabh7/shogun","forks_url":"https://api.github.com/repos/Saurabh7/shogun/forks","keys_url":"https://api.github.com/repos/Saurabh7/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Saurabh7/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Saurabh7/shogun/teams","hooks_url":"https://api.github.com/repos/Saurabh7/shogun/hooks","issue_events_url":"https://api.github.com/repos/Saurabh7/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/Saurabh7/shogun/events","assignees_url":"https://api.github.com/repos/Saurabh7/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/Saurabh7/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/Saurabh7/shogun/tags","blobs_url":"https://api.github.com/repos/Saurabh7/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Saurabh7/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Saurabh7/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/Saurabh7/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Saurabh7/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/Saurabh7/shogun/languages","stargazers_url":"https://api.github.com/repos/Saurabh7/shogun/stargazers","contributors_url":"https://api.github.com/repos/Saurabh7/shogun/contributors","subscribers_url":"https://api.github.com/repos/Saurabh7/shogun/subscribers","subscription_url":"https://api.github.com/repos/Saurabh7/shogun/subscription","commits_url":"https://api.github.com/repos/Saurabh7/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/Saurabh7/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/Saurabh7/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/Saurabh7/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/Saurabh7/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/Saurabh7/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Saurabh7/shogun/merges","archive_url":"https://api.github.com/repos/Saurabh7/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Saurabh7/shogun/downloads","issues_url":"https://api.github.com/repos/Saurabh7/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/Saurabh7/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/Saurabh7/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/Saurabh7/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Saurabh7/shogun/labels{/name}","releases_url":"https://api.github.com/repos/Saurabh7/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/Saurabh7/shogun/deployments","created_at":"2013-12-16T11:57:34Z","updated_at":"2016-03-05T08:37:00Z","pushed_at":"2016-07-10T06:59:13Z","git_url":"git://github.com/Saurabh7/shogun.git","ssh_url":"git@github.com:Saurabh7/shogun.git","clone_url":"https://github.com/Saurabh7/shogun.git","svn_url":"https://github.com/Saurabh7/shogun","homepage":"http://www.shogun-toolbox.org","size":61471,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shogun-toolbox:develop","ref":"develop","sha":"c3453a34534b9dcbbf945cc016d687a86d00fc6a","user":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":1555094,"name":"shogun","full_name":"shogun-toolbox/shogun","owner":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shogun-toolbox/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":false,"url":"https://api.github.com/repos/shogun-toolbox/shogun","forks_url":"https://api.github.com/repos/shogun-toolbox/shogun/forks","keys_url":"https://api.github.com/repos/shogun-toolbox/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shogun-toolbox/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shogun-toolbox/shogun/teams","hooks_url":"https://api.github.com/repos/shogun-toolbox/shogun/hooks","issue_events_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/shogun-toolbox/shogun/events","assignees_url":"https://api.github.com/repos/shogun-toolbox/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/shogun-toolbox/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/tags","blobs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/shogun-toolbox/shogun/languages","stargazers_url":"https://api.github.com/repos/shogun-toolbox/shogun/stargazers","contributors_url":"https://api.github.com/repos/shogun-toolbox/shogun/contributors","subscribers_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscribers","subscription_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscription","commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/shogun-toolbox/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/shogun-toolbox/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shogun-toolbox/shogun/merges","archive_url":"https://api.github.com/repos/shogun-toolbox/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shogun-toolbox/shogun/downloads","issues_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/shogun-toolbox/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/shogun-toolbox/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shogun-toolbox/shogun/labels{/name}","releases_url":"https://api.github.com/repos/shogun-toolbox/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/shogun-toolbox/shogun/deployments","created_at":"2011-04-01T10:44:32Z","updated_at":"2016-07-09T09:15:19Z","pushed_at":"2016-07-10T13:28:38Z","git_url":"git://github.com/shogun-toolbox/shogun.git","ssh_url":"git@github.com:shogun-toolbox/shogun.git","clone_url":"https://github.com/shogun-toolbox/shogun.git","svn_url":"https://github.com/shogun-toolbox/shogun","homepage":"http://www.shogun-toolbox.org","size":194043,"stargazers_count":1098,"watchers_count":1098,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":594,"mirror_url":null,"open_issues_count":448,"forks":594,"open_issues":448,"watchers":1098,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3352"},"issue":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3352"},"comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3352/comments"},"review_comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352/comments"},"review_comment":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3352/commits"},"statuses":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/a9be369d6e58f0ddb6482149cc595676690a454b"}}}}
{"actor":{"display_login":"karlnapf"}}