sparse module: much much faster transposition code

This commit is contained in:
Gael Guennebaud
2008-10-18 11:11:10 +00:00
parent 727dfa1c43
commit cfca7f71fe
2 changed files with 54 additions and 5 deletions

View File

@@ -169,7 +169,10 @@ struct ei_sparse_product_selector<Lhs,Rhs,ResultType,ColMajor,ColMajor,ColMajor>
}
}
for (typename AmbiVector<Scalar>::Iterator it(tempVector); it; ++it)
res.fill(it.index(), j) = it.value();
if (ResultType::Flags&RowMajorBit)
res.fill(j,it.index()) = it.value();
else
res.fill(it.index(), j) = it.value();
}
res.endFill();
}