From 57b17b16f64757e69456ca9c0c65855cd3528820 Mon Sep 17 00:00:00 2001 From: RCh Date: Sun, 30 Nov 2025 18:23:23 +0100 Subject: [PATCH] Integer to StaticDimension --- src/StaticArraysCore.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/StaticArraysCore.jl b/src/StaticArraysCore.jl index 66d3d06..5c83683 100644 --- a/src/StaticArraysCore.jl +++ b/src/StaticArraysCore.jl @@ -465,10 +465,10 @@ Used to signify that a dimension of an array is not known statically. """ struct Dynamic end -const StaticDimension = Union{Int, Dynamic} +const StaticDimension = Union{Integer, Dynamic} """ - Size(dims::Int...) + Size(dims::Integer...) `Size` is used extensively throughout the `StaticArrays` API to describe _compile-time_ knowledge of the size of an array. The dimensions are stored as a type parameter and are @@ -478,7 +478,7 @@ size of `A` can be obtained by `Size(A)`. (rather than `size(zeros(3,3))`, which `Base.Tuple{2,Int}`). Note that if dimensions are not known statically (e.g., for standard `Array`s), -[`Dynamic()`](@ref) should be used instead of an `Int`. +[`Dynamic()`](@ref) should be used instead of an `Integer`. Size(a::AbstractArray) Size(::Type{T<:AbstractArray})