File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,16 +55,18 @@ abstract type SemImplied end
5555abstract type SemImpliedSymbolic <: SemImplied end
5656
5757"""
58- State of `SemImplied` that corresponds to the specific SEM parameter values.
58+ State of [ `SemImplied`](@ref) that corresponds to the specific SEM parameter values.
5959
6060Contains the necessary vectors and matrices for calculating the SEM
6161objective, gradient and hessian (whichever is requested).
6262"""
63- abstract type SemImpliedState end
63+ abstract type SemImpliedState{I <: SemImplied } end
6464
65+ impliedtype (:: Type{SemImpliedState{I}} ) where I = I
66+ impliedtype (state:: SemImpliedState ) = impliedtype (typeof (state))
6567implied (state:: SemImpliedState ) = state. implied
66- MeanStruct (state :: SemImpliedState ) = MeanStruct (implied (state))
67- HessianEval (state :: SemImpliedState ) = HessianEval (implied (state))
68+ MeanStruct (:: Type{S} ) where {S <: SemImpliedState } = MeanStruct (impliedtype (state))
69+ HessianEval (:: Type{S} ) where {S <: SemImpliedState } = HessianEval (impliedtype (state))
6870
6971"""
7072 abstract type SemLoss{O <: SemObserved, I <: SemImplied} <: AbstractLoss end
You can’t perform that action at this time.
0 commit comments