mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-19 11:24:26 +08:00
typo
This commit is contained in:
parent
554356b034
commit
421aa4f358
@ -177,10 +177,10 @@ struct sparse_time_dense_product_impl<SparseLhsType,DenseRhsType,DenseResType, R
|
|||||||
Index n = lhs.outerSize();
|
Index n = lhs.outerSize();
|
||||||
for(Index j=0; j<n; ++j)
|
for(Index j=0; j<n; ++j)
|
||||||
{
|
{
|
||||||
typename Res::Scalar tmp(res.coeffRef(j,c));
|
typename Res::Scalar tmp(0);
|
||||||
for(LhsInnerIterator it(lhs,j); it ;++it)
|
for(LhsInnerIterator it(lhs,j); it ;++it)
|
||||||
tmp += it.value() * rhs.coeff(it.index(),c);
|
tmp += it.value() * rhs.coeff(it.index(),c);
|
||||||
res.coeffRef(j,c) = alpha * tmp;
|
res.coeffRef(j,c) += alpha * tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user