Skip to content

Indexing with arrays #90

@MikeInnes

Description

@MikeInnes

This is with CuArrays own indexing disabled.

Strangely plain arrays seem to work, but not cuarrays.

julia> cu([1:5;])[[5,2,3]]
3-element CuArray{Float32,1}:
 5.0
 2.0
 3.0

julia> cu([1:5;])[cu[5,2,3]]
ERROR: scalar getindex is disabled

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