rel_entr function delivers NaN

Hello,

I’m using CVX 3.0beta, Build 1173 (c9b179b) and trying to use the rel_entr function. From what I see in the documentation and the rel_entr.m file the function should behave like this:

rel_entr( 0, y )= 0 if y>=0

But when I enter this

>> rel_entr(0,1)

ans =

   NaN

I get NaN. Is there a bug or am I missing something?

thank you for your help!

Looks like a bug. Of course, the version of rel_entr used within CVX models with variables uses different code so it shouldn’t be affected by this; this is only the numerical work.