mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
remove parenthesis suggestion warning
This commit is contained in:
parent
60daf70a20
commit
77b05d5b7d
@ -151,7 +151,7 @@ struct traits<SparseTimeDenseProduct<Lhs,Rhs> >
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename SparseLhsType, typename DenseRhsType, typename DenseResType,
|
template<typename SparseLhsType, typename DenseRhsType, typename DenseResType,
|
||||||
int LhsStorageOrder = SparseLhsType::IsRowMajor?RowMajor:ColMajor,
|
int LhsStorageOrder = ((SparseLhsType::Flags&RowMajorBit)==RowMajorBit) ? RowMajor : ColMajor,
|
||||||
bool ColPerCol = ((DenseRhsType::Flags&RowMajorBit)==0) || DenseRhsType::ColsAtCompileTime==1>
|
bool ColPerCol = ((DenseRhsType::Flags&RowMajorBit)==0) || DenseRhsType::ColsAtCompileTime==1>
|
||||||
struct sparse_time_dense_product_impl;
|
struct sparse_time_dense_product_impl;
|
||||||
|
|
||||||
@ -167,8 +167,8 @@ struct sparse_time_dense_product_impl<SparseLhsType,DenseRhsType,DenseResType, R
|
|||||||
{
|
{
|
||||||
for(Index c=0; c<rhs.cols(); ++c)
|
for(Index c=0; c<rhs.cols(); ++c)
|
||||||
{
|
{
|
||||||
Index j=0;
|
int n = lhs.outerSize();
|
||||||
for(j=0; j<lhs.outerSize(); ++j)
|
for(Index j=0; j<n; ++j)
|
||||||
{
|
{
|
||||||
typename Res::Scalar tmp(0);
|
typename Res::Scalar tmp(0);
|
||||||
for(LhsInnerIterator it(lhs,j); it ;++it)
|
for(LhsInnerIterator it(lhs,j); it ;++it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user