Skip to content

Missing convert method to facilitate initialisation of fields of type SArray #110

Closed
@krcools

Description

@krcools

The following attempt to construct a Polly fails

using StaticArrays

type Polly{N,T}
    data::SVector{N,T}
end

p = Polly{2,Float64}((1.0, 0.0))

As @andyferris pointed out on discourse this can be fixed by adding a conversion method from a tuple to an SVector.

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