mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
fix overflow in packetmath unit test
This commit is contained in:
parent
6e01780541
commit
a00aaf7f7e
@ -126,8 +126,8 @@ template<typename Scalar> void packetmath()
|
||||
RealScalar refvalue = 0;
|
||||
for (int i=0; i<size; ++i)
|
||||
{
|
||||
data1[i] = internal::random<Scalar>();
|
||||
data2[i] = internal::random<Scalar>();
|
||||
data1[i] = internal::random<Scalar>()/PacketSize;
|
||||
data2[i] = internal::random<Scalar>()/PacketSize;
|
||||
refvalue = std::max(refvalue,internal::abs(data1[i]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user