@@ -704,6 +704,33 @@ function init_defectmat(
704704 return Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
705705end
706706
707+ function init_defectmat (
708+ model:: NonLinModel , estim:: StateEstimator{NT} , transcription:: CollocationMethod , Hp, Hc, _
709+ )
710+
711+ end
712+
713+ """
714+ init_defectmat(
715+ model::NonLinModel, estim::IntenalModel{NT}, transcription::CollocationMethod, Hp, Hc, _
716+ ) -> Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
717+
718+ Return empty matrices for [`InternalModel`](@ref) (state vector is not augmented).
719+ """
720+ function init_defectmat (
721+ model:: NonLinModel , estim:: IntenalModel{NT} , transcription:: CollocationMethod , Hp, Hc, _
722+ ) where {NT<: Real }
723+ nx̂, nu, nd = estim. nx̂, model. nu, model. nd
724+ nZ = get_nZ (estim, transcription, Hp, Hc)
725+ Eŝ = zeros (NT, 0 , nZ)
726+ Gŝ = zeros (NT, 0 , nd)
727+ Jŝ = zeros (NT, 0 , nd* Hp)
728+ Kŝ = zeros (NT, 0 , nx̂)
729+ Vŝ = zeros (NT, 0 , nu)
730+ Bŝ = zeros (NT, 0 )
731+ return Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
732+ end
733+
707734"""
708735 init_defectmat(
709736 model::SimModel, estim, transcription::TranscriptionMethod, Hp, Hc, nb
0 commit comments