Skip to content

Advice for copyto! and staticarrays #41

Description

@rveltz

Hello,

I would like to use copyto! in my code. So I created a

_copyto!!(x::AbstractArray, y::AbstractArray) = copyto!(x,y)
_copyto!!(x,y) = VI.add!!(x, y, VI.One(), VI.Zero())

I would like to use _copyto!! on StaticArrays but it will fall back to copyto!(x,y) in the above code because they are AbstractArray.
Apart from adding StaticArray as a dependecny and adding the methods _copyto!!(x::SA,y::SA), do you see a better way using the framework of VectorInterface?

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