Skip to content

Commit

Permalink
Fix in ksettings_input_test
Browse files Browse the repository at this point in the history
  • Loading branch information
fipelle committed Mar 15, 2022
1 parent 3db794d commit 9035362
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/kalman.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
"""
ksettings_input_test(ksettings::KalmanSettings, Y::JArray, B::FloatMatrix, R::SymMatrix, C::FloatMatrix, D::FloatMatrix, Q::SymMatrix, X0::FloatArray, P0::SymMatrix, DQD::SymMatrix, n::Int64, T::Int64, m::Int64; compute_loglik::Bool=true, store_history::Bool=true)
ksettings_input_test(ksettings::KalmanSettings, Y::JArray, B::FloatMatrix, R::Union{UniformScaling{Float64}, SymMatrix}, C::FloatMatrix, D::FloatMatrix, Q::SymMatrix, X0::FloatArray, P0::SymMatrix, DQD::SymMatrix, n::Int64, T::Int64, m::Int64; compute_loglik::Bool=true, store_history::Bool=true)
Return true if the entries of ksettings are correct (false otherwise).
"""
function ksettings_input_test(ksettings::KalmanSettings, Y::JArray, B::FloatMatrix, R::SymMatrix, C::FloatMatrix, D::FloatMatrix, Q::SymMatrix, X0::FloatArray, P0::SymMatrix, DQD::SymMatrix, n::Int64, T::Int64, m::Int64; compute_loglik::Bool=true, store_history::Bool=true)
if typeof(ksettings.R) <: UniformScaling{Float64}
ksettings_R = Matrix(ksettings.R, size(R)...);
else
ksettings_R = ksettings.R;
end
function ksettings_input_test(ksettings::KalmanSettings, Y::JArray, B::FloatMatrix, R::Union{UniformScaling{Float64}, SymMatrix}, C::FloatMatrix, D::FloatMatrix, Q::SymMatrix, X0::FloatArray, P0::SymMatrix, DQD::SymMatrix, n::Int64, T::Int64, m::Int64; compute_loglik::Bool=true, store_history::Bool=true)

return ~(false in [ksettings.Y.data === Y;
ksettings.B == B;
Expand Down

0 comments on commit 9035362

Please sign in to comment.