{"action":"opened","number":120,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-systemml/pulls/120","id":66715732,"html_url":"https://github.com/apache/incubator-systemml/pull/120","diff_url":"https://github.com/apache/incubator-systemml/pull/120.diff","patch_url":"https://github.com/apache/incubator-systemml/pull/120.patch","issue_url":"https://api.github.com/repos/apache/incubator-systemml/issues/120","number":120,"state":"open","locked":false,"title":"[SYSTEMML-294_print_matrix][WIP|] Print matrix capability","user":{"login":"nakul02","id":5394361,"avatar_url":"https://avatars.githubusercontent.com/u/5394361?v=3","gravatar_id":"","url":"https://api.github.com/users/nakul02","html_url":"https://github.com/nakul02","followers_url":"https://api.github.com/users/nakul02/followers","following_url":"https://api.github.com/users/nakul02/following{/other_user}","gists_url":"https://api.github.com/users/nakul02/gists{/gist_id}","starred_url":"https://api.github.com/users/nakul02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakul02/subscriptions","organizations_url":"https://api.github.com/users/nakul02/orgs","repos_url":"https://api.github.com/users/nakul02/repos","events_url":"https://api.github.com/users/nakul02/events{/privacy}","received_events_url":"https://api.github.com/users/nakul02/received_events","type":"User","site_admin":false},"body":"Can pass a matrix object to the print statement\r\n\r\n- More complex things like print(X[1:10, 1:10]) do not work. The correct\r\n  sequence of instructions is not being generated.\r\n\r\n- Also Java style string concatenation does not work. print (x + X) does\r\n  not work. (x=scalar, X=matrix).\r\n\r\nI realize the matrix printing may not be the best format. Here is what it looks like for now:\r\n\r\nFor this DML code:\r\n```\r\nX = rand(rows=1000, cols=1000, min=0, max=4, pdf=\"uniform\", sparsity=0.2)\r\nZ = X[1:10,1:10]\r\nprint(Z)\r\n```\r\n![screenshot](http://i.imgur.com/CJ7qmpG.png?1)\r\n\r\n\r\n@deroneriksson, @niketanpansare, @mboehm7 - thoughts?","created_at":"2016-04-15T22:54:56Z","updated_at":"2016-04-15T22:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-systemml/pulls/120/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-systemml/pulls/120/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-systemml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-systemml/issues/120/comments","statuses_url":"https://api.github.com/repos/apache/incubator-systemml/statuses/2e41ec1785727236ca8ffb58a38b767ee4c50507","head":{"label":"nakul02:SYSTEMML-294_print_matrix","ref":"SYSTEMML-294_print_matrix","sha":"2e41ec1785727236ca8ffb58a38b767ee4c50507","user":{"login":"nakul02","id":5394361,"avatar_url":"https://avatars.githubusercontent.com/u/5394361?v=3","gravatar_id":"","url":"https://api.github.com/users/nakul02","html_url":"https://github.com/nakul02","followers_url":"https://api.github.com/users/nakul02/followers","following_url":"https://api.github.com/users/nakul02/following{/other_user}","gists_url":"https://api.github.com/users/nakul02/gists{/gist_id}","starred_url":"https://api.github.com/users/nakul02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakul02/subscriptions","organizations_url":"https://api.github.com/users/nakul02/orgs","repos_url":"https://api.github.com/users/nakul02/repos","events_url":"https://api.github.com/users/nakul02/events{/privacy}","received_events_url":"https://api.github.com/users/nakul02/received_events","type":"User","site_admin":false},"repo":{"id":49258505,"name":"incubator-systemml","full_name":"nakul02/incubator-systemml","owner":{"login":"nakul02","id":5394361,"avatar_url":"https://avatars.githubusercontent.com/u/5394361?v=3","gravatar_id":"","url":"https://api.github.com/users/nakul02","html_url":"https://github.com/nakul02","followers_url":"https://api.github.com/users/nakul02/followers","following_url":"https://api.github.com/users/nakul02/following{/other_user}","gists_url":"https://api.github.com/users/nakul02/gists{/gist_id}","starred_url":"https://api.github.com/users/nakul02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakul02/subscriptions","organizations_url":"https://api.github.com/users/nakul02/orgs","repos_url":"https://api.github.com/users/nakul02/repos","events_url":"https://api.github.com/users/nakul02/events{/privacy}","received_events_url":"https://api.github.com/users/nakul02/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nakul02/incubator-systemml","description":"Mirror of Apache SystemML (Incubating)","fork":true,"url":"https://api.github.com/repos/nakul02/incubator-systemml","forks_url":"https://api.github.com/repos/nakul02/incubator-systemml/forks","keys_url":"https://api.github.com/repos/nakul02/incubator-systemml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nakul02/incubator-systemml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nakul02/incubator-systemml/teams","hooks_url":"https://api.github.com/repos/nakul02/incubator-systemml/hooks","issue_events_url":"https://api.github.com/repos/nakul02/incubator-systemml/issues/events{/number}","events_url":"https://api.github.com/repos/nakul02/incubator-systemml/events","assignees_url":"https://api.github.com/repos/nakul02/incubator-systemml/assignees{/user}","branches_url":"https://api.github.com/repos/nakul02/incubator-systemml/branches{/branch}","tags_url":"https://api.github.com/repos/nakul02/incubator-systemml/tags","blobs_url":"https://api.github.com/repos/nakul02/incubator-systemml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nakul02/incubator-systemml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nakul02/incubator-systemml/git/refs{/sha}","trees_url":"https://api.github.com/repos/nakul02/incubator-systemml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nakul02/incubator-systemml/statuses/{sha}","languages_url":"https://api.github.com/repos/nakul02/incubator-systemml/languages","stargazers_url":"https://api.github.com/repos/nakul02/incubator-systemml/stargazers","contributors_url":"https://api.github.com/repos/nakul02/incubator-systemml/contributors","subscribers_url":"https://api.github.com/repos/nakul02/incubator-systemml/subscribers","subscription_url":"https://api.github.com/repos/nakul02/incubator-systemml/subscription","commits_url":"https://api.github.com/repos/nakul02/incubator-systemml/commits{/sha}","git_commits_url":"https://api.github.com/repos/nakul02/incubator-systemml/git/commits{/sha}","comments_url":"https://api.github.com/repos/nakul02/incubator-systemml/comments{/number}","issue_comment_url":"https://api.github.com/repos/nakul02/incubator-systemml/issues/comments{/number}","contents_url":"https://api.github.com/repos/nakul02/incubator-systemml/contents/{+path}","compare_url":"https://api.github.com/repos/nakul02/incubator-systemml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nakul02/incubator-systemml/merges","archive_url":"https://api.github.com/repos/nakul02/incubator-systemml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nakul02/incubator-systemml/downloads","issues_url":"https://api.github.com/repos/nakul02/incubator-systemml/issues{/number}","pulls_url":"https://api.github.com/repos/nakul02/incubator-systemml/pulls{/number}","milestones_url":"https://api.github.com/repos/nakul02/incubator-systemml/milestones{/number}","notifications_url":"https://api.github.com/repos/nakul02/incubator-systemml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nakul02/incubator-systemml/labels{/name}","releases_url":"https://api.github.com/repos/nakul02/incubator-systemml/releases{/id}","deployments_url":"https://api.github.com/repos/nakul02/incubator-systemml/deployments","created_at":"2016-01-08T08:01:14Z","updated_at":"2016-01-18T22:02:20Z","pushed_at":"2016-04-15T22:46:05Z","git_url":"git://github.com/nakul02/incubator-systemml.git","ssh_url":"git@github.com:nakul02/incubator-systemml.git","clone_url":"https://github.com/nakul02/incubator-systemml.git","svn_url":"https://github.com/nakul02/incubator-systemml","homepage":null,"size":185134,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"663239476fa7f0fe81d9ac021b2c69ea5844f3f1","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":45896813,"name":"incubator-systemml","full_name":"apache/incubator-systemml","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-systemml","description":"Mirror of Apache SystemML (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-systemml","forks_url":"https://api.github.com/repos/apache/incubator-systemml/forks","keys_url":"https://api.github.com/repos/apache/incubator-systemml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-systemml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-systemml/teams","hooks_url":"https://api.github.com/repos/apache/incubator-systemml/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-systemml/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-systemml/events","assignees_url":"https://api.github.com/repos/apache/incubator-systemml/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-systemml/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-systemml/tags","blobs_url":"https://api.github.com/repos/apache/incubator-systemml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-systemml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-systemml/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-systemml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-systemml/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-systemml/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-systemml/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-systemml/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-systemml/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-systemml/subscription","commits_url":"https://api.github.com/repos/apache/incubator-systemml/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-systemml/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-systemml/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-systemml/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-systemml/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-systemml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-systemml/merges","archive_url":"https://api.github.com/repos/apache/incubator-systemml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-systemml/downloads","issues_url":"https://api.github.com/repos/apache/incubator-systemml/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-systemml/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-systemml/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-systemml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-systemml/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-systemml/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-systemml/deployments","created_at":"2015-11-10T08:00:06Z","updated_at":"2016-04-15T03:59:02Z","pushed_at":"2016-04-15T17:21:59Z","git_url":"git://github.com/apache/incubator-systemml.git","ssh_url":"git@github.com:apache/incubator-systemml.git","clone_url":"https://github.com/apache/incubator-systemml.git","svn_url":"https://github.com/apache/incubator-systemml","homepage":null,"size":188518,"stargazers_count":260,"watchers_count":260,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":85,"mirror_url":"git://git.apache.org/incubator-systemml.git","open_issues_count":8,"forks":85,"open_issues":8,"watchers":260,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-systemml/pulls/120"},"html":{"href":"https://github.com/apache/incubator-systemml/pull/120"},"issue":{"href":"https://api.github.com/repos/apache/incubator-systemml/issues/120"},"comments":{"href":"https://api.github.com/repos/apache/incubator-systemml/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-systemml/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-systemml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-systemml/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-systemml/statuses/2e41ec1785727236ca8ffb58a38b767ee4c50507"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":2,"changed_files":2}}