Skip to content

Commit 26a57e1

Browse files
author
Julian
committed
Indent after @eval
1 parent 2a44808 commit 26a57e1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/solve.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ end
2828

2929
for Sa in 2:3 # not needed for Sa = 1;
3030
@eval begin
31-
@inline function solve(::Size{($Sa,$Sa)}, ::Size{Sb}, a::StaticMatrix{<:Any, <:Any, Ta}, b::StaticMatrix{<:Any, <:Any, Tb}) where {Sb, Ta, Tb}
32-
d = det(a)
33-
T = typeof((one(Ta)*zero(Tb) + one(Ta)*zero(Tb))/d)
34-
c = similar(b, T)
35-
for col = 1:Sb[2]
36-
@inbounds c[:, col] = solve(Size($Sa,$Sa), Size($Sa,), a, b[:, col])
31+
@inline function solve(::Size{($Sa,$Sa)}, ::Size{Sb}, a::StaticMatrix{<:Any, <:Any, Ta}, b::StaticMatrix{<:Any, <:Any, Tb}) where {Sb, Ta, Tb}
32+
d = det(a)
33+
T = typeof((one(Ta)*zero(Tb) + one(Ta)*zero(Tb))/d)
34+
c = similar(b, T)
35+
for col = 1:Sb[2]
36+
@inbounds c[:, col] = solve(Size($Sa,$Sa), Size($Sa,), a, b[:, col])
37+
end
38+
return similar_type(b, T)(c)
3739
end
38-
return similar_type(b, T)(c)
39-
end
4040
end # @eval
4141
end
4242

0 commit comments

Comments
 (0)