@@ -17,7 +17,7 @@ struct Dimensions{N,T<:Tuple} <: AbstractDimensions{N,N}
1717 to:: T
1818
1919 # make sure the elements in the tuple are all AbstractSpace
20- Dimensions (to:: NTuple{N,T } ) where {N,T <: AbstractSpace } = new {N,typeof(to)} (to)
20+ Dimensions (to:: NTuple{N,AbstractSpace } ) where {N} = new {N,typeof(to)} (to)
2121end
2222function Dimensions (dims:: Union{AbstractVector{T},NTuple{N,T}} ) where {T<: Integer ,N}
2323 _non_static_array_warning (" dims" , dims)
@@ -48,7 +48,7 @@ struct GeneralDimensions{M,N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{M,N}
4848 from:: T2 # space acting on the right
4949
5050 # make sure the elements in the tuple are all AbstractSpace
51- GeneralDimensions (to:: NTuple{M,T1 } , from:: NTuple{N,T2 } ) where {M,N,T1 <: AbstractSpace ,T2 <: AbstractSpace } =
51+ GeneralDimensions (to:: NTuple{M,AbstractSpace } , from:: NTuple{N,AbstractSpace } ) where {M,N} =
5252 new {M,N,typeof(to),typeof(from)} (to, from)
5353end
5454function GeneralDimensions (dims:: Union{AbstractVector{T},NTuple{N,T}} ) where {T<: Union{AbstractVector,NTuple} ,N}
0 commit comments