mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-01 18:26:24 +08:00
Eigen2sSupport: import some fixes from the 3.0 branch (MSVC fix)
This commit is contained in:
parent
950eeab4d7
commit
9ae606866c
Eigen/src/Eigen2Support
@ -82,13 +82,17 @@ template<typename ExpressionType> class Cwise
|
|||||||
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_quotient_op)
|
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_quotient_op)
|
||||||
operator/(const MatrixBase<OtherDerived> &other) const;
|
operator/(const MatrixBase<OtherDerived> &other) const;
|
||||||
|
|
||||||
|
/** \deprecated ArrayBase::min() */
|
||||||
template<typename OtherDerived>
|
template<typename OtherDerived>
|
||||||
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_min_op)
|
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_min_op)
|
||||||
(min)(const MatrixBase<OtherDerived> &other) const;
|
(min)(const MatrixBase<OtherDerived> &other) const
|
||||||
|
{ return EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_min_op)(_expression(), other.derived()); }
|
||||||
|
|
||||||
|
/** \deprecated ArrayBase::max() */
|
||||||
template<typename OtherDerived>
|
template<typename OtherDerived>
|
||||||
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_max_op)
|
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_max_op)
|
||||||
(max)(const MatrixBase<OtherDerived> &other) const;
|
(max)(const MatrixBase<OtherDerived> &other) const
|
||||||
|
{ return EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_max_op)(_expression(), other.derived()); }
|
||||||
|
|
||||||
const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs_op) abs() const;
|
const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs_op) abs() const;
|
||||||
const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs2_op) abs2() const;
|
const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs2_op) abs2() const;
|
||||||
|
@ -96,24 +96,6 @@ inline ExpressionType& Cwise<ExpressionType>::operator/=(const MatrixBase<OtherD
|
|||||||
return m_matrix.const_cast_derived() = *this / other;
|
return m_matrix.const_cast_derived() = *this / other;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \deprecated ArrayBase::min() */
|
|
||||||
template<typename ExpressionType>
|
|
||||||
template<typename OtherDerived>
|
|
||||||
EIGEN_STRONG_INLINE const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_min_op)
|
|
||||||
(Cwise<ExpressionType>::min)(const MatrixBase<OtherDerived> &other) const
|
|
||||||
{
|
|
||||||
return EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_min_op)(_expression(), other.derived());
|
|
||||||
}
|
|
||||||
|
|
||||||
/** \deprecated ArrayBase::max() */
|
|
||||||
template<typename ExpressionType>
|
|
||||||
template<typename OtherDerived>
|
|
||||||
EIGEN_STRONG_INLINE const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_max_op)
|
|
||||||
(Cwise<ExpressionType>::max)(const MatrixBase<OtherDerived> &other) const
|
|
||||||
{
|
|
||||||
return EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_max_op)(_expression(), other.derived());
|
|
||||||
}
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* The following functions were defined in Array
|
* The following functions were defined in Array
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user