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

Improve result type of broadcasting ./ and .\, add broadcasting .^ #3201

Merged
merged 4 commits into from
May 27, 2013

Conversation

toivoh
Copy link
Contributor

@toivoh toivoh commented May 24, 2013

This patch makes ./, .\, and .^ be broadcasting for all StridedArray arguments, and produces more or less the same result types as the previous unbroadcasted versions. I added a case for .^ where the exponent is rational.

Does it seem reasonable to compute the result type as at the bottom of broadcast.jl?

@Keno
Copy link
Member

Keno commented May 26, 2013

Any idea why the travis build fails?

@pao
Copy link
Member

pao commented May 26, 2013

It's a bitarray test.

@pao
Copy link
Member

pao commented May 26, 2013

Looks like it checks bitarray type stability, and .^ is one of the tests.

@toivoh
Copy link
Contributor Author

toivoh commented May 26, 2013

Oops, not sure how I missed to run those tests...
Anyway, the bitarray test revealed a little bug in my result typing for .^; I've updated the pull request.
Will probably merge tomorrow if nothing else comes up.

toivoh added a commit that referenced this pull request May 27, 2013
Improve result type of broadcasting ./ and .\, add broadcasting .^
@toivoh toivoh merged commit 4b05fd4 into JuliaLang:master May 27, 2013
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 this pull request may close these issues.

3 participants