From afc64f3332941653a52faa7d441c6af1adbaccc7 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 13 Mar 2008 09:33:26 +0000 Subject: a lot of renaming internal classes: AaBb -> ei_aa_bb IntAtRunTimeIfDynamic -> ei_int_if_dynamic unify UNROLLING_LIMIT (there was no reason to have operator= use a higher limit) etc... --- Eigen/src/Core/CwiseUnaryOp.h | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'Eigen/src/Core/CwiseUnaryOp.h') diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index a2ad55aef..5fe2293e2 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -54,12 +54,12 @@ struct ei_traits > }; template -class CwiseUnaryOp : NoOperatorEquals, +class CwiseUnaryOp : ei_no_assignment_operator, public MatrixBase > { public: - EIGEN_BASIC_PUBLIC_INTERFACE(CwiseUnaryOp) + EIGEN_GENERIC_PUBLIC_INTERFACE(CwiseUnaryOp) typedef typename MatrixType::AsArg MatRef; @@ -86,7 +86,7 @@ class CwiseUnaryOp : NoOperatorEquals, * * \sa class CwiseUnaryOp, MatrixBase::operator- */ -struct ScalarOppositeOp EIGEN_EMPTY_STRUCT { +struct ei_scalar_opposite_op EIGEN_EMPTY_STRUCT { template Scalar operator() (const Scalar& a) const { return -a; } }; @@ -95,7 +95,7 @@ struct ScalarOppositeOp EIGEN_EMPTY_STRUCT { * * \sa class CwiseUnaryOp, MatrixBase::cwiseAbs */ -struct ScalarAbsOp EIGEN_EMPTY_STRUCT { +struct ei_scalar_abs_op EIGEN_EMPTY_STRUCT { template Scalar operator() (const Scalar& a) const { return ei_abs(a); } }; @@ -103,19 +103,19 @@ struct ScalarAbsOp EIGEN_EMPTY_STRUCT { /** \returns an expression of the opposite of \c *this */ template -const CwiseUnaryOp +const CwiseUnaryOp MatrixBase::operator-() const { - return CwiseUnaryOp(asArg()); + return CwiseUnaryOp(asArg()); } /** \returns an expression of the opposite of \c *this */ template -const CwiseUnaryOp +const CwiseUnaryOp MatrixBase::cwiseAbs() const { - return CwiseUnaryOp(asArg()); + return CwiseUnaryOp(asArg()); } @@ -143,7 +143,7 @@ MatrixBase::cwise(const CustomUnaryOp& func) const * * \sa class CwiseUnaryOp, MatrixBase::conjugate() */ -struct ScalarConjugateOp EIGEN_EMPTY_STRUCT { +struct ei_scalar_conjugate_op EIGEN_EMPTY_STRUCT { template Scalar operator() (const Scalar& a) const { return ei_conj(a); } }; @@ -151,10 +151,10 @@ struct ScalarConjugateOp EIGEN_EMPTY_STRUCT { * * \sa adjoint() */ template -const CwiseUnaryOp +const CwiseUnaryOp MatrixBase::conjugate() const { - return CwiseUnaryOp(asArg()); + return CwiseUnaryOp(asArg()); } /** \internal @@ -163,7 +163,7 @@ MatrixBase::conjugate() const * \sa class CwiseUnaryOp, MatrixBase::cast() */ template -struct ScalarCastOp EIGEN_EMPTY_STRUCT { +struct ei_scalar_cast_op EIGEN_EMPTY_STRUCT { typedef NewType result_type; template NewType operator() (const Scalar& a) const { return static_cast(a); } }; @@ -176,14 +176,14 @@ struct ScalarCastOp EIGEN_EMPTY_STRUCT { * Example: \include MatrixBase_cast.cpp * Output: \verbinclude MatrixBase_cast.out * - * \sa class CwiseUnaryOp, class ScalarCastOp + * \sa class CwiseUnaryOp, class ei_scalar_cast_op */ template template -const CwiseUnaryOp, Derived> +const CwiseUnaryOp, Derived> MatrixBase::cast() const { - return CwiseUnaryOp, Derived>(asArg()); + return CwiseUnaryOp, Derived>(asArg()); } /** \internal @@ -192,31 +192,31 @@ MatrixBase::cast() const * \sa class CwiseUnaryOp, MatrixBase::operator*, MatrixBase::operator/ */ template -struct ScalarMultipleOp { - ScalarMultipleOp(const Scalar& other) : m_other(other) {} +struct ei_scalar_multiple_op { + ei_scalar_multiple_op(const Scalar& other) : m_other(other) {} Scalar operator() (const Scalar& a) const { return a * m_other; } const Scalar m_other; }; -/** \relates MatrixBase \sa class ScalarMultipleOp */ +/** \relates MatrixBase \sa class ei_scalar_multiple_op */ template -const CwiseUnaryOp::Scalar>, Derived> +const CwiseUnaryOp::Scalar>, Derived> MatrixBase::operator*(const Scalar& scalar) const { - return CwiseUnaryOp, Derived>(asArg(), ScalarMultipleOp(scalar)); + return CwiseUnaryOp, Derived>(asArg(), ei_scalar_multiple_op(scalar)); } -/** \relates MatrixBase \sa class ScalarMultipleOp */ +/** \relates MatrixBase \sa class ei_scalar_multiple_op */ template -const CwiseUnaryOp::Scalar>, Derived> +const CwiseUnaryOp::Scalar>, Derived> MatrixBase::operator/(const Scalar& scalar) const { assert(NumTraits::HasFloatingPoint); - return CwiseUnaryOp, Derived> - (asArg(), ScalarMultipleOp(static_cast(1) / scalar)); + return CwiseUnaryOp, Derived> + (asArg(), ei_scalar_multiple_op(static_cast(1) / scalar)); } -/** \sa ScalarMultipleOp */ +/** \sa ei_scalar_multiple_op */ template Derived& MatrixBase::operator*=(const Scalar& other) @@ -224,7 +224,7 @@ MatrixBase::operator*=(const Scalar& other) return *this = *this * other; } -/** \sa ScalarMultipleOp */ +/** \sa ei_scalar_multiple_op */ template Derived& MatrixBase::operator/=(const Scalar& other) -- cgit v1.2.3