Add edf to the other C++ functions for pstpm2