We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52c0102 commit c4b2926Copy full SHA for c4b2926
src/combinators/affine.jl
@@ -11,8 +11,10 @@ Base.propertynames(d::AffineTransform{N}) where {N} = N
11
@inline Base.inv(f::AffineTransform{(:μ,:σ)}) = AffineTransform((μ = -(f.σ \ f.μ), ω = f.σ))
12
@inline Base.inv(f::AffineTransform{(:μ,:ω)}) = AffineTransform((μ = - f.ω * f.μ, σ = f.ω))
13
14
+(f::AffineTransform{(:μ,)})(x) = x + f.μ
15
+(f::AffineTransform{(:σ,)})(x) = f.σ * x
16
+(f::AffineTransform{(:ω,)})(x) = f.ω \ x
17
(f::AffineTransform{(:μ,:σ)})(x) = f.σ * x + f.μ
-
18
(f::AffineTransform{(:μ,:ω)})(x) = f.ω \ x + f.μ
19
20
###############################################################################
0 commit comments