Fix Build error on MSVC

This commit is contained in:
Desire NUENTSA 2012-09-27 12:04:59 +02:00
parent 72bfed5e20
commit 82c3ff3784

View File

@ -32,8 +32,8 @@ template<typename T>
void test2dHyperbolicRotation(double tol)
{
Matrix<std::complex<T>,2,2> A, B, C;
T angle, ch = std::cosh(1);
std::complex<T> ish(0, std::sinh(1));
T angle, ch = std::cosh((T)1);
std::complex<T> ish(0, std::sinh((T)1));
A << ch, ish, -ish, ch;
for (int i = 0; i <= 20; i++) {