2929# ####################################
3030# # SLArray to named tuple
3131function  Base. convert (:: Type{NamedTuple} ,
32-                        x:: SLArray{S, T, N, L, Syms} ) where  {S, T, N, L, Syms}
32+         x:: SLArray{S, T, N, L, Syms} ) where  {S, T, N, L, Syms}
3333    tup =  NTuple {length(Syms), T} (x. __x)
3434    NamedTuple {Syms, typeof(tup)} (tup)
3535end 
3636Base. keys (x:: SLArray{S, T, N, L, Syms} ) where  {S, T, N, L, Syms} =  Syms
3737
3838function  StaticArrays. similar_type (:: Type{SLArray{S, T, N, L, Syms}} , T2,
39-                                     :: Size{S} ) where  {S, T, N, L, Syms}
39+         :: Size{S} ) where  {S, T, N, L, Syms}
4040    SLArray{S, T2, N, L, Syms}
4141end 
4242function  RecursiveArrayTools. recursive_unitless_eltype (a:: Type{T} ) where  {T <:  SLArray }
@@ -157,8 +157,8 @@ Base.@propagate_inbounds Base.getindex(x::SLArray, i::Int) = getfield(x, :__x)[i
157157@inline  Base. Tuple (x:: SLArray ) =  Tuple (x. __x)
158158
159159function  StaticArrays. similar_type (:: Type{SLArray{S, T, N, L, Syms}} , :: Type{NewElType} ,
160-                                     :: Size{NewSize} ) where  {S, T, N, L, Syms, NewElType,
161-                                                             NewSize}
160+         :: Size{NewSize} ) where  {S, T, N, L, Syms, NewElType,
161+         NewSize}
162162    n =  prod (NewSize)
163163    if  n ==  L
164164        SLArray{Tuple{NewSize... }, NewElType, length (NewSize), L, Syms}
@@ -168,7 +168,7 @@ function StaticArrays.similar_type(::Type{SLArray{S, T, N, L, Syms}}, ::Type{New
168168end 
169169
170170function  Base. similar (:: Type{SLArray{S, T, N, L, Syms}} , :: Type{NewElType} ,
171-                        :: Size{NewSize} ) where  {S, T, N, L, Syms, NewElType, NewSize}
171+         :: Size{NewSize} ) where  {S, T, N, L, Syms, NewElType, NewSize}
172172    n =  prod (NewSize)
173173    if  n ==  L
174174        tmp =  Array {NewElType} (undef, NewSize)
@@ -188,9 +188,9 @@ Base.@propagate_inbounds function Base.getindex(x::SLArray, s::Symbol)
188188end 
189189Base. @propagate_inbounds  Base. getindex (x:: SLArray , s:: Val ) =  __getindex (x, s)
190190Base. @propagate_inbounds  function  Base. getindex (x:: SLArray ,
191-                                                  inds:: AbstractArray{I, 1} ) where  {
192-                                                                                    I < :
193-                                                                                    Integer}
191+         inds:: AbstractArray{I, 1} ) where  {
192+         I < :
193+         Integer}
194194    getindex (x. __x, inds)
195195end 
196196Base. @propagate_inbounds  function  Base. getindex (x:: SLArray , inds:: StaticVector{<:Any, Int} )
@@ -203,7 +203,7 @@ Base.@propagate_inbounds function Base.getindex(x::SLArray, s::AbstractArray{Sym
203203end 
204204
205205function  Base. vcat (x1:: SLArray{S1, T, 1, L1, Syms1} ,
206-                     x2:: SLArray{S2, T, 1, L2, Syms2} ) where  {S1, S2, T, L1, L2, Syms1, Syms2}
206+         x2:: SLArray{S2, T, 1, L2, Syms2} ) where  {S1, S2, T, L1, L2, Syms1, Syms2}
207207    __x =  vcat (x1. __x, x2. __x)
208208    SLArray {StaticArrays.size_tuple(Size(__x)), (Syms1..., Syms2...)} (__x)
209209end 
@@ -335,7 +335,7 @@ function Base.:\(A::StaticArrays.LU, b::SLArray{S, T, N, L, Syms}) where {S, T,
335335end 
336336
337337function  Base. reshape (x:: SLArray{S, T, N, L, Syms} ,
338-                        ax:: Tuple{SOneTo, Vararg{SOneTo}} ) where  {S <:  Tuple , T, N, L, Syms,
339-                                                                  SOneTo <:  SOneTo }
338+         ax:: Tuple{SOneTo, Vararg{SOneTo}} ) where  {S <:  Tuple , T, N, L, Syms,
339+         SOneTo <:  SOneTo }
340340    SLArray {S, T, N, L, Syms} (reshape (x. __x, ax))
341341end 
0 commit comments