I have a peculiar usecase where I have some edges w/ double
weights set initially to std::numeric_limits<double>::infinity()
. These weights will be set to something else later on in program execution.
Now that we have the context, here is the main issue. I need to compare these edge weights to the square of some weight that I compute, and to account for the squaring of my computed weight, I will also have to square the edge weights. Of course, this will result in an initial multiplying of infinity by infinity. I am wondering if multiplying a double set to std::numeric_limits<double>::infinity()
by itself is defined behavior. Can I expect it to remain unchanged?
I could not find any documentation even on cppreference.