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

Make Array-of-SArray op Number infer the right output Array type #20

Merged
merged 1 commit into from
Aug 24, 2016

Conversation

c42f
Copy link
Member

@c42f c42f commented Aug 24, 2016

For some reason, there's special rules using Base.promote_op to infer
the correct type for operations involving Number and arrays of other
types. This means we need to overload promote_op or we'll get an Array
of Any in these cases.

See SimonDanisch/FixedSizeArrays.jl#156 for a similar issue.

For some reason, there's special rules using Base.promote_op to infer
the correct type for operations involving Number and arrays of other
types.  This means we need to overload promote_op or we'll get an Array
of Any in these cases.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 05be4fb on arrays-of-sarrays into * on master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 05be4fb on arrays-of-sarrays into * on master*.

@andyferris
Copy link
Member

Great, thanks!

@andyferris andyferris merged commit e72b219 into master Aug 24, 2016
@SimonDanisch SimonDanisch deleted the arrays-of-sarrays branch May 17, 2018 10:56
oschulz pushed a commit to oschulz/StaticArrays.jl that referenced this pull request Apr 4, 2023
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