Skip to content

Support bang-bang methods for StaticArrays #32

@rveltz

Description

@rveltz

Hi!

Is it expected!

using StaticArrays, VectorInterface

julia> scale!!(SVector(1.,1.), 1.)
ERROR: setindex!(::SVector{2, Float64}, value, ::Int) is not defined.
 Hint: Use `MArray` or `SizedArray` to create a mutable static array
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] setindex!(a::SVector{2, Float64}, value::Float64, i::Int64)
    @ StaticArrays ~/.julia/packages/StaticArrays/DsPgf/src/indexing.jl:3
  [3] macro expansion
    @ ~/.julia/packages/StaticArrays/DsPgf/src/broadcast.jl:159 [inlined]
  [4] _broadcast!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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