mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 09:53:13 +08:00
Fixed a compilation warning
This commit is contained in:
parent
bb6acc561e
commit
6a9a29e96f
@ -240,8 +240,8 @@ static void test_memcpy() {
|
|||||||
t1.setRandom();
|
t1.setRandom();
|
||||||
std::vector<float> result(size);
|
std::vector<float> result(size);
|
||||||
thread_pool_device.memcpy(&result[0], t1.data(), size*sizeof(float));
|
thread_pool_device.memcpy(&result[0], t1.data(), size*sizeof(float));
|
||||||
for (int i = 0; i < size; i++) {
|
for (int j = 0; j < size; j++) {
|
||||||
VERIFY_IS_EQUAL(t1(i), result[i]);
|
VERIFY_IS_EQUAL(t1(j), result[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user