mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Don't make assumptions about NaN-propagation for pmin/pmax - it various across platforms.
Change test to only test for NaN-propagation for pfmin/pfmax.
This commit is contained in:
@@ -328,12 +328,21 @@ enum StorageOptions {
|
||||
* Enum for specifying whether to apply or solve on the left or right. */
|
||||
enum SideType {
|
||||
/** Apply transformation on the left. */
|
||||
OnTheLeft = 1,
|
||||
OnTheLeft = 1,
|
||||
/** Apply transformation on the right. */
|
||||
OnTheRight = 2
|
||||
OnTheRight = 2
|
||||
};
|
||||
|
||||
|
||||
/** \ingroup enums
|
||||
* Enum for specifying NaN-propagation behavior, e.g. for coeff-wise min/max. */
|
||||
enum NaNPropagationOptions {
|
||||
/** Implementation defined behavior if NaNs are present. */
|
||||
PropagateFast = 0,
|
||||
/** Always propagate NaNs. */
|
||||
PropagateNaN,
|
||||
/** Always propagate not-NaNs. */
|
||||
PropagateNumbers
|
||||
};
|
||||
|
||||
/* the following used to be written as:
|
||||
*
|
||||
|
||||
@@ -180,8 +180,8 @@ template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRh
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_sum_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_difference_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_conj_product_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_min_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_max_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar, int NaNPropagation=PropagateFast> struct scalar_min_op;
|
||||
template<typename LhsScalar,typename RhsScalar=LhsScalar, int NaNPropagation=PropagateFast> struct scalar_max_op;
|
||||
template<typename Scalar> struct scalar_opposite_op;
|
||||
template<typename Scalar> struct scalar_conjugate_op;
|
||||
template<typename Scalar> struct scalar_real_op;
|
||||
|
||||
Reference in New Issue
Block a user