Main MRPT website > C++ reference
MRPT logo
Functions

MatrixCwiseUnaryOps.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EIGEN_STRONG_INLINE const
CwiseUnaryOp
< internal::scalar_abs_op
< Scalar >, Derived > 
cwiseAbs () const
EIGEN_STRONG_INLINE const
CwiseUnaryOp
< internal::scalar_abs2_op
< Scalar >, Derived > 
cwiseAbs2 () const
const CwiseUnaryOp
< internal::scalar_sqrt_op
< Scalar >, Derived > 
cwiseSqrt () const
const CwiseUnaryOp
< internal::scalar_inverse_op
< Scalar >, Derived > 
cwiseInverse () const
const CwiseUnaryOp
< std::binder1st
< std::equal_to< Scalar >
>, Derived > 
cwiseEqual (const Scalar &s) const

Function Documentation

EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>,Derived> cwiseAbs (  )  const
Returns:
an expression of the coefficient-wise absolute value of *this

Example:

Output:

See also:
cwiseAbs2()

Definition at line 36 of file MatrixCwiseUnaryOps.h.

EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>,Derived> cwiseAbs2 (  )  const
Returns:
an expression of the coefficient-wise squared absolute value of *this

Example:

Output:

See also:
cwiseAbs()

Definition at line 46 of file MatrixCwiseUnaryOps.h.

const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,Derived> cwiseEqual ( const Scalar &  s  )  const [inline]
Returns:
an expression of the coefficient-wise == operator of *this and a scalar s
Warning:
this performs an exact comparison, which is generally a bad idea with floating-point types. In order to check for equality between two vectors or matrices with floating-point coefficients, it is generally a far better idea to use a fuzzy comparison as provided by isApprox() and isMuchSmallerThan().
See also:
cwiseEqual(const MatrixBase<OtherDerived> &) const

Definition at line 78 of file MatrixCwiseUnaryOps.h.

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

Example:

Output:

See also:
cwiseProduct()

Definition at line 66 of file MatrixCwiseUnaryOps.h.

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

Example:

Output:

See also:
cwisePow(), cwiseSquare()

Definition at line 56 of file MatrixCwiseUnaryOps.h.




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011