mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-04 01:34:07 +08:00
Update cost of arg call to depend on if the scalar is complex or not
This commit is contained in:
parent
447a5a6b01
commit
e21e29a088
@ -139,7 +139,7 @@ template<typename Scalar>
|
|||||||
struct functor_traits<scalar_arg_op<Scalar> >
|
struct functor_traits<scalar_arg_op<Scalar> >
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
Cost = 5 * NumTraits<Scalar>::MulCost + NumTraits<Scalar>::AddCost,
|
Cost = NumTraits<Scalar>::IsComplex ? 5 * NumTraits<Scalar>::MulCost : NumTraits<Scalar>::AddCost,
|
||||||
PacketAccess = packet_traits<Scalar>::HasArg
|
PacketAccess = packet_traits<Scalar>::HasArg
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user