mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Even more NestByValue cleanup...
This commit is contained in:
@@ -37,12 +37,6 @@ template<typename XprType> struct ei_shape_of
|
||||
// matrix. Unless we change the overall design, here is a workaround.
|
||||
// There is an example in unsuported/Eigen/src/AutoDiff/AutoDiffScalar.
|
||||
|
||||
template<typename XprType, int Shape = ei_shape_of<XprType>::ret>
|
||||
struct MakeNestByValue
|
||||
{
|
||||
typedef NestByValue<XprType> Type;
|
||||
};
|
||||
|
||||
template<typename Func, typename XprType, int Shape = ei_shape_of<XprType>::ret>
|
||||
struct MakeCwiseUnaryOp
|
||||
{
|
||||
|
||||
@@ -214,20 +214,6 @@ struct ei_blas_traits<CwiseUnaryOp<ei_scalar_opposite_op<Scalar>, NestedXpr> >
|
||||
{ return - Base::extractScalarFactor(x._expression()); }
|
||||
};
|
||||
|
||||
// pop NestByValue
|
||||
template<typename NestedXpr>
|
||||
struct ei_blas_traits<NestByValue<NestedXpr> >
|
||||
: ei_blas_traits<NestedXpr>
|
||||
{
|
||||
typedef typename NestedXpr::Scalar Scalar;
|
||||
typedef ei_blas_traits<NestedXpr> Base;
|
||||
typedef NestByValue<NestedXpr> XprType;
|
||||
typedef typename Base::ExtractType ExtractType;
|
||||
static inline ExtractType extract(const XprType& x) { return Base::extract(static_cast<const NestedXpr&>(x)); }
|
||||
static inline Scalar extractScalarFactor(const XprType& x)
|
||||
{ return Base::extractScalarFactor(static_cast<const NestedXpr&>(x)); }
|
||||
};
|
||||
|
||||
// pop/push transpose
|
||||
template<typename NestedXpr>
|
||||
struct ei_blas_traits<Transpose<NestedXpr> >
|
||||
|
||||
Reference in New Issue
Block a user