Skip to content

similar() of ArrayPartition involving primitives fails #292

@davidschlegel

Description

@davidschlegel

If I have an ArrayPartition involving a primitive type, such as a regular number, creating a similar through similar array fails.
Example:

using RecursiveArrayTools
a = randn()
b = randn(5,5)
arr_part = ArrayPartition(a,b)
similar(arr_part) # fails

ArrayPartitions are not designed for single numbers, but it would be nice if it also works for these types.

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