{"action":"created","comment":{"url":"https://api.github.com/repos/gonum/lapack/pulls/comments/54669593","id":54669593,"diff_hunk":"@@ -0,0 +1,394 @@\n+// Copyright ©2016 The gonum Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package native\n+\n+import (\n+\t\"math\"\n+\n+\t\"github.com/gonum/blas\"\n+\t\"github.com/gonum/blas/blas64\"\n+\t\"github.com/gonum/lapack\"\n+)\n+\n+// Dsteqr computes the eigenvalues and optionally the eigenvectors of a symmetric\n+// tridiagonal matrix using the implicit QL or QR method. The eigenvectors of a\n+// full or band symmetric matrix can also be found if Dsytrd, Dsptrd, or Dsbtrd\n+// have been used to reduce this matrix to tridiagonal form.\n+//\n+// d, on entry, contains the diagonal elements of the tridiagonal matrix. On exit,\n+// d contains the eigenvalues in ascending order. d must have length n and\n+// Dsteqr will panic otherwise.\n+//\n+// e, on entry, contains the off-diagonal elements of the tridiagonal matrix on\n+// entry, and is overwritten during the call to Dsteqr. e must have length n-1 and\n+// Dsteqr will panic otherwise.\n+//\n+// z, on entry, contains the n×n orthogonal matrix used in the reduction to\n+// tridiagonal form if compz == lapack.EigBoth. On exit, if\n+// compz == lapack.EigBoth, z contains the orthonormal eigenvectors of the\n+// original symmetric matrix, and if compz == lapack.EigDecomp, z contains the\n+// orthonormal eigenvectors of the symmetric tridiagonal matrix. z is not used\n+// if compz == lapack.EigValueOnly.\n+//\n+// work must have length at least max(1, 2*n-2) if the eigenvectors are computed,\n+// and Dsteqr will panic otherwise.\n+func (impl Implementation) Dsteqr(compz lapack.EigComp, n int, d, e, z []float64, ldz int, work []float64) (ok bool) {\n+\tif len(d) < n {\n+\t\tpanic(badD)\n+\t}\n+\tif len(e) < n-1 {\n+\t\tpanic(badE)\n+\t}\n+\tif compz != lapack.EigValueOnly && compz != lapack.EigBoth && compz != lapack.EigDecomp {\n+\t\tpanic(badEigComp)\n+\t}\n+\tif compz != lapack.EigValueOnly {\n+\t\tif len(work) < max(1, 2*n-2) {\n+\t\t\tpanic(badWork)\n+\t\t}\n+\t\tcheckMatrix(n, n, z, ldz)\n+\t}\n+\n+\tvar icompz int\n+\tif compz == lapack.EigDecomp {\n+\t\ticompz = 1\n+\t} else if compz == lapack.EigBoth {\n+\t\ticompz = 2\n+\t}\n+\n+\tif n == 0 {\n+\t\treturn true\n+\t}\n+\tif n == 1 {\n+\t\tif icompz == 2 {","path":"native/dsteqr.go","position":65,"original_position":65,"commit_id":"cc5fc9b199bb3fb796fbe2dc048ef3a0f2ba8abf","original_commit_id":"cc5fc9b199bb3fb796fbe2dc048ef3a0f2ba8abf","user":{"login":"btracey","id":3680859,"avatar_url":"https://avatars.githubusercontent.com/u/3680859?v=3","gravatar_id":"","url":"https://api.github.com/users/btracey","html_url":"https://github.com/btracey","followers_url":"https://api.github.com/users/btracey/followers","following_url":"https://api.github.com/users/btracey/following{/other_user}","gists_url":"https://api.github.com/users/btracey/gists{/gist_id}","starred_url":"https://api.github.com/users/btracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btracey/subscriptions","organizations_url":"https://api.github.com/users/btracey/orgs","repos_url":"https://api.github.com/users/btracey/repos","events_url":"https://api.github.com/users/btracey/events{/privacy}","received_events_url":"https://api.github.com/users/btracey/received_events","type":"User","site_admin":false},"body":"The documentation is incorrect. Fixed.","created_at":"2016-03-02T02:05:18Z","updated_at":"2016-03-02T02:05:18Z","html_url":"https://github.com/gonum/lapack/pull/107#discussion_r54669593","pull_request_url":"https://api.github.com/repos/gonum/lapack/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/gonum/lapack/pulls/comments/54669593"},"html":{"href":"https://github.com/gonum/lapack/pull/107#discussion_r54669593"},"pull_request":{"href":"https://api.github.com/repos/gonum/lapack/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/gonum/lapack/pulls/107","id":60629977,"html_url":"https://github.com/gonum/lapack/pull/107","diff_url":"https://github.com/gonum/lapack/pull/107.diff","patch_url":"https://github.com/gonum/lapack/pull/107.patch","issue_url":"https://api.github.com/repos/gonum/lapack/issues/107","number":107,"state":"open","locked":false,"title":"Add Dsteqr and test","user":{"login":"btracey","id":3680859,"avatar_url":"https://avatars.githubusercontent.com/u/3680859?v=3","gravatar_id":"","url":"https://api.github.com/users/btracey","html_url":"https://github.com/btracey","followers_url":"https://api.github.com/users/btracey/followers","following_url":"https://api.github.com/users/btracey/following{/other_user}","gists_url":"https://api.github.com/users/btracey/gists{/gist_id}","starred_url":"https://api.github.com/users/btracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btracey/subscriptions","organizations_url":"https://api.github.com/users/btracey/orgs","repos_url":"https://api.github.com/users/btracey/repos","events_url":"https://api.github.com/users/btracey/events{/privacy}","received_events_url":"https://api.github.com/users/btracey/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-25T06:02:56Z","updated_at":"2016-03-02T02:05:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5c5189bdc45d1d1c528183d91b5a6d622318622","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gonum/lapack/pulls/107/commits","review_comments_url":"https://api.github.com/repos/gonum/lapack/pulls/107/comments","review_comment_url":"https://api.github.com/repos/gonum/lapack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gonum/lapack/issues/107/comments","statuses_url":"https://api.github.com/repos/gonum/lapack/statuses/cc5fc9b199bb3fb796fbe2dc048ef3a0f2ba8abf","head":{"label":"gonum:adddsteqr","ref":"adddsteqr","sha":"cc5fc9b199bb3fb796fbe2dc048ef3a0f2ba8abf","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":20473913,"name":"lapack","full_name":"gonum/lapack","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/lapack","description":"A lapack implementation for go","fork":false,"url":"https://api.github.com/repos/gonum/lapack","forks_url":"https://api.github.com/repos/gonum/lapack/forks","keys_url":"https://api.github.com/repos/gonum/lapack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/lapack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/lapack/teams","hooks_url":"https://api.github.com/repos/gonum/lapack/hooks","issue_events_url":"https://api.github.com/repos/gonum/lapack/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/lapack/events","assignees_url":"https://api.github.com/repos/gonum/lapack/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/lapack/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/lapack/tags","blobs_url":"https://api.github.com/repos/gonum/lapack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/lapack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/lapack/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/lapack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/lapack/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/lapack/languages","stargazers_url":"https://api.github.com/repos/gonum/lapack/stargazers","contributors_url":"https://api.github.com/repos/gonum/lapack/contributors","subscribers_url":"https://api.github.com/repos/gonum/lapack/subscribers","subscription_url":"https://api.github.com/repos/gonum/lapack/subscription","commits_url":"https://api.github.com/repos/gonum/lapack/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/lapack/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/lapack/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/lapack/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonum/lapack/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/lapack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/lapack/merges","archive_url":"https://api.github.com/repos/gonum/lapack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/lapack/downloads","issues_url":"https://api.github.com/repos/gonum/lapack/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/lapack/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/lapack/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/lapack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/lapack/labels{/name}","releases_url":"https://api.github.com/repos/gonum/lapack/releases{/id}","deployments_url":"https://api.github.com/repos/gonum/lapack/deployments","created_at":"2014-06-04T07:18:07Z","updated_at":"2016-02-25T21:00:32Z","pushed_at":"2016-02-26T07:37:10Z","git_url":"git://github.com/gonum/lapack.git","ssh_url":"git@github.com:gonum/lapack.git","clone_url":"https://github.com/gonum/lapack.git","svn_url":"https://github.com/gonum/lapack","homepage":null,"size":994,"stargazers_count":35,"watchers_count":35,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":35,"default_branch":"master"}},"base":{"label":"gonum:master","ref":"master","sha":"0abd9b57304361210ecfc6c689eb60fb7262b654","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":20473913,"name":"lapack","full_name":"gonum/lapack","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/lapack","description":"A lapack implementation for go","fork":false,"url":"https://api.github.com/repos/gonum/lapack","forks_url":"https://api.github.com/repos/gonum/lapack/forks","keys_url":"https://api.github.com/repos/gonum/lapack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/lapack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/lapack/teams","hooks_url":"https://api.github.com/repos/gonum/lapack/hooks","issue_events_url":"https://api.github.com/repos/gonum/lapack/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/lapack/events","assignees_url":"https://api.github.com/repos/gonum/lapack/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/lapack/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/lapack/tags","blobs_url":"https://api.github.com/repos/gonum/lapack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/lapack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/lapack/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/lapack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/lapack/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/lapack/languages","stargazers_url":"https://api.github.com/repos/gonum/lapack/stargazers","contributors_url":"https://api.github.com/repos/gonum/lapack/contributors","subscribers_url":"https://api.github.com/repos/gonum/lapack/subscribers","subscription_url":"https://api.github.com/repos/gonum/lapack/subscription","commits_url":"https://api.github.com/repos/gonum/lapack/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/lapack/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/lapack/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/lapack/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonum/lapack/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/lapack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/lapack/merges","archive_url":"https://api.github.com/repos/gonum/lapack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/lapack/downloads","issues_url":"https://api.github.com/repos/gonum/lapack/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/lapack/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/lapack/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/lapack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/lapack/labels{/name}","releases_url":"https://api.github.com/repos/gonum/lapack/releases{/id}","deployments_url":"https://api.github.com/repos/gonum/lapack/deployments","created_at":"2014-06-04T07:18:07Z","updated_at":"2016-02-25T21:00:32Z","pushed_at":"2016-02-26T07:37:10Z","git_url":"git://github.com/gonum/lapack.git","ssh_url":"git@github.com:gonum/lapack.git","clone_url":"https://github.com/gonum/lapack.git","svn_url":"https://github.com/gonum/lapack","homepage":null,"size":994,"stargazers_count":35,"watchers_count":35,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gonum/lapack/pulls/107"},"html":{"href":"https://github.com/gonum/lapack/pull/107"},"issue":{"href":"https://api.github.com/repos/gonum/lapack/issues/107"},"comments":{"href":"https://api.github.com/repos/gonum/lapack/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/gonum/lapack/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/gonum/lapack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gonum/lapack/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/gonum/lapack/statuses/cc5fc9b199bb3fb796fbe2dc048ef3a0f2ba8abf"}}}}