Ver código fonte

Add repmat test for colMajor sparse matrices

Paul Rötzer 4 anos atrás
pai
commit
0c0e9e5dac
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      tests/include/igl/repmat.cpp

+ 6 - 0
tests/include/igl/repmat.cpp

@@ -45,6 +45,12 @@ void testRepmat(
   checkRepmat<T, majorType>(A, B, rows, cols, r, c);
   checkRepmat<T, majorType>(A, B, rows, cols, r, c);
 }
 }
 
 
+TEST_CASE("repmat: sparse rowMajor", "[igl]")
+{
+  testRepmat<double, Eigen::RowMajor>(4,  5, 2, 4);
+  testRepmat<   int, Eigen::RowMajor>(2,  8, 3, 4);
+  testRepmat< float, Eigen::RowMajor>(6, 10, 2, 2);
+}
 
 
 TEST_CASE("repmat: sparse colMajor", "[igl]")
 TEST_CASE("repmat: sparse colMajor", "[igl]")
 {
 {