Skip to content

broadcast assign an array to ArrayPartition #71

Description

@goretkin
import RecursiveArrayTools: ArrayPartition

a = ArrayPartition([1], [2])

# works
a[1] = 10
a[2] = 20

# does not
a .= [10, 20]

with DimensionMismatch("destination axes (Base.OneTo(1),) are not compatible with source axes (Base.OneTo(2),)")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions