mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 04:09:10 +08:00
Cleaning in Redux.h
This commit is contained in:
parent
2c516ba38f
commit
72bd05b6d8
@ -415,16 +415,6 @@ DenseBase<Derived>::redux(const Func& func) const
|
|||||||
{
|
{
|
||||||
eigen_assert(this->rows()>0 && this->cols()>0 && "you are using an empty matrix");
|
eigen_assert(this->rows()>0 && this->cols()>0 && "you are using an empty matrix");
|
||||||
|
|
||||||
// FIXME, eval_nest should be handled by redux_evaluator, however:
|
|
||||||
// - it is currently difficult to provide the right Flags since they are still handled by the expressions
|
|
||||||
// - handling it here might reduce the number of template instantiations
|
|
||||||
// typedef typename internal::nested_eval<Derived,1>::type ThisNested;
|
|
||||||
// typedef typename internal::remove_all<ThisNested>::type ThisNestedCleaned;
|
|
||||||
// typedef typename internal::redux_evaluator<ThisNestedCleaned> ThisEvaluator;
|
|
||||||
//
|
|
||||||
// ThisNested thisNested(derived());
|
|
||||||
// ThisEvaluator thisEval(thisNested);
|
|
||||||
|
|
||||||
typedef typename internal::redux_evaluator<Derived> ThisEvaluator;
|
typedef typename internal::redux_evaluator<Derived> ThisEvaluator;
|
||||||
ThisEvaluator thisEval(derived());
|
ThisEvaluator thisEval(derived());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user