mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-21 03:11:25 +08:00
Fix missuse of unitialized values in unit tests
This commit is contained in:
parent
84637ca58c
commit
f7e52d22d4
@ -145,7 +145,6 @@ template<typename Scalar> void packetmath()
|
||||
for (int i=0; i<PacketSize; ++i)
|
||||
ref[i] = data1[i+offset];
|
||||
|
||||
typedef Matrix<Scalar, PacketSize, 1> Vector;
|
||||
VERIFY(areApprox(ref, data2, PacketSize) && "internal::palign");
|
||||
}
|
||||
|
||||
@ -261,6 +260,8 @@ template<typename Scalar> void packetmath_notcomplex()
|
||||
EIGEN_ALIGN16 Scalar data1[internal::packet_traits<Scalar>::size*4];
|
||||
EIGEN_ALIGN16 Scalar data2[internal::packet_traits<Scalar>::size*4];
|
||||
EIGEN_ALIGN16 Scalar ref[internal::packet_traits<Scalar>::size*4];
|
||||
|
||||
Array<Scalar,Dynamic,1>::Map(data1, internal::packet_traits<Scalar>::size*4).setRandom();
|
||||
|
||||
ref[0] = data1[0];
|
||||
for (int i=0; i<PacketSize; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user