mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Remove dead code.
This commit is contained in:
parent
2c00ac0b53
commit
53feb73b45
@ -40,9 +40,7 @@ static inline void check_DenseIndex_is_signed() {
|
|||||||
*/
|
*/
|
||||||
template<typename Derived> class DenseBase
|
template<typename Derived> class DenseBase
|
||||||
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
||||||
: public internal::special_scalar_op_base<Derived, typename internal::traits<Derived>::Scalar,
|
: public DenseCoeffsBase<Derived>
|
||||||
typename NumTraits<typename internal::traits<Derived>::Scalar>::Real,
|
|
||||||
DenseCoeffsBase<Derived> >
|
|
||||||
#else
|
#else
|
||||||
: public DenseCoeffsBase<Derived,DirectWriteAccessors>
|
: public DenseCoeffsBase<Derived,DirectWriteAccessors>
|
||||||
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
||||||
@ -73,7 +71,7 @@ template<typename Derived> class DenseBase
|
|||||||
typedef Scalar value_type;
|
typedef Scalar value_type;
|
||||||
|
|
||||||
typedef typename NumTraits<Scalar>::Real RealScalar;
|
typedef typename NumTraits<Scalar>::Real RealScalar;
|
||||||
typedef internal::special_scalar_op_base<Derived,Scalar,RealScalar, DenseCoeffsBase<Derived> > Base;
|
typedef DenseCoeffsBase<Derived> Base;
|
||||||
|
|
||||||
using Base::derived;
|
using Base::derived;
|
||||||
using Base::const_cast_derived;
|
using Base::const_cast_derived;
|
||||||
|
@ -450,24 +450,6 @@ struct generic_xpr_base<Derived, XprKind, Dense>
|
|||||||
typedef typename dense_xpr_base<Derived,XprKind>::type type;
|
typedef typename dense_xpr_base<Derived,XprKind>::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** \internal Helper base class to add a scalar multiple operator
|
|
||||||
* overloads for complex types */
|
|
||||||
template<typename Derived, typename Scalar, typename OtherScalar, typename BaseType,
|
|
||||||
bool EnableIt = !is_same<Scalar,OtherScalar>::value >
|
|
||||||
struct special_scalar_op_base : public BaseType
|
|
||||||
{
|
|
||||||
// dummy operator* so that the
|
|
||||||
// "using special_scalar_op_base::operator*" compiles
|
|
||||||
struct dummy {};
|
|
||||||
void operator*(dummy) const;
|
|
||||||
void operator/(dummy) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename Derived,typename Scalar,typename OtherScalar, typename BaseType>
|
|
||||||
struct special_scalar_op_base<Derived,Scalar,OtherScalar,BaseType,true> : public BaseType
|
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename XprType, typename CastType> struct cast_return_type
|
template<typename XprType, typename CastType> struct cast_return_type
|
||||||
{
|
{
|
||||||
typedef typename XprType::Scalar CurrentScalarType;
|
typedef typename XprType::Scalar CurrentScalarType;
|
||||||
|
@ -24,13 +24,7 @@ namespace Eigen {
|
|||||||
* \ref TopicCustomizingEigen by defining the preprocessor symbol \c EIGEN_SPARSEMATRIXBASE_PLUGIN.
|
* \ref TopicCustomizingEigen by defining the preprocessor symbol \c EIGEN_SPARSEMATRIXBASE_PLUGIN.
|
||||||
*/
|
*/
|
||||||
template<typename Derived> class SparseMatrixBase
|
template<typename Derived> class SparseMatrixBase
|
||||||
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
|
||||||
: public internal::special_scalar_op_base<Derived,typename internal::traits<Derived>::Scalar,
|
|
||||||
typename NumTraits<typename internal::traits<Derived>::Scalar>::Real,
|
|
||||||
EigenBase<Derived> >
|
|
||||||
#else
|
|
||||||
: public EigenBase<Derived>
|
: public EigenBase<Derived>
|
||||||
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -142,7 +136,7 @@ template<typename Derived> class SparseMatrixBase
|
|||||||
inline Derived& const_cast_derived() const
|
inline Derived& const_cast_derived() const
|
||||||
{ return *static_cast<Derived*>(const_cast<SparseMatrixBase*>(this)); }
|
{ return *static_cast<Derived*>(const_cast<SparseMatrixBase*>(this)); }
|
||||||
|
|
||||||
typedef internal::special_scalar_op_base<Derived, Scalar, RealScalar, EigenBase<Derived> > Base;
|
typedef EigenBase<Derived> Base;
|
||||||
|
|
||||||
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user