File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,6 @@ Length(::Type{SA}) where {SA <: StaticArray} = Length(Size(SA))
107
107
@propagate_inbounds unroll_tuple (f, :: Length{L} ) where {L} = unroll_tuple (f, Val{L})
108
108
109
109
110
- """
111
- Static or runtime size of an array
112
- """
113
- const SRSize = Union{Size,Tuple{Vararg{Int}}}
114
-
115
110
"""
116
111
Return either the statically known Size() or runtime size()
117
112
"""
@@ -125,12 +120,12 @@ Return either the statically known Size() or runtime size()
125
120
126
121
# Returns the common Size of the inputs (or else throws a DimensionMismatch)
127
122
@inline same_size (as... ) = _same_size (_first_static_size (as... ), as... )
128
- @inline function _same_size (s:: SRSize , a1, as... )
123
+ @inline function _same_size (s:: Size , a1, as... )
129
124
if s == _size (a1)
130
125
return _same_size (s, as... )
131
126
else
132
127
throw (DimensionMismatch (" Dimensions must match. Got inputs with $s and $(_size (a1)) ." ))
133
128
end
134
129
end
135
- @inline _same_size (s:: SRSize ) = s
130
+ @inline _same_size (s:: Size ) = s
136
131
You can’t perform that action at this time.
0 commit comments