{"action":"opened","issue":{"url":"https://api.github.com/repos/mcordingley/LinearAlgebra/issues/32","repository_url":"https://api.github.com/repos/mcordingley/LinearAlgebra","labels_url":"https://api.github.com/repos/mcordingley/LinearAlgebra/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/mcordingley/LinearAlgebra/issues/32/comments","events_url":"https://api.github.com/repos/mcordingley/LinearAlgebra/issues/32/events","html_url":"https://github.com/mcordingley/LinearAlgebra/issues/32","id":245733807,"number":32,"title":"map function in matrix class have bug.","user":{"login":"battlecook","id":9781396,"avatar_url":"https://avatars0.githubusercontent.com/u/9781396?v=4","gravatar_id":"","url":"https://api.github.com/users/battlecook","html_url":"https://github.com/battlecook","followers_url":"https://api.github.com/users/battlecook/followers","following_url":"https://api.github.com/users/battlecook/following{/other_user}","gists_url":"https://api.github.com/users/battlecook/gists{/gist_id}","starred_url":"https://api.github.com/users/battlecook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battlecook/subscriptions","organizations_url":"https://api.github.com/users/battlecook/orgs","repos_url":"https://api.github.com/users/battlecook/repos","events_url":"https://api.github.com/users/battlecook/events{/privacy}","received_events_url":"https://api.github.com/users/battlecook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-26T14:06:00Z","updated_at":"2017-07-26T14:06:00Z","closed_at":null,"body":"map function return \"new static()\"\r\n\r\nbut vector and matrix construct is different.\r\n\r\nif vector class use map function, internal variable is wrapped by array one more.\r\n\r\nfor example, following test case is failed\r\n\r\npublic function testGetAfterUseMatrixFunction()\r\n{\r\n    $vector1 = new Vector([1, 1]);\r\n    $vector2 = new Vector([3, 2]);\r\n    $this->assertEquals(4, $vector1->addMatrix($vector2)->get(0,0));\r\n}"}}
{"actor":{"display_login":"battlecook"}}