Hi, When I changed "fptype" from float to double in samples/finance/monte-carlo/monte-carlo.h, the compile fails because operator* doesn't support dense-float operation. See line 283, 284 in randomlib/arbb_random.h arbb::dense sqlln_u1 = sqrt(arbb::log(u1) * (arbb::f32)(-2)); norm = sqlln_u1 * sin(u2 * (arbb::f32)(2 * PI)); I want dense::operator* to handle float as operand as plain C does. Though, a quick workaround would be changing code as follows. arbb::dense sqlln_u1 = sqrt(arbb::log(u1) * (T)(-2)); norm = sqlln_u1 * sin(u2 * (T)(2 * PI)); Thanks, Ken
For more complete information about compiler optimizations, see our Optimization Notice.