mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
fix unused warning
This commit is contained in:
parent
006e18e52b
commit
eb3d8f68bb
@ -332,6 +332,7 @@ struct redux_impl<Func, Evaluator, LinearVectorizedTraversal, CompleteUnrolling>
|
|||||||
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE
|
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE
|
||||||
Scalar run(const Evaluator &eval, const Func& func, const XprType &xpr)
|
Scalar run(const Evaluator &eval, const Func& func, const XprType &xpr)
|
||||||
{
|
{
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(xpr)
|
||||||
eigen_assert(xpr.rows()>0 && xpr.cols()>0 && "you are using an empty matrix");
|
eigen_assert(xpr.rows()>0 && xpr.cols()>0 && "you are using an empty matrix");
|
||||||
if (VectorizedSize > 0) {
|
if (VectorizedSize > 0) {
|
||||||
Scalar res = func.predux(redux_vec_unroller<Func, Evaluator, 0, Size / PacketSize>::run(eval,func));
|
Scalar res = func.predux(redux_vec_unroller<Func, Evaluator, 0, Size / PacketSize>::run(eval,func));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user