Fix tri = complex * real product, and add respective unit test.

This commit is contained in:
Gael Guennebaud
2016-01-27 17:12:25 +01:00
parent 21b5345782
commit 9801c959e6
2 changed files with 12 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ struct tribb_kernel
typedef typename Traits::ResScalar ResScalar;
enum {
BlockSize = EIGEN_PLAIN_ENUM_MAX(mr,nr)
BlockSize = meta_least_common_multiple<EIGEN_PLAIN_ENUM_MAX(mr,nr),EIGEN_PLAIN_ENUM_MIN(mr,nr)>::ret
};
void operator()(ResScalar* _res, Index resStride, const LhsScalar* blockA, const RhsScalar* blockB, Index size, Index depth, const ResScalar& alpha)
{