Skip to content

support for BitArray? #13

@kragol

Description

@kragol

Any chance this package could support the BitArray type? Not sure how much work that would represent considering BitArray is a bit special.

Currently any operation working on a BitArray or returning a BitArray seems to result in the following error:
ERROR: MethodError: no method matching StridedView(::BitArray{1})

E.g.

julia> a=[1,2]
2-element Array{Int64,1}:
 1
 2

julia> b=BitArray([true,false])
2-element BitArray{1}:
 1
 0

julia> a .+ b
2-element Array{Int64,1}:
 2
 2

julia> @strided a .+ b
ERROR: MethodError: no method matching StridedView(::BitArray{1})

or

julia> a .< a
2-element BitArray{1}:
 0
 0

julia> @strided a .< a
ERROR: MethodError: no method matching StridedView(::BitArray{1})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions