@@ -16,7 +16,7 @@ unknown to the compiler (the element type may optionally also be specified).
1616"""
1717const SMatrix{S1, S2, T, L} = SArray{Tuple{S1, S2}, T, 2 , L}
1818
19- @generated function ( :: Type{ SMatrix{S1}} ) (x:: NTuple{L,Any} ) where {S1,L}
19+ @generated function SMatrix {S1} (x:: NTuple{L,Any} ) where {S1,L}
2020 S2 = div (L, S1)
2121 if S1* S2 != L
2222 throw (DimensionMismatch (" Incorrect matrix sizes. $S1 does not divide $L elements" ))
@@ -29,23 +29,23 @@ const SMatrix{S1, S2, T, L} = SArray{Tuple{S1, S2}, T, 2, L}
2929 end
3030end
3131
32- @generated function ( :: Type{ SMatrix{S1,S2}} ) (x:: NTuple{L,Any} ) where {S1,S2,L}
32+ @generated function SMatrix {S1,S2} (x:: NTuple{L,Any} ) where {S1,S2,L}
3333 return quote
3434 $ (Expr (:meta , :inline ))
3535 T = promote_tuple_eltype (typeof (x))
3636 SMatrix {S1, S2, T, L} (x)
3737 end
3838end
3939SMatrixNoType{S1, S2, L, T} = SMatrix{S1, S2, T, L}
40- @generated function ( :: Type{ SMatrixNoType{S1, S2, L}} ) (x:: NTuple{L,Any} ) where {S1,S2,L}
40+ @generated function SMatrixNoType {S1, S2, L} (x:: NTuple{L,Any} ) where {S1,S2,L}
4141 return quote
4242 $ (Expr (:meta , :inline ))
4343 T = promote_tuple_eltype (typeof (x))
4444 SMatrix {S1, S2, T, L} (x)
4545 end
4646end
4747
48- @generated function ( :: Type{ SMatrix{S1,S2,T}} ) (x:: NTuple{L,Any} ) where {S1,S2,T,L}
48+ @generated function SMatrix {S1,S2,T} (x:: NTuple{L,Any} ) where {S1,S2,T,L}
4949 return quote
5050 $ (Expr (:meta , :inline ))
5151 SMatrix {S1, S2, T, L} (x)
0 commit comments