Browse Source

Add repmat test for colMajor sparse matrices

Paul Rötzer 4 years ago
parent
commit
0c0e9e5dac
1 changed files with 6 additions and 0 deletions
  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);
 }
 
+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]")
 {