mardi 29 août 2017

Calculating log-sum-exp function in c++

Are there any functions in the c++ standard library that calculate the log of the sum of exponentials? I am concerned specifically with the possibility that the summands will underflow. This is the situation where you are exponentiating negative numbers that have a large absolute value. I am using c++11.

Aucun commentaire:

Enregistrer un commentaire