00001 #ifndef CWISEADDONS_H
00002 #define CWISEADDONS_H
00003
00004 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_angle_op)
00005 angle() const
00006 {
00007 return _expression();
00008 }
00009
00010 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_ceil_op)
00011 ceil() const
00012 {
00013 return _expression();
00014 }
00015
00016 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_floor_op)
00017 floor() const
00018 {
00019 return _expression();
00020 }
00021
00022 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_isnan_op)
00023 isnan() const
00024 {
00025 return _expression();
00026 }
00027
00028 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_mod_n_op)
00029 modN(const Scalar& divisor) const
00030 {
00031 return EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_mod_n_op)(_expression(), ei_scalar_mod_n_op<Scalar>(divisor));
00032 }
00033
00034
00035 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_exp_n_op)
00036 expN(const Scalar& base) const
00037 {
00038 return EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_exp_n_op)(_expression(), ei_scalar_exp_n_op<Scalar>(base));
00039 }
00040
00041
00042 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_log_n_op)
00043 logN(const Scalar& base) const
00044 {
00045 return EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_log_n_op)(_expression(), ei_scalar_log_n_op<Scalar>(base));
00046 }
00047
00048
00049 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_clip_under_op)
00050 clipUnder(const Scalar& under = 0) const
00051 {
00052 return EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_clip_under_op)(_expression(), ei_scalar_clip_under_op<Scalar>(under));
00053 }
00054
00055 inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_clip_op)
00056 clip(const Scalar& under, const Scalar& over) const
00057 {
00058 return EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_clip_op)(_expression(), ei_scalar_clip_op<Scalar>(under, over));
00059 }
00060
00061 #endif // CWISEADDONS_H