diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-05-31 18:11:48 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-05-31 18:11:48 +0000 |
commit | 310f7aa09622e8e549b4e14cc3659e22bb02d915 (patch) | |
tree | 1d1c22bf1801a731b8d4bf7cb84443376660ea08 /Eigen/src/Core/CwiseUnaryOp.h | |
parent | a2f71f9d7e1e443814fe60726d99a4b0508baefa (diff) |
moved purely "array" related stuff to a new module Array.
This include:
- cwise Pow,Sin,Cos,Exp...
- cwise Greater and other comparison operators
- .any(), .all() and partial reduction
- random
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseUnaryOp.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index e2ae35b3d..893c8abf6 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -196,53 +196,4 @@ MatrixBase<Derived>::operator/=(const Scalar& other) return *this = *this / other; } -/** \returns an expression of the coefficient-wise square root of *this. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_sqrt_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwiseSqrt() const -{ - return derived(); -} - -/** \returns an expression of the coefficient-wise exponential of *this. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_exp_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwiseExp() const -{ - return derived(); -} - -/** \returns an expression of the coefficient-wise logarithm of *this. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_log_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwiseLog() const -{ - return derived(); -} - -/** \returns an expression of the coefficient-wise cosine of *this. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_cos_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwiseCos() const -{ - return derived(); -} - -/** \returns an expression of the coefficient-wise sine of *this. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_sin_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwiseSin() const -{ - return derived(); -} - -/** \returns an expression of the coefficient-wise power of *this to the given exponent. */ -template<typename Derived> -inline const CwiseUnaryOp<ei_scalar_pow_op<typename ei_traits<Derived>::Scalar>, Derived> -MatrixBase<Derived>::cwisePow(const Scalar& exponent) const -{ - return CwiseUnaryOp<ei_scalar_pow_op<Scalar>, Derived> - (derived(), ei_scalar_pow_op<Scalar>(exponent)); -} - #endif // EIGEN_CWISE_UNARY_OP_H |