-
Notifications
You must be signed in to change notification settings - Fork 12
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
cwise docs out of data? #17
Comments
@matt-erhart I think it depends on the specific operation what the inputs and outputs are. In particular from the docs:
That means there's not necessarily a single answer to what the return value would be. A reduction operator (like a sum or a max, etc.) would return the sum while other operators by default would return the first ndarray argument. If you use ndarray-ops, the functions are pretty explicit about whether it's an in-place operator or not, e.g. As for the browserify transform, that's correct. You can use cwise with or without it. cwise uses esprima to parse the function code. This makes writing the |
(Apologies for the scattered answer. You're basically correct. Things should work just fine, but if you run into problems, don't hesitate to ask more questions.) |
In some of the examples, a cwise function can be called these two ways:
I could only get the second to work, so I wonder if the docs aren't up to date in this and perhaps other ways. Also, is this expected to work without the browserify transform or is that just to get size down? I'm in webpack.
In the mean time, any links to repos making use of cwise would get great to check out.
The text was updated successfully, but these errors were encountered: