mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Use default sorting strategy for square products.
This commit is contained in:
parent
1fa15ceee6
commit
b507b82326
@ -143,7 +143,7 @@ struct conservative_sparse_sparse_product_selector<Lhs,Rhs,ResultType,ColMajor,C
|
|||||||
// If the result is tall and thin (in the extreme case a column vector)
|
// If the result is tall and thin (in the extreme case a column vector)
|
||||||
// then it is faster to sort the coefficients inplace instead of transposing twice.
|
// then it is faster to sort the coefficients inplace instead of transposing twice.
|
||||||
// FIXME, the following heuristic is probably not very good.
|
// FIXME, the following heuristic is probably not very good.
|
||||||
if(lhs.rows()>=rhs.cols())
|
if(lhs.rows()>rhs.cols())
|
||||||
{
|
{
|
||||||
ColMajorMatrix resCol(lhs.rows(),rhs.cols());
|
ColMajorMatrix resCol(lhs.rows(),rhs.cols());
|
||||||
// perform sorted insertion
|
// perform sorted insertion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user