mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Fix CoeffReadCost issues
This commit is contained in:
parent
5806e73800
commit
ae40583965
@ -60,7 +60,9 @@ class PermutationBase : public EigenBase<Derived>
|
||||
typedef typename Traits::IndicesType IndicesType;
|
||||
enum {
|
||||
Flags = Traits::Flags,
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
CoeffReadCost = Traits::CoeffReadCost,
|
||||
#endif
|
||||
RowsAtCompileTime = Traits::RowsAtCompileTime,
|
||||
ColsAtCompileTime = Traits::ColsAtCompileTime,
|
||||
MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime,
|
||||
@ -473,8 +475,11 @@ struct traits<PermutationWrapper<_IndicesType> >
|
||||
ColsAtCompileTime = _IndicesType::SizeAtCompileTime,
|
||||
MaxRowsAtCompileTime = IndicesType::MaxRowsAtCompileTime,
|
||||
MaxColsAtCompileTime = IndicesType::MaxColsAtCompileTime,
|
||||
Flags = 0,
|
||||
Flags = 0
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
,
|
||||
CoeffReadCost = _IndicesType::CoeffReadCost
|
||||
#endif
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -626,7 +631,9 @@ class Transpose<PermutationBase<Derived> >
|
||||
typedef typename Derived::DenseMatrixType DenseMatrixType;
|
||||
enum {
|
||||
Flags = Traits::Flags,
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
CoeffReadCost = Traits::CoeffReadCost,
|
||||
#endif
|
||||
RowsAtCompileTime = Traits::RowsAtCompileTime,
|
||||
ColsAtCompileTime = Traits::ColsAtCompileTime,
|
||||
MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime,
|
||||
|
@ -16,11 +16,7 @@ namespace internal {
|
||||
template<typename _MatrixType> struct traits<FullPivLU<_MatrixType> >
|
||||
: traits<_MatrixType>
|
||||
{
|
||||
typedef traits<_MatrixType> BaseTraits;
|
||||
enum {
|
||||
Flags = BaseTraits::Flags & RowMajorBit,
|
||||
CoeffReadCost = Dynamic
|
||||
};
|
||||
enum { Flags = 0 };
|
||||
};
|
||||
|
||||
} // end namespace internal
|
||||
@ -755,7 +751,7 @@ void FullPivLU<_MatrixType>::_solve_impl(const RhsType &rhs, DstType &dst) const
|
||||
|
||||
namespace internal {
|
||||
|
||||
#ifdef EIGEN_TEST_EVALUATORS
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
template<typename _MatrixType, typename Rhs>
|
||||
struct solve_retval<FullPivLU<_MatrixType>, Rhs>
|
||||
: solve_retval_base<FullPivLU<_MatrixType>, Rhs>
|
||||
|
Loading…
Reference in New Issue
Block a user