vendor/tomotopy/src/Utils/TruncMultiNormal.hpp in tomoto-0.2.2 vs vendor/tomotopy/src/Utils/TruncMultiNormal.hpp in tomoto-0.2.3
- old
+ new
@@ -56,10 +56,10 @@
std::cerr << __FILE__ << "(" << __LINE__ << "): wrong truncation range [" << lower_pos << ", " << upper_pos << "]" << std::endl;
z[j] = (lower_pos + upper_pos) / 2;
}
else
{
- z[j] = rtnorm::rtnorm(rng, lower_pos, upper_pos);
+ z[j] = (_Ty)rtnorm::rtnorm(rng, lower_pos, upper_pos);
}
}
}
ret = (l * z) + multiNormal.mean;
return ret;
\ No newline at end of file