Skip to content

Only Int64 works for the length of the array #798

Open
@tautomer

Description

@tautomer

This might be a trivial problem, since the defualt type of integer is Int64.

using StaticArrays
n::Int8 = 20
x= MVector{nw, Float64}(undef)

returns

ERROR: ArgumentError: Static Array parameter Size must be a tuple of Ints (e.g. `SArray{Tuple{3,3}}` or `SMatrix{3,3}`).

while

using StaticArrays
n = 20
x= MVector{nw, Float64}(undef)

works fine.

I think in the Integer supertype, only Int64 is accepted. Is there any particular reason for this?

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