mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Rewrote Eigen::dimensions_match to prevent a static assertion when the rank of the tensors is different.
This commit is contained in:
@@ -43,6 +43,10 @@ static void test_match()
|
||||
Eigen::DSizes<int, 3> dyn(2,3,7);
|
||||
Eigen::Sizes<2,3,7> stat;
|
||||
VERIFY_IS_EQUAL(Eigen::dimensions_match(dyn, stat), true);
|
||||
|
||||
Eigen::DSizes<int, 3> dyn1(2,3,7);
|
||||
Eigen::DSizes<int, 2> dyn2(2,3);
|
||||
VERIFY_IS_EQUAL(Eigen::dimensions_match(dyn, stat), false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user