Skip to content

Support combination with FillArrays.jl #815

Closed
@dlfivefifty

Description

@dlfivefifty

It comes up pretty naturally to combine StaticArrays.jl with FillArrays.jl, e.g., Fill(SVector(1,2), 10). This can support more specialised behaviour, for example, we could support

Fill(SVector(1,2), 10) .* Zeros(10) === Zeros{SVector{2,Float64},1}(10)

This raises a couple questions:

  1. Should FillArrays.jl depend on StaticArrays.jl or the other way around? An argument that FillArrays.jl should depend on StaticArrays.jl is that the tests already do, and its currently more prone to breaking tags.
  2. Should we add a static version of Fill? Ref Unify Ones and Zeros as SFill{0} and SFill{k}? FillArrays.jl#104

If we decide on FillArrays.jl depending on StaticArrays.jl, I can close this issue as there's nothing to do here, but just wanted to raise the question first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions