| 148 | }; |
| 149 | |
| 150 | TEST_P(EigenMatMulTest, DoIt) { |
| 151 | MatMulShape shape = std::get<0>(GetParam()); |
| 152 | bool transpose_lhs = std::get<1>(GetParam()); |
| 153 | bool transpose_rhs = std::get<2>(GetParam()); |
| 154 | bool single_threaded = std::get<3>(GetParam()); |
| 155 | |
| 156 | auto a = MakeLinspaceArray2D(0.0, 1.0, shape.m, shape.k); |
| 157 | auto b = MakeLinspaceArray2D(-2.0, 2.0, shape.k, shape.n); |
| 158 | auto c = EigenMatrixMultiply(*a, *b, transpose_lhs, transpose_rhs, |
| 159 | single_threaded); |
| 160 | CheckMatrixMultiply(*a, *b, *c); |
| 161 | } |
| 162 | |
| 163 | INSTANTIATE_TEST_SUITE_P(EigenMatMulTestInstantiaion, EigenMatMulTest, |
| 164 | ::testing::Combine(::testing::ValuesIn(MatMulShapes), |
nothing calls this directly
no test coverage detected