ArrayCwiseUnaryOps.h
Go to the documentation of this file.
1 
2 
10 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived>
11 abs() const
12 {
13  return derived();
14 }
15 
23 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived>
24 abs2() const
25 {
26  return derived();
27 }
28 
36 inline const CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived>
37 exp() const
38 {
39  return derived();
40 }
41 
49 inline const CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived>
50 log() const
51 {
52  return derived();
53 }
54 
62 inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived>
63 sqrt() const
64 {
65  return derived();
66 }
67 
75 inline const CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived>
76 cos() const
77 {
78  return derived();
79 }
80 
81 
89 inline const CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived>
90 sin() const
91 {
92  return derived();
93 }
94 
102 inline const CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived>
103 acos() const
104 {
105  return derived();
106 }
107 
115 inline const CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived>
116 asin() const
117 {
118  return derived();
119 }
120 
128 inline const CwiseUnaryOp<internal::scalar_tan_op<Scalar>, Derived>
129 tan() const
130 {
131  return derived();
132 }
133 
134 
142 inline const CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived>
143 pow(const Scalar& exponent) const
144 {
145  return CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived>
146  (derived(), internal::scalar_pow_op<Scalar>(exponent));
147 }
148 
149 
157 inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived>
158 inverse() const
159 {
160  return derived();
161 }
162 
170 inline const CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived>
171 square() const
172 {
173  return derived();
174 }
175 
183 inline const CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived>
184 cube() const
185 {
186  return derived();
187 }
188 
189 #define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME,FUNCTOR) \
190  inline const CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
191  METHOD_NAME(const Scalar& s) const { \
192  return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
193  (derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
194  }
195 
196 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator==, std::equal_to)
197 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator!=, std::not_equal_to)
198 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<, std::less)
199 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<=, std::less_equal)
200 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>, std::greater)
201 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>=, std::greater_equal)
202 
203 
#define EIGEN_STRONG_INLINE
const CwiseUnaryOp< internal::scalar_pow_op< Scalar >, const Derived > pow(const Scalar &exponent) const
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > abs2() const
const CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > square() const
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > abs() const
const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > inverse() const
const CwiseUnaryOp< internal::scalar_tan_op< Scalar >, Derived > tan() const
const CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > cube() const
#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME, FUNCTOR)
const CwiseUnaryOp< internal::scalar_log_op< Scalar >, const Derived > log() const
const CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > sin() const
const CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > cos() const
const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > sqrt() const
const CwiseUnaryOp< internal::scalar_exp_op< Scalar >, const Derived > exp() const
const CwiseUnaryOp< internal::scalar_asin_op< Scalar >, const Derived > asin() const
const CwiseUnaryOp< internal::scalar_acos_op< Scalar >, const Derived > acos() const


tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Jun 10 2019 15:40:45