MOAB  4.9.3pre
ArrayCwiseUnaryOps.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef CwiseUnaryOp
< internal::scalar_abs_op
< Scalar >, const Derived > 
AbsReturnType
typedef CwiseUnaryOp
< internal::scalar_arg_op
< Scalar >, const Derived > 
ArgReturnType
typedef CwiseUnaryOp
< internal::scalar_abs2_op
< Scalar >, const Derived > 
Abs2ReturnType
typedef CwiseUnaryOp
< internal::scalar_sqrt_op
< Scalar >, const Derived > 
SqrtReturnType
typedef CwiseUnaryOp
< internal::scalar_rsqrt_op
< Scalar >, const Derived > 
RsqrtReturnType
typedef CwiseUnaryOp
< internal::scalar_sign_op
< Scalar >, const Derived > 
SignReturnType
typedef CwiseUnaryOp
< internal::scalar_inverse_op
< Scalar >, const Derived > 
InverseReturnType
typedef CwiseUnaryOp
< internal::scalar_boolean_not_op
< Scalar >, const Derived > 
BooleanNotReturnType
typedef CwiseUnaryOp
< internal::scalar_exp_op
< Scalar >, const Derived > 
ExpReturnType
typedef CwiseUnaryOp
< internal::scalar_log_op
< Scalar >, const Derived > 
LogReturnType
typedef CwiseUnaryOp
< internal::scalar_log10_op
< Scalar >, const Derived > 
Log10ReturnType
typedef CwiseUnaryOp
< internal::scalar_cos_op
< Scalar >, const Derived > 
CosReturnType
typedef CwiseUnaryOp
< internal::scalar_sin_op
< Scalar >, const Derived > 
SinReturnType
typedef CwiseUnaryOp
< internal::scalar_tan_op
< Scalar >, const Derived > 
TanReturnType
typedef CwiseUnaryOp
< internal::scalar_acos_op
< Scalar >, const Derived > 
AcosReturnType
typedef CwiseUnaryOp
< internal::scalar_asin_op
< Scalar >, const Derived > 
AsinReturnType
typedef CwiseUnaryOp
< internal::scalar_atan_op
< Scalar >, const Derived > 
AtanReturnType
typedef CwiseUnaryOp
< internal::scalar_tanh_op
< Scalar >, const Derived > 
TanhReturnType
typedef CwiseUnaryOp
< internal::scalar_sinh_op
< Scalar >, const Derived > 
SinhReturnType
typedef CwiseUnaryOp
< internal::scalar_cosh_op
< Scalar >, const Derived > 
CoshReturnType
typedef CwiseUnaryOp
< internal::scalar_lgamma_op
< Scalar >, const Derived > 
LgammaReturnType
typedef CwiseUnaryOp
< internal::scalar_digamma_op
< Scalar >, const Derived > 
DigammaReturnType
typedef CwiseUnaryOp
< internal::scalar_erf_op
< Scalar >, const Derived > 
ErfReturnType
typedef CwiseUnaryOp
< internal::scalar_erfc_op
< Scalar >, const Derived > 
ErfcReturnType
typedef CwiseUnaryOp
< internal::scalar_pow_op
< Scalar >, const Derived > 
PowReturnType
typedef CwiseUnaryOp
< internal::scalar_square_op
< Scalar >, const Derived > 
SquareReturnType
typedef CwiseUnaryOp
< internal::scalar_cube_op
< Scalar >, const Derived > 
CubeReturnType
typedef CwiseUnaryOp
< internal::scalar_round_op
< Scalar >, const Derived > 
RoundReturnType
typedef CwiseUnaryOp
< internal::scalar_floor_op
< Scalar >, const Derived > 
FloorReturnType
typedef CwiseUnaryOp
< internal::scalar_ceil_op
< Scalar >, const Derived > 
CeilReturnType
typedef CwiseUnaryOp
< internal::scalar_isnan_op
< Scalar >, const Derived > 
IsNaNReturnType
typedef CwiseUnaryOp
< internal::scalar_isinf_op
< Scalar >, const Derived > 
IsInfReturnType
typedef CwiseUnaryOp
< internal::scalar_isfinite_op
< Scalar >, const Derived > 
IsFiniteReturnType

Functions

EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const
AbsReturnType 
abs () const
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const
ArgReturnType 
arg () const
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const
Abs2ReturnType 
abs2 () const
EIGEN_DEVICE_FUNC const
ExpReturnType 
exp () const
EIGEN_DEVICE_FUNC const
LogReturnType 
log () const
EIGEN_DEVICE_FUNC const
Log10ReturnType 
log10 () const
EIGEN_DEVICE_FUNC const
SqrtReturnType 
sqrt () const
EIGEN_DEVICE_FUNC const
RsqrtReturnType 
rsqrt () const
EIGEN_DEVICE_FUNC const
SignReturnType 
sign () const
EIGEN_DEVICE_FUNC const
CosReturnType 
cos () const
EIGEN_DEVICE_FUNC const
SinReturnType 
sin () const
EIGEN_DEVICE_FUNC const
TanReturnType 
tan () const
const AtanReturnType atan () const
EIGEN_DEVICE_FUNC const
AcosReturnType 
acos () const
EIGEN_DEVICE_FUNC const
AsinReturnType 
asin () const
const TanhReturnType tanh () const
const SinhReturnType sinh () const
const CoshReturnType cosh () const
const LgammaReturnType lgamma () const
const DigammaReturnType digamma () const
const ErfReturnType erf () const
const ErfcReturnType erfc () const
EIGEN_DEVICE_FUNC const
PowReturnType 
pow (const Scalar &exponent) const
EIGEN_DEVICE_FUNC const
InverseReturnType 
inverse () const
EIGEN_DEVICE_FUNC const
SquareReturnType 
square () const
EIGEN_DEVICE_FUNC const
CubeReturnType 
cube () const
const RoundReturnType round () const
const FloorReturnType floor () const
const CeilReturnType ceil () const
const IsNaNReturnType isNaN () const
const IsInfReturnType isInf () const
const IsFiniteReturnType isFinite () const
EIGEN_DEVICE_FUNC const
BooleanNotReturnType 
operator! () const

Typedef Documentation

typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Abs2ReturnType

Definition at line 5 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> AbsReturnType

Definition at line 3 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturnType

Definition at line 18 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> ArgReturnType

Definition at line 4 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType

Definition at line 19 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType

Definition at line 20 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_boolean_not_op<Scalar>, const Derived> BooleanNotReturnType

Definition at line 10 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_ceil_op<Scalar>, const Derived> CeilReturnType

Definition at line 33 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType

Definition at line 23 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> CosReturnType

Definition at line 15 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> CubeReturnType

Definition at line 30 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_digamma_op<Scalar>, const Derived> DigammaReturnType

Definition at line 25 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_erfc_op<Scalar>, const Derived> ErfcReturnType

Definition at line 27 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_erf_op<Scalar>, const Derived> ErfReturnType

Definition at line 26 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> ExpReturnType

Definition at line 12 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_floor_op<Scalar>, const Derived> FloorReturnType

Definition at line 32 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> InverseReturnType

Definition at line 9 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_isfinite_op<Scalar>, const Derived> IsFiniteReturnType

Definition at line 36 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_isinf_op<Scalar>, const Derived> IsInfReturnType

Definition at line 35 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_isnan_op<Scalar>, const Derived> IsNaNReturnType

Definition at line 34 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_lgamma_op<Scalar>, const Derived> LgammaReturnType

Definition at line 24 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_log10_op<Scalar>, const Derived> Log10ReturnType

Definition at line 14 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> LogReturnType

Definition at line 13 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived> PowReturnType

Definition at line 28 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_round_op<Scalar>, const Derived> RoundReturnType

Definition at line 31 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_rsqrt_op<Scalar>, const Derived> RsqrtReturnType

Definition at line 7 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> SignReturnType

Definition at line 8 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType

Definition at line 22 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> SinReturnType

Definition at line 16 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> SqrtReturnType

Definition at line 6 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType

Definition at line 29 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType

Definition at line 21 of file ArrayCwiseUnaryOps.h.

typedef CwiseUnaryOp<internal::scalar_tan_op<Scalar>, const Derived> TanReturnType

Definition at line 17 of file ArrayCwiseUnaryOps.h.


Function Documentation

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const AbsReturnType abs ( ) const
Returns:
an expression of the coefficient-wise absolute value of *this

Example:

Output:

See also:
abs2()

Definition at line 47 of file ArrayCwiseUnaryOps.h.

{
  return AbsReturnType(derived());
}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2 ( ) const
Returns:
an expression of the coefficient-wise squared absolute value of *this

Example:

Output:

See also:
abs(), square()

Definition at line 75 of file ArrayCwiseUnaryOps.h.

{
  return Abs2ReturnType(derived());
}
EIGEN_DEVICE_FUNC const AcosReturnType acos ( ) const [inline]
Returns:
an expression of the coefficient-wise arc cosine of *this.

Example:

Output:

See also:
cos(), asin()

Definition at line 251 of file ArrayCwiseUnaryOps.h.

{
  return AcosReturnType(derived());
}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg ( ) const
Returns:
an expression of the coefficient-wise phase angle of *this

Example:

Output:

See also:
abs()

Definition at line 61 of file ArrayCwiseUnaryOps.h.

{
  return ArgReturnType(derived());
}
EIGEN_DEVICE_FUNC const AsinReturnType asin ( ) const [inline]
Returns:
an expression of the coefficient-wise arc sine of *this.

Example:

Output:

See also:
sin(), acos()

Definition at line 265 of file ArrayCwiseUnaryOps.h.

{
  return AsinReturnType(derived());
}
const AtanReturnType atan ( ) const [inline]
Returns:
an expression of the coefficient-wise arc tan of *this.

Example:

Output:

See also:
tan(), asin(), acos()

Definition at line 237 of file ArrayCwiseUnaryOps.h.

{
  return AtanReturnType(derived());
}
const CeilReturnType ceil ( ) const [inline]
Returns:
an expression of the coefficient-wise ceil of *this.

Example:

Output:

See also:
floor(), round()

Definition at line 454 of file ArrayCwiseUnaryOps.h.

{
  return CeilReturnType(derived());
}
EIGEN_DEVICE_FUNC const CosReturnType cos ( ) const [inline]
Returns:
an expression of the coefficient-wise cosine of *this.

This function computes the coefficient-wise cosine. The function MatrixBase::cos() in the unsupported module MatrixFunctions computes the matrix cosine.

Example:

Output:

See also:
sin(), acos()

Definition at line 192 of file ArrayCwiseUnaryOps.h.

{
  return CosReturnType(derived());
}
const CoshReturnType cosh ( ) const [inline]
Returns:
an expression of the coefficient-wise hyperbolic cos of *this.

Example:

Output:

See also:
tan(), sinh(), cosh()

Definition at line 304 of file ArrayCwiseUnaryOps.h.

{
  return CoshReturnType(derived());
}
EIGEN_DEVICE_FUNC const CubeReturnType cube ( ) const [inline]
Returns:
an expression of the coefficient-wise cube of *this.

Example:

Output:

See also:
square(), pow()

Definition at line 415 of file ArrayCwiseUnaryOps.h.

{
  return CubeReturnType(derived());
}
const DigammaReturnType digamma ( ) const [inline]
Returns:
an expression of the coefficient-wise digamma (psi, derivative of lgamma).
See also:
cos(), sin(), tan()

Definition at line 327 of file ArrayCwiseUnaryOps.h.

{
  return DigammaReturnType(derived());
}
const ErfReturnType erf ( ) const [inline]
Returns:
an expression of the coefficient-wise Gauss error function of *this.

Example:

Output:

See also:
cos(), sin(), tan()

Definition at line 341 of file ArrayCwiseUnaryOps.h.

{
  return ErfReturnType(derived());
}
const ErfcReturnType erfc ( ) const [inline]
Returns:
an expression of the coefficient-wise Complementary error function of *this.

Example:

Output:

See also:
cos(), sin(), tan()

Definition at line 355 of file ArrayCwiseUnaryOps.h.

{
  return ErfcReturnType(derived());
}
EIGEN_DEVICE_FUNC const ExpReturnType exp ( ) const [inline]
Returns:
an expression of the coefficient-wise exponential of *this.

This function computes the coefficient-wise exponential. The function MatrixBase::exp() in the unsupported module MatrixFunctions computes the matrix exponential.

Example:

Output:

See also:
pow(), log(), sin(), cos()

Definition at line 92 of file ArrayCwiseUnaryOps.h.

{
  return ExpReturnType(derived());
}
const FloorReturnType floor ( ) const [inline]
Returns:
an expression of the coefficient-wise floor of *this.

Example:

Output:

See also:
ceil(), round()

Definition at line 441 of file ArrayCwiseUnaryOps.h.

{
  return FloorReturnType(derived());
}
EIGEN_DEVICE_FUNC const InverseReturnType inverse ( ) const [inline]
Returns:
an expression of the coefficient-wise inverse of *this.

Example:

Output:

See also:
operator/(), operator*()

Definition at line 387 of file ArrayCwiseUnaryOps.h.

{
  return InverseReturnType(derived());
}
const IsFiniteReturnType isFinite ( ) const [inline]
Returns:
an expression of the coefficient-wise isfinite of *this.

Example:

Output:

See also:
isnan(), isinf()

Definition at line 493 of file ArrayCwiseUnaryOps.h.

{
  return IsFiniteReturnType(derived());
}
const IsInfReturnType isInf ( ) const [inline]
Returns:
an expression of the coefficient-wise isinf of *this.

Example:

Output:

See also:
isnan(), isfinite()

Definition at line 480 of file ArrayCwiseUnaryOps.h.

{
  return IsInfReturnType(derived());
}
const IsNaNReturnType isNaN ( ) const [inline]
Returns:
an expression of the coefficient-wise isnan of *this.

Example:

Output:

See also:
isfinite(), isinf()

Definition at line 467 of file ArrayCwiseUnaryOps.h.

{
  return IsNaNReturnType(derived());
}
const LgammaReturnType lgamma ( ) const [inline]
Returns:
an expression of the coefficient-wise ln(|gamma(*this)|).

Example:

Output:

See also:
cos(), sin(), tan()

Definition at line 317 of file ArrayCwiseUnaryOps.h.

{
  return LgammaReturnType(derived());
}
EIGEN_DEVICE_FUNC const LogReturnType log ( ) const [inline]
Returns:
an expression of the coefficient-wise logarithm of *this.

This function computes the coefficient-wise logarithm. The function MatrixBase::log() in the unsupported module MatrixFunctions computes the matrix logarithm.

Example:

Output:

See also:
exp()

Definition at line 109 of file ArrayCwiseUnaryOps.h.

{
  return LogReturnType(derived());
}
EIGEN_DEVICE_FUNC const Log10ReturnType log10 ( ) const [inline]
Returns:
an expression of the coefficient-wise base-10 logarithm of *this.

This function computes the coefficient-wise base-10 logarithm.

Example:

Output:

See also:
log()

Definition at line 125 of file ArrayCwiseUnaryOps.h.

{
  return Log10ReturnType(derived());
}
EIGEN_DEVICE_FUNC const BooleanNotReturnType operator! ( ) const [inline]
Returns:
an expression of the coefficient-wise ! operator of *this
Warning:
this operator is for expression of bool only.

Example:

Output:

See also:
operator!=()

Definition at line 509 of file ArrayCwiseUnaryOps.h.

{
  EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value),
                      THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
  return BooleanNotReturnType(derived());
}
EIGEN_DEVICE_FUNC const PowReturnType pow ( const Scalar &  exponent) const [inline]
Returns:
an expression of the coefficient-wise power of *this to the given exponent.

This function computes the coefficient-wise power. The function MatrixBase::pow() in the unsupported module MatrixFunctions computes the matrix power.

Example:

Output:

See also:
exp(), log()

Definition at line 372 of file ArrayCwiseUnaryOps.h.

{
  return PowReturnType(derived(), internal::scalar_pow_op<Scalar>(exponent));
}
const RoundReturnType round ( ) const [inline]
Returns:
an expression of the coefficient-wise round of *this.

Example:

Output:

See also:
ceil(), floor()

Definition at line 428 of file ArrayCwiseUnaryOps.h.

{
  return RoundReturnType(derived());
}
EIGEN_DEVICE_FUNC const RsqrtReturnType rsqrt ( ) const [inline]
Returns:
an expression of the coefficient-wise inverse square root of *this.

This function computes the coefficient-wise inverse square root.

Example:

Output:

See also:
pow(), square()

Definition at line 158 of file ArrayCwiseUnaryOps.h.

{
  return RsqrtReturnType(derived());
}
EIGEN_DEVICE_FUNC const SignReturnType sign ( ) const [inline]
Returns:
an expression of the coefficient-wise signum of *this.

This function computes the coefficient-wise signum.

Example:

Output:

See also:
pow(), square()

Definition at line 174 of file ArrayCwiseUnaryOps.h.

{
  return SignReturnType(derived());
}
EIGEN_DEVICE_FUNC const SinReturnType sin ( ) const [inline]
Returns:
an expression of the coefficient-wise sine of *this.

This function computes the coefficient-wise sine. The function MatrixBase::sin() in the unsupported module MatrixFunctions computes the matrix sine.

Example:

Output:

See also:
cos(), asin()

Definition at line 210 of file ArrayCwiseUnaryOps.h.

{
  return SinReturnType(derived());
}
const SinhReturnType sinh ( ) const [inline]
Returns:
an expression of the coefficient-wise hyperbolic sin of *this.

Example:

Output:

See also:
sin(), tanh(), cosh()

Definition at line 291 of file ArrayCwiseUnaryOps.h.

{
  return SinhReturnType(derived());
}
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt ( ) const [inline]
Returns:
an expression of the coefficient-wise square root of *this.

This function computes the coefficient-wise square root. The function MatrixBase::sqrt() in the unsupported module MatrixFunctions computes the matrix square root.

Example:

Output:

See also:
pow(), square()

Definition at line 142 of file ArrayCwiseUnaryOps.h.

{
  return SqrtReturnType(derived());
}
EIGEN_DEVICE_FUNC const SquareReturnType square ( ) const [inline]
Returns:
an expression of the coefficient-wise square of *this.

Example:

Output:

See also:
operator/(), operator*(), abs2()

Definition at line 401 of file ArrayCwiseUnaryOps.h.

{
  return SquareReturnType(derived());
}
EIGEN_DEVICE_FUNC const TanReturnType tan ( ) const [inline]
Returns:
an expression of the coefficient-wise tan of *this.

Example:

Output:

See also:
cos(), sin()

Definition at line 224 of file ArrayCwiseUnaryOps.h.

{
  return TanReturnType(derived());
}
const TanhReturnType tanh ( ) const [inline]
Returns:
an expression of the coefficient-wise hyperbolic tan of *this.

Example:

Output:

See also:
tan(), sinh(), cosh()

Definition at line 278 of file ArrayCwiseUnaryOps.h.

{
  return TanhReturnType(derived());
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines