mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add exp2() as a packet op and array method.
This commit is contained in:
@@ -181,6 +181,7 @@ void unary_ops_test() {
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(sqrt));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(cbrt));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(exp));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(exp2));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(log));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(sin));
|
||||
unary_op_test<Scalar>(UNARY_FUNCTOR_TEST_ARGS(cos));
|
||||
|
||||
@@ -931,6 +931,7 @@ void packetmath_real() {
|
||||
data1[0] = -NumTraits<Scalar>::infinity();
|
||||
}
|
||||
CHECK_CWISE1_IF(PacketTraits::HasExp, std::exp, internal::pexp);
|
||||
CHECK_CWISE1_IF(PacketTraits::HasExp, std::exp2, internal::pexp2);
|
||||
|
||||
CHECK_CWISE1_BYREF1_IF(PacketTraits::HasExp, REF_FREXP, internal::pfrexp);
|
||||
if (PacketTraits::HasExp) {
|
||||
|
||||
Reference in New Issue
Block a user