EMPIRE DA  v1.9.1
Data assimilation codes using EMPIRE communication
 All Classes Files Functions Variables Pages
phalf.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine phalf (nrhs, x, Px)
 subroutine to take a full state vector x and return \(P^{1/2}x\) in state space. More...
 

Function/Subroutine Documentation

subroutine phalf ( integer, intent(in)  nrhs,
real(kind=rk), dimension(state_dim,nrhs), intent(in)  x,
real(kind=rk), dimension(state_dim,nrhs), intent(out)  Px 
)

subroutine to take a full state vector x and return \(P^{1/2}x\) in state space.

Given \(x\) compute \(P^{\frac{1}{2}}x\)

where \(P = (Q^{-1} +H^TR^{-1}H)^{-1} = Q^{\frac{1}{2}}(I + Q^{\frac{1}{2}}H^TR^{-1}HQ^{\frac{1}{2}})^{-1}Q^{\frac{1}{2}}\)

This is required for the Zhu Equal weights particle filter equivalent_weights_filter_zhu

Parameters
[in]nrhsthe number of right hand sides
[in]xthe input vector
[out]pxthe resulting vector where Px \(= P^{\frac{1}{2}}x\)

Definition at line 11 of file phalf.f90.

Here is the call graph for this function:

Here is the caller graph for this function: