Fix compilation of product with inverse transpositions (e.g., mat * Transpositions().inverse())

This commit is contained in:
Gael Guennebaud
2018-04-03 23:06:44 +02:00
parent 8c7b5158a1
commit a1292395d6
2 changed files with 13 additions and 1 deletions

View File

@@ -384,7 +384,7 @@ class Transpose<TranspositionsBase<TranspositionsDerived> >
const Product<OtherDerived, Transpose, AliasFreeProduct>
operator*(const MatrixBase<OtherDerived>& matrix, const Transpose& trt)
{
return Product<OtherDerived, Transpose, AliasFreeProduct>(matrix.derived(), trt.derived());
return Product<OtherDerived, Transpose, AliasFreeProduct>(matrix.derived(), trt);
}
/** \returns the \a matrix with the inverse transpositions applied to the rows.