mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-30 00:32:01 +08:00
Modify test expression to avoid numerical differences (#2402).
This commit is contained in:
parent
cd80e04ab7
commit
ae86a146b1
@ -244,7 +244,7 @@ static void test_eval_tensor_binary_with_unary_expr_block() {
|
|||||||
rhs.setRandom();
|
rhs.setRandom();
|
||||||
|
|
||||||
VerifyBlockEvaluator<T, NumDims, Layout>(
|
VerifyBlockEvaluator<T, NumDims, Layout>(
|
||||||
(lhs.square() + rhs.square()).sqrt(),
|
(lhs.abs() + rhs.abs()).sqrt(),
|
||||||
[&dims]() { return RandomBlock<Layout>(dims, 1, 10); });
|
[&dims]() { return RandomBlock<Layout>(dims, 1, 10); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user