Skip to content

Commit 917d920

Browse files
committed
supportdim
1 parent 6483f2d commit 917d920

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/combinators/affine.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,9 @@ end
224224
# apply!(x, f, z)
225225
# return z
226226
# end
227+
228+
supportdim(nt::NamedTuple{(:μ,:σ)}) = colsize(nt.σ)
229+
supportdim(nt::NamedTuple{(:μ,:ω)}) = rowsize(nt.ω)
230+
supportdim(nt::NamedTuple{(:σ,)}) = colsize(nt.σ)
231+
supportdim(nt::NamedTuple{(:ω,)}) = rowsize(nt.ω)
232+
supportdim(nt::NamedTuple{(:μ,)}) = size(nt.μ)

0 commit comments

Comments
 (0)