{"action":"created","issue":{"url":"https://api.github.com/repos/torch/torch7/issues/180","labels_url":"https://api.github.com/repos/torch/torch7/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/torch/torch7/issues/180/comments","events_url":"https://api.github.com/repos/torch/torch7/issues/180/events","html_url":"https://github.com/torch/torch7/pull/180","id":63406399,"number":180,"title":"Change display of null tensors","user":{"login":"eliemichel","id":5802849,"avatar_url":"https://avatars.githubusercontent.com/u/5802849?v=3","gravatar_id":"","url":"https://api.github.com/users/eliemichel","html_url":"https://github.com/eliemichel","followers_url":"https://api.github.com/users/eliemichel/followers","following_url":"https://api.github.com/users/eliemichel/following{/other_user}","gists_url":"https://api.github.com/users/eliemichel/gists{/gist_id}","starred_url":"https://api.github.com/users/eliemichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliemichel/subscriptions","organizations_url":"https://api.github.com/users/eliemichel/orgs","repos_url":"https://api.github.com/users/eliemichel/repos","events_url":"https://api.github.com/users/eliemichel/events{/privacy}","received_events_url":"https://api.github.com/users/eliemichel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-21T13:54:19Z","updated_at":"2015-03-21T21:14:23Z","closed_at":"2015-03-21T21:14:18Z","pull_request":{"url":"https://api.github.com/repos/torch/torch7/pulls/180","html_url":"https://github.com/torch/torch7/pull/180","diff_url":"https://github.com/torch/torch7/pull/180.diff","patch_url":"https://github.com/torch/torch7/pull/180.patch"},"body":"They where displayed with narrower columns than others.\r\n\r\nFor instance, before this commit:\r\n\r\n```lua\r\n> torch.Tensor(2,2):zero()\r\n0 0\r\n0 0\r\n[torch.DoubleTensor of dimension 2x2]\r\n\r\n> torch.Tensor(2,2):fill(1)\r\n 1  1\r\n 1  1\r\n[torch.DoubleTensor of dimension 2x2]\r\n```\r\n\r\nThis is because `log10()` is used to determine number width in base 10\r\nbut the case where it is 0 is handled differently."},"comment":{"url":"https://api.github.com/repos/torch/torch7/issues/comments/84454057","html_url":"https://github.com/torch/torch7/pull/180#issuecomment-84454057","issue_url":"https://api.github.com/repos/torch/torch7/issues/180","id":84454057,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T21:14:23Z","updated_at":"2015-03-21T21:14:23Z","body":"thanks Elie!"}}