| 349 | } |
| 350 | |
| 351 | void test_product() |
| 352 | { |
| 353 | typedef Matrix<bfloat16,Dynamic,Dynamic> MatrixXh; |
| 354 | Index rows = internal::random<Index>(1,EIGEN_TEST_MAX_SIZE); |
| 355 | Index cols = internal::random<Index>(1,EIGEN_TEST_MAX_SIZE); |
| 356 | Index depth = internal::random<Index>(1,EIGEN_TEST_MAX_SIZE); |
| 357 | MatrixXh Ah = MatrixXh::Random(rows,depth); |
| 358 | MatrixXh Bh = MatrixXh::Random(depth,cols); |
| 359 | MatrixXh Ch = MatrixXh::Random(rows,cols); |
| 360 | MatrixXf Af = Ah.cast<float>(); |
| 361 | MatrixXf Bf = Bh.cast<float>(); |
| 362 | MatrixXf Cf = Ch.cast<float>(); |
| 363 | VERIFY_IS_APPROX(Ch.noalias()+=Ah*Bh, (Cf.noalias()+=Af*Bf).cast<bfloat16>()); |
| 364 | } |
| 365 | |
| 366 | EIGEN_DECLARE_TEST(bfloat16_float) |
| 367 | { |
no test coverage detected