Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, Derived>
00011 abs() const
00012 {
00013 return derived();
00014 }
00015
00016
00017
00018
00019
00020
00021
00022
00023 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, Derived>
00024 abs2() const
00025 {
00026 return derived();
00027 }
00028
00029
00030
00031
00032
00033
00034
00035
00036 inline const CwiseUnaryOp<internal::scalar_exp_op<Scalar>, Derived>
00037 exp() const
00038 {
00039 return derived();
00040 }
00041
00042
00043
00044
00045
00046
00047
00048
00049 inline const CwiseUnaryOp<internal::scalar_log_op<Scalar>, Derived>
00050 log() const
00051 {
00052 return derived();
00053 }
00054
00055
00056
00057
00058
00059
00060
00061
00062 inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, Derived>
00063 sqrt() const
00064 {
00065 return derived();
00066 }
00067
00068
00069
00070
00071
00072
00073
00074
00075 inline const CwiseUnaryOp<internal::scalar_cos_op<Scalar>, Derived>
00076 cos() const
00077 {
00078 return derived();
00079 }
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 inline const CwiseUnaryOp<internal::scalar_sin_op<Scalar>, Derived>
00090 sin() const
00091 {
00092 return derived();
00093 }
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103 inline const CwiseUnaryOp<internal::scalar_pow_op<Scalar>, Derived>
00104 pow(const Scalar& exponent) const
00105 {
00106 return CwiseUnaryOp<internal::scalar_pow_op<Scalar>,Derived>
00107 (derived(), internal::scalar_pow_op<Scalar>(exponent));
00108 }
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, Derived>
00119 inverse() const
00120 {
00121 return derived();
00122 }
00123
00124
00125
00126
00127
00128
00129
00130
00131 inline const CwiseUnaryOp<internal::scalar_square_op<Scalar>, Derived>
00132 square() const
00133 {
00134 return derived();
00135 }
00136
00137
00138
00139
00140
00141
00142
00143
00144 inline const CwiseUnaryOp<internal::scalar_cube_op<Scalar>, Derived>
00145 cube() const
00146 {
00147 return derived();
00148 }
00149
00150 #define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME,FUNCTOR) \
00151 inline const CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >,Derived> \
00152 METHOD_NAME(const Scalar& s) const { \
00153 return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >,Derived> \
00154 (derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
00155 }
00156
00157 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator==, std::equal_to)
00158 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator!=, std::not_equal_to)
00159 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<, std::less)
00160 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<=, std::less_equal)
00161 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>, std::greater)
00162 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>=, std::greater_equal)
00163