Skip to content

Commit 5ed430b

Browse files
Alexey Stukalovalyst
authored andcommitted
remove get_n_nodes()
replaced by nvars()
1 parent 7c51f8f commit 5ed430b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/loss/ML/FIML.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function SemFIML(; observed, specification, kwargs...)
7373
meandiff,
7474
imp_inv,
7575
mult,
76-
CommutationMatrix(get_n_nodes(specification)),
76+
CommutationMatrix(nvars(specification)),
7777
nothing,
7878
)
7979
end
@@ -249,7 +249,3 @@ function check_fiml(semfiml, model)
249249
a = cholesky!(Symmetric(semfiml.imp_inv); check = false)
250250
return isposdef(a)
251251
end
252-
253-
get_n_nodes(specification::RAMMatrices) = specification.size_F[2]
254-
get_n_nodes(specification::ParameterTable) =
255-
length(specification.observed_vars) + length(specification.latent_vars)

0 commit comments

Comments
 (0)