{"action":"created","comment":{"url":"https://api.github.com/repos/cbm755/octsympy/pulls/comments/79772238","id":79772238,"diff_hunk":"@@ -0,0 +1,86 @@\n+%% Copyright (C) 2016 Lagu\n+%%\n+%% This file is part of OctSymPy.\n+%%\n+%% OctSymPy is free software; you can redistribute it and/or modify\n+%% it under the terms of the GNU General Public License as published\n+%% by the Free Software Foundation; either version 3 of the License,\n+%% or (at your option) any later version.\n+%%\n+%% This software is distributed in the hope that it will be useful,\n+%% but WITHOUT ANY WARRANTY; without even the implied warranty\n+%% of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See\n+%% the GNU General Public License for more details.\n+%%\n+%% You should have received a copy of the GNU General Public\n+%% License along with this software; see the file COPYING.\n+%% If not, see <http://www.gnu.org/licenses/>.\n+\n+%% -*- texinfo -*-\n+%% @documentencoding UTF-8\n+%% @defmethod @@sym eye (@var{n})\n+%% @defmethodx @@sym eye (@var{n}, @var{m})\n+%% @defmethodx @@sym eye (@var{n}, @var{m}, @var{class})\n+%% Return an identity matrix.\n+%%\n+%% Example:\n+%% @example\n+%% @group\n+%% y = eye (sym(3))\n+%%   @result{} y = (sym 3×3 matrix)\n+%%  ⎡1  0  0⎤\n+%%  ⎢       ⎥\n+%%  ⎢0  1  0⎥\n+%%  ⎢       ⎥\n+%%  ⎣0  0  1⎦\n+%% @end group\n+%% @end example\n+%%\n+%% @seealso{@@sym/zeros, @@sym/ones}\n+%% @end defmethod\n+\n+%% Source: http://docs.sympy.org/dev/modules/matrices/matrices.html\n+\n+function y = eye(varargin)\n+\n+\n+  % partial workaround for issue #13: delete when/if fixed properly\n+  if (strcmp (varargin{nargin}, 'sym'))\n+    nargin = nargin - 1;\n+    varargin = varargin(1:nargin);\n+  end\n+\n+  if (isa (varargin{nargin}, 'char'))\n+    y = eye (cell2nosyms (varargin){:});\n+    return\n+  end\n+\n+  y = python_cmd ('return eye(*_ins)', varargin{:});\n+\n+end\n+\n+%!test\n+%! y = eye(sym(2));\n+%! x = [1 0;0 1];","path":"inst/@sym/eye.m","position":64,"original_position":64,"commit_id":"3a7621a9d95a7611a357ab613661cbbf1ba6627b","original_commit_id":"3a7621a9d95a7611a357ab613661cbbf1ba6627b","user":{"login":"cbm755","id":818622,"avatar_url":"https://avatars.githubusercontent.com/u/818622?v=3","gravatar_id":"","url":"https://api.github.com/users/cbm755","html_url":"https://github.com/cbm755","followers_url":"https://api.github.com/users/cbm755/followers","following_url":"https://api.github.com/users/cbm755/following{/other_user}","gists_url":"https://api.github.com/users/cbm755/gists{/gist_id}","starred_url":"https://api.github.com/users/cbm755/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbm755/subscriptions","organizations_url":"https://api.github.com/users/cbm755/orgs","repos_url":"https://api.github.com/users/cbm755/repos","events_url":"https://api.github.com/users/cbm755/events{/privacy}","received_events_url":"https://api.github.com/users/cbm755/received_events","type":"User","site_admin":false},"body":"`0; 0` (extra space)","created_at":"2016-09-21T07:17:11Z","updated_at":"2016-09-21T07:20:55Z","html_url":"https://github.com/cbm755/octsympy/pull/532#discussion_r79772238","pull_request_url":"https://api.github.com/repos/cbm755/octsympy/pulls/532","_links":{"self":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/comments/79772238"},"html":{"href":"https://github.com/cbm755/octsympy/pull/532#discussion_r79772238"},"pull_request":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/532"}}},"pull_request":{"url":"https://api.github.com/repos/cbm755/octsympy/pulls/532","id":84000142,"html_url":"https://github.com/cbm755/octsympy/pull/532","diff_url":"https://github.com/cbm755/octsympy/pull/532.diff","patch_url":"https://github.com/cbm755/octsympy/pull/532.patch","issue_url":"https://api.github.com/repos/cbm755/octsympy/issues/532","number":532,"state":"open","locked":false,"title":"(Z)ero (O)nes (E)yes","user":{"login":"latot","id":10523095,"avatar_url":"https://avatars.githubusercontent.com/u/10523095?v=3","gravatar_id":"","url":"https://api.github.com/users/latot","html_url":"https://github.com/latot","followers_url":"https://api.github.com/users/latot/followers","following_url":"https://api.github.com/users/latot/following{/other_user}","gists_url":"https://api.github.com/users/latot/gists{/gist_id}","starred_url":"https://api.github.com/users/latot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latot/subscriptions","organizations_url":"https://api.github.com/users/latot/orgs","repos_url":"https://api.github.com/users/latot/repos","events_url":"https://api.github.com/users/latot/events{/privacy}","received_events_url":"https://api.github.com/users/latot/received_events","type":"User","site_admin":false},"body":"Fixes: https://github.com/cbm755/octsympy/issues/13\r\n\r\nmm, originally i make this funcs because are used in the hilb function (the actual don't use it), but now i think this can help to have a better work flow, when we decide the number of matrix in function of some calc we most start using ```zeros(doubles(var))```, basically to simplify this.\r\nSaying in other way, full symbolic code!","created_at":"2016-09-05T13:10:12Z","updated_at":"2016-09-21T07:20:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ca8ba41672ae1a67ba3a20561cd1a9ddb9e6834","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cbm755/octsympy/pulls/532/commits","review_comments_url":"https://api.github.com/repos/cbm755/octsympy/pulls/532/comments","review_comment_url":"https://api.github.com/repos/cbm755/octsympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbm755/octsympy/issues/532/comments","statuses_url":"https://api.github.com/repos/cbm755/octsympy/statuses/3a7621a9d95a7611a357ab613661cbbf1ba6627b","head":{"label":"latot:zoem","ref":"zoem","sha":"3a7621a9d95a7611a357ab613661cbbf1ba6627b","user":{"login":"latot","id":10523095,"avatar_url":"https://avatars.githubusercontent.com/u/10523095?v=3","gravatar_id":"","url":"https://api.github.com/users/latot","html_url":"https://github.com/latot","followers_url":"https://api.github.com/users/latot/followers","following_url":"https://api.github.com/users/latot/following{/other_user}","gists_url":"https://api.github.com/users/latot/gists{/gist_id}","starred_url":"https://api.github.com/users/latot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latot/subscriptions","organizations_url":"https://api.github.com/users/latot/orgs","repos_url":"https://api.github.com/users/latot/repos","events_url":"https://api.github.com/users/latot/events{/privacy}","received_events_url":"https://api.github.com/users/latot/received_events","type":"User","site_admin":false},"repo":{"id":48159914,"name":"octsympy","full_name":"latot/octsympy","owner":{"login":"latot","id":10523095,"avatar_url":"https://avatars.githubusercontent.com/u/10523095?v=3","gravatar_id":"","url":"https://api.github.com/users/latot","html_url":"https://github.com/latot","followers_url":"https://api.github.com/users/latot/followers","following_url":"https://api.github.com/users/latot/following{/other_user}","gists_url":"https://api.github.com/users/latot/gists{/gist_id}","starred_url":"https://api.github.com/users/latot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latot/subscriptions","organizations_url":"https://api.github.com/users/latot/orgs","repos_url":"https://api.github.com/users/latot/repos","events_url":"https://api.github.com/users/latot/events{/privacy}","received_events_url":"https://api.github.com/users/latot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/latot/octsympy","description":"A Symbolic Package for Octave using SymPy","fork":true,"url":"https://api.github.com/repos/latot/octsympy","forks_url":"https://api.github.com/repos/latot/octsympy/forks","keys_url":"https://api.github.com/repos/latot/octsympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/latot/octsympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/latot/octsympy/teams","hooks_url":"https://api.github.com/repos/latot/octsympy/hooks","issue_events_url":"https://api.github.com/repos/latot/octsympy/issues/events{/number}","events_url":"https://api.github.com/repos/latot/octsympy/events","assignees_url":"https://api.github.com/repos/latot/octsympy/assignees{/user}","branches_url":"https://api.github.com/repos/latot/octsympy/branches{/branch}","tags_url":"https://api.github.com/repos/latot/octsympy/tags","blobs_url":"https://api.github.com/repos/latot/octsympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/latot/octsympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/latot/octsympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/latot/octsympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/latot/octsympy/statuses/{sha}","languages_url":"https://api.github.com/repos/latot/octsympy/languages","stargazers_url":"https://api.github.com/repos/latot/octsympy/stargazers","contributors_url":"https://api.github.com/repos/latot/octsympy/contributors","subscribers_url":"https://api.github.com/repos/latot/octsympy/subscribers","subscription_url":"https://api.github.com/repos/latot/octsympy/subscription","commits_url":"https://api.github.com/repos/latot/octsympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/latot/octsympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/latot/octsympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/latot/octsympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/latot/octsympy/contents/{+path}","compare_url":"https://api.github.com/repos/latot/octsympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/latot/octsympy/merges","archive_url":"https://api.github.com/repos/latot/octsympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/latot/octsympy/downloads","issues_url":"https://api.github.com/repos/latot/octsympy/issues{/number}","pulls_url":"https://api.github.com/repos/latot/octsympy/pulls{/number}","milestones_url":"https://api.github.com/repos/latot/octsympy/milestones{/number}","notifications_url":"https://api.github.com/repos/latot/octsympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/latot/octsympy/labels{/name}","releases_url":"https://api.github.com/repos/latot/octsympy/releases{/id}","deployments_url":"https://api.github.com/repos/latot/octsympy/deployments","created_at":"2015-12-17T07:41:40Z","updated_at":"2016-01-11T23:53:03Z","pushed_at":"2016-09-21T03:13:00Z","git_url":"git://github.com/latot/octsympy.git","ssh_url":"git@github.com:latot/octsympy.git","clone_url":"https://github.com/latot/octsympy.git","svn_url":"https://github.com/latot/octsympy","homepage":"","size":3045,"stargazers_count":0,"watchers_count":0,"language":"Matlab","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":"cbm755:master","ref":"master","sha":"ae91146867839c01124f06a9beabd30c5deaabb0","user":{"login":"cbm755","id":818622,"avatar_url":"https://avatars.githubusercontent.com/u/818622?v=3","gravatar_id":"","url":"https://api.github.com/users/cbm755","html_url":"https://github.com/cbm755","followers_url":"https://api.github.com/users/cbm755/followers","following_url":"https://api.github.com/users/cbm755/following{/other_user}","gists_url":"https://api.github.com/users/cbm755/gists{/gist_id}","starred_url":"https://api.github.com/users/cbm755/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbm755/subscriptions","organizations_url":"https://api.github.com/users/cbm755/orgs","repos_url":"https://api.github.com/users/cbm755/repos","events_url":"https://api.github.com/users/cbm755/events{/privacy}","received_events_url":"https://api.github.com/users/cbm755/received_events","type":"User","site_admin":false},"repo":{"id":18641463,"name":"octsympy","full_name":"cbm755/octsympy","owner":{"login":"cbm755","id":818622,"avatar_url":"https://avatars.githubusercontent.com/u/818622?v=3","gravatar_id":"","url":"https://api.github.com/users/cbm755","html_url":"https://github.com/cbm755","followers_url":"https://api.github.com/users/cbm755/followers","following_url":"https://api.github.com/users/cbm755/following{/other_user}","gists_url":"https://api.github.com/users/cbm755/gists{/gist_id}","starred_url":"https://api.github.com/users/cbm755/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbm755/subscriptions","organizations_url":"https://api.github.com/users/cbm755/orgs","repos_url":"https://api.github.com/users/cbm755/repos","events_url":"https://api.github.com/users/cbm755/events{/privacy}","received_events_url":"https://api.github.com/users/cbm755/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbm755/octsympy","description":"A Symbolic Package for Octave using SymPy","fork":false,"url":"https://api.github.com/repos/cbm755/octsympy","forks_url":"https://api.github.com/repos/cbm755/octsympy/forks","keys_url":"https://api.github.com/repos/cbm755/octsympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbm755/octsympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbm755/octsympy/teams","hooks_url":"https://api.github.com/repos/cbm755/octsympy/hooks","issue_events_url":"https://api.github.com/repos/cbm755/octsympy/issues/events{/number}","events_url":"https://api.github.com/repos/cbm755/octsympy/events","assignees_url":"https://api.github.com/repos/cbm755/octsympy/assignees{/user}","branches_url":"https://api.github.com/repos/cbm755/octsympy/branches{/branch}","tags_url":"https://api.github.com/repos/cbm755/octsympy/tags","blobs_url":"https://api.github.com/repos/cbm755/octsympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbm755/octsympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbm755/octsympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbm755/octsympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbm755/octsympy/statuses/{sha}","languages_url":"https://api.github.com/repos/cbm755/octsympy/languages","stargazers_url":"https://api.github.com/repos/cbm755/octsympy/stargazers","contributors_url":"https://api.github.com/repos/cbm755/octsympy/contributors","subscribers_url":"https://api.github.com/repos/cbm755/octsympy/subscribers","subscription_url":"https://api.github.com/repos/cbm755/octsympy/subscription","commits_url":"https://api.github.com/repos/cbm755/octsympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbm755/octsympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbm755/octsympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbm755/octsympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbm755/octsympy/contents/{+path}","compare_url":"https://api.github.com/repos/cbm755/octsympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbm755/octsympy/merges","archive_url":"https://api.github.com/repos/cbm755/octsympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbm755/octsympy/downloads","issues_url":"https://api.github.com/repos/cbm755/octsympy/issues{/number}","pulls_url":"https://api.github.com/repos/cbm755/octsympy/pulls{/number}","milestones_url":"https://api.github.com/repos/cbm755/octsympy/milestones{/number}","notifications_url":"https://api.github.com/repos/cbm755/octsympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbm755/octsympy/labels{/name}","releases_url":"https://api.github.com/repos/cbm755/octsympy/releases{/id}","deployments_url":"https://api.github.com/repos/cbm755/octsympy/deployments","created_at":"2014-04-10T15:25:39Z","updated_at":"2016-09-02T03:50:24Z","pushed_at":"2016-09-21T03:13:01Z","git_url":"git://github.com/cbm755/octsympy.git","ssh_url":"git@github.com:cbm755/octsympy.git","clone_url":"https://github.com/cbm755/octsympy.git","svn_url":"https://github.com/cbm755/octsympy","homepage":"","size":3144,"stargazers_count":22,"watchers_count":22,"language":"Matlab","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":88,"forks":12,"open_issues":88,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/532"},"html":{"href":"https://github.com/cbm755/octsympy/pull/532"},"issue":{"href":"https://api.github.com/repos/cbm755/octsympy/issues/532"},"comments":{"href":"https://api.github.com/repos/cbm755/octsympy/issues/532/comments"},"review_comments":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/532/comments"},"review_comment":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbm755/octsympy/pulls/532/commits"},"statuses":{"href":"https://api.github.com/repos/cbm755/octsympy/statuses/3a7621a9d95a7611a357ab613661cbbf1ba6627b"}}}}
{"actor":{"display_login":"cbm755"}}