Defines | Functions
ArrayCwiseUnaryOps.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME, FUNCTOR)
#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME, FUNCTOR)

Functions

EIGEN_STRONG_INLINE const
CwiseUnaryOp
< internal::scalar_abs_op
< Scalar >, const Derived > 
abs () const
EIGEN_STRONG_INLINE const
CwiseUnaryOp
< internal::scalar_abs2_op
< Scalar >, const Derived > 
abs2 () const
const CwiseUnaryOp
< internal::scalar_acos_op
< Scalar >, const Derived > 
acos () const
const CwiseUnaryOp
< internal::scalar_asin_op
< Scalar >, const Derived > 
asin () const
const CwiseUnaryOp
< internal::scalar_cos_op
< Scalar >, const Derived > 
cos () const
const CwiseUnaryOp
< internal::scalar_cube_op
< Scalar >, const Derived > 
cube () const
const CwiseUnaryOp
< internal::scalar_exp_op
< Scalar >, const Derived > 
exp () const
const CwiseUnaryOp
< internal::scalar_inverse_op
< Scalar >, const Derived > 
inverse () const
const CwiseUnaryOp
< internal::scalar_log_op
< Scalar >, const Derived > 
log () const
const CwiseUnaryOp
< internal::scalar_pow_op
< Scalar >, const Derived > 
pow (const Scalar &exponent) const
const CwiseUnaryOp
< internal::scalar_sin_op
< Scalar >, const Derived > 
sin () const
const CwiseUnaryOp
< internal::scalar_sqrt_op
< Scalar >, const Derived > 
sqrt () const
const CwiseUnaryOp
< internal::scalar_square_op
< Scalar >, const Derived > 
square () const
const CwiseUnaryOp
< internal::scalar_tan_op
< Scalar >, Derived > 
tan () const

Define Documentation

#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP (   METHOD_NAME,
  FUNCTOR 
)
Value:
inline const CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
  METHOD_NAME(const Scalar& s) const { \
    return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
            (derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
  }
#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP (   METHOD_NAME,
  FUNCTOR 
)
Value:
inline const CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
  METHOD_NAME(const Scalar& s) const { \
    return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
            (derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
  }

Definition at line 189 of file ArrayCwiseUnaryOps.h.


Function Documentation

Returns:
an expression of the coefficient-wise absolute value of *this

Example:

Array3d v(1,-2,-3);
cout << v.abs() << endl;

Output:

See also:
abs2()

Definition at line 11 of file ArrayCwiseUnaryOps.h.

Returns:
an expression of the coefficient-wise squared absolute value of *this

Example:

Array3d v(1,-2,-3);
cout << v.abs2() << endl;

Output:

See also:
abs(), square()

Definition at line 24 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> acos ( ) const [inline]
Returns:
an expression of the coefficient-wise arc cosine of *this.

Example:

Array3d v(0, sqrt(2.)/2, 1);
cout << v.acos() << endl;

Output:

See also:
cos(), asin()

Definition at line 103 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> asin ( ) const [inline]
Returns:
an expression of the coefficient-wise arc sine of *this.

Example:

Output:

See also:
sin(), acos()

Definition at line 116 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> cos ( ) const [inline]
Returns:
an expression of the coefficient-wise cosine of *this.

Example:

Array3d v(M_PI, M_PI/2, M_PI/3);
cout << v.cos() << endl;

Output:

See also:
sin(), acos()

Definition at line 76 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> cube ( ) const [inline]
Returns:
an expression of the coefficient-wise cube of *this.

Example:

Array3d v(2,3,4);
cout << v.cube() << endl;

Output:

See also:
square(), pow()

Definition at line 184 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> exp ( ) const [inline]
Returns:
an expression of the coefficient-wise exponential of *this.

Example:

Array3d v(1,2,3);
cout << v.exp() << endl;

Output:

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

Definition at line 37 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> inverse ( ) const [inline]
Returns:
an expression of the coefficient-wise inverse of *this.

Example:

Array3d v(2,3,4);
cout << v.inverse() << endl;

Output:

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

Definition at line 158 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> log ( ) const [inline]
Returns:
an expression of the coefficient-wise logarithm of *this.

Example:

Array3d v(1,2,3);
cout << v.log() << endl;

Output:

See also:
exp()

Definition at line 50 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived> pow ( const Scalar exponent) const [inline]
Returns:
an expression of the coefficient-wise power of *this to the given exponent.

Example:

Array3d v(8,27,64);
cout << v.pow(0.333333) << endl;

Output:

See also:
exp(), log()

Definition at line 143 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> sin ( ) const [inline]
Returns:
an expression of the coefficient-wise sine of *this.

Example:

Array3d v(M_PI, M_PI/2, M_PI/3);
cout << v.sin() << endl;

Output:

See also:
cos(), asin()

Definition at line 90 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> sqrt ( ) const [inline]
Returns:
an expression of the coefficient-wise square root of *this.

Example:

Array3d v(1,2,4);
cout << v.sqrt() << endl;

Output:

See also:
pow(), square()

Definition at line 63 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> square ( ) const [inline]
Returns:
an expression of the coefficient-wise square of *this.

Example:

Array3d v(2,3,4);
cout << v.square() << endl;

Output:

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

Definition at line 171 of file ArrayCwiseUnaryOps.h.

const CwiseUnaryOp<internal::scalar_tan_op<Scalar>, Derived> tan ( ) const [inline]
Returns:
an expression of the coefficient-wise tan of *this.

Example:

Array3d v(M_PI, M_PI/2, M_PI/3);
cout << v.tan() << endl;

Output:

See also:
cos(), sin()

Definition at line 129 of file ArrayCwiseUnaryOps.h.



libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:05