Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it would be nice if getSum has support for axis #23

Open
yujiosaka opened this issue Jan 24, 2016 · 0 comments
Open

it would be nice if getSum has support for axis #23

yujiosaka opened this issue Jan 24, 2016 · 0 comments

Comments

@yujiosaka
Copy link
Contributor

it should be something like bumpy.sum

> var Matrix = require('./dist/linear-algebra')().Matrix
undefined
> var m = new Matrix([[1, 2, 3], [4, 5, 6]])
undefined
> m.getSum()
21
> m.getSum(0)
{ data: [ [ 5, 7, 9 ] ], rows: 1, cols: 3 }
> m.getSum(1)
{ data: [ [ 6, 15 ] ], rows: 1, cols: 2 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant