Closed xhu4 closed 5 years ago
Currently the linear_model_setup defines the model and jacob method as
linear_model_setup
model
jacob
def model(x,t,dt): return dt*(ModelMatrix@x) def jacob(x,t,dt): return dt*ModelMatrix
If I understand it correctly, shouldn't it be something like this?
def model(x,t,dt): return np.linalg.matrix_power(ModelMatrix, dt) @ x def jacob(x,t,dt): return np.linalg.matrix_power(ModelMatrix, dt)
Yes, that would be better. There are complications:
This has been taken care of in this patch: https://github.com/nansencenter/DAPPER/commit/83ee9df6d657bbcdc39d73794eec15ab78a96b2b
Currently the
linear_model_setup
defines themodel
andjacob
method asIf I understand it correctly, shouldn't it be something like this?