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

bsxfun now only visible as Base.bsxfun() #3218

Closed
anoe opened this issue May 27, 2013 · 5 comments
Closed

bsxfun now only visible as Base.bsxfun() #3218

anoe opened this issue May 27, 2013 · 5 comments

Comments

@anoe
Copy link

anoe commented May 27, 2013

In the latest OS X binary, Julia-0.2-pre.dmg (13 hours old), the visibility of bsxfun has changed. See:

julia> a = rand(10);

julia> bsxfun(+,a,a)
ERROR: bsxfun not defined

julia> Base.bsxfun(+,a,a)
10-element Float64 Array:
1.55557
1.03718
1.84706
1.73098
0.498599
1.81505
1.16691
0.697623
0.486571
0.558718

This cannot be intended?

@toivoh
Copy link
Contributor

toivoh commented May 27, 2013

bsxfun is meant to be deprecated in favor of broadcast, see #3100. That said, it's not a complete replacement yet, and I at least have not touched the old bxsfun so far.

@anoe
Copy link
Author

anoe commented May 27, 2013

Ah, okay then... I'll just use broadcast instead. Thanks!

@anoe anoe closed this as completed May 27, 2013
@JeffBezanson
Copy link
Member

We should either reinstate bsxfun if it is different, or add a deprecation. What we have right now is kind of in-between.

@toivoh
Copy link
Contributor

toivoh commented May 28, 2013

I realized that I removed the export for bsxfun when I added the export for broadcast. Sorry about that. Will pull in the old bsxfun as a fallback for broadcast and add a deprecation for bsxfun.

toivoh added a commit that referenced this issue May 29, 2013
@toivoh
Copy link
Contributor

toivoh commented May 29, 2013

I've reexported bsxfun for now. Will deal with this properly when I have the time to do so.

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

No branches or pull requests

3 participants