{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/717","repository_url":"https://api.github.com/repos/josdejong/mathjs","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/717/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/717/events","html_url":"https://github.com/josdejong/mathjs/pull/717","id":179122730,"number":717,"title":"Extend cross() to support n-d vectors","user":{"login":"patgrasso","id":5988045,"avatar_url":"https://avatars.githubusercontent.com/u/5988045?v=3","gravatar_id":"","url":"https://api.github.com/users/patgrasso","html_url":"https://github.com/patgrasso","followers_url":"https://api.github.com/users/patgrasso/followers","following_url":"https://api.github.com/users/patgrasso/following{/other_user}","gists_url":"https://api.github.com/users/patgrasso/gists{/gist_id}","starred_url":"https://api.github.com/users/patgrasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patgrasso/subscriptions","organizations_url":"https://api.github.com/users/patgrasso/orgs","repos_url":"https://api.github.com/users/patgrasso/repos","events_url":"https://api.github.com/users/patgrasso/events{/privacy}","received_events_url":"https://api.github.com/users/patgrasso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-26T01:36:48Z","updated_at":"2016-09-28T15:11:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/josdejong/mathjs/pulls/717","html_url":"https://github.com/josdejong/mathjs/pull/717","diff_url":"https://github.com/josdejong/mathjs/pull/717.diff","patch_url":"https://github.com/josdejong/mathjs/pull/717.patch"},"body":"Squeeze arrays before attempting to cross them so that n-dimensional\r\nvectors can be cross multiplied (as long as only one direction has a\r\nseries of 3 elements)\r\n\r\nSee issue #713 "},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/250196642","html_url":"https://github.com/josdejong/mathjs/pull/717#issuecomment-250196642","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/717","id":250196642,"user":{"login":"josdejong","id":568626,"avatar_url":"https://avatars.githubusercontent.com/u/568626?v=3","gravatar_id":"","url":"https://api.github.com/users/josdejong","html_url":"https://github.com/josdejong","followers_url":"https://api.github.com/users/josdejong/followers","following_url":"https://api.github.com/users/josdejong/following{/other_user}","gists_url":"https://api.github.com/users/josdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/josdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josdejong/subscriptions","organizations_url":"https://api.github.com/users/josdejong/orgs","repos_url":"https://api.github.com/users/josdejong/repos","events_url":"https://api.github.com/users/josdejong/events{/privacy}","received_events_url":"https://api.github.com/users/josdejong/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T15:11:00Z","updated_at":"2016-09-28T15:11:00Z","body":"> Although it appears that octave's cross function returns a one dimensional vector regardless of the input vectors' dimensions.\r\n\r\nNot exactly, Octave always returns a two dimensional vector sized `1 x n`. I guess Matlab does the same. \r\n\r\nIt makes sense to me to just always return row vector like Octave (i.e. `[[-3, 6, -3]]`). The input can also be a combination of a column vector and a row vector, which would complicate things quite a bit and results in an \"unpredictable\" output. "}}
{"actor":{"display_login":"josdejong"}}