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

BitArrays should not be DenseArrays #25858

Merged
merged 2 commits into from
Feb 8, 2018
Merged

Conversation

mbauman
Copy link
Member

@mbauman mbauman commented Feb 2, 2018

BitArray has previously been subtype of DenseArray, making it defined as a StridedArray. However - BitArrays do not and can not support the pointer function. As such, they can never be passed to a C function in the same manner that all other StridedArrays can.

This patch makes BitArray <: AbstractArray. Surprisingly little breaks in our test set, but this is indeed massively breaking. Notably, most of the other changes required here were actually long-standing bugs that this change simply happened to uncover.

BitArray has previously been subtype of DenseArray, making it defined as a StridedArray. However - BitArrays do not and can not support the `pointer` function. As such, they can never be passed to a C function in the same manner that all other StridedArrays can.

This patch makes `BitArray <: AbstractArray`. Surprisingly little breaks in our test set, but this is indeed massively breaking.  Notably, most of the other changes required here were actually long-standing bugs that this change simply happened to uncover.
@mbauman mbauman added breaking This change will break code arrays [a, r, r, a, y, s] triage This should be discussed on a triage call labels Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] breaking This change will break code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants