WPILibC++ 2023.4.3
MatrixCwiseUnaryOps.h File Reference

Go to the source code of this file.

Typedefs

typedef CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > CwiseAbsReturnType
 
typedef CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > CwiseAbs2ReturnType
 
typedef CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > CwiseArgReturnType
 
typedef CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > CwiseSqrtReturnType
 
typedef CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > CwiseSignReturnType
 
typedef CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > CwiseInverseReturnType
 

Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbsReturnType cwiseAbs () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbs2ReturnType cwiseAbs2 () const
 
EIGEN_DEVICE_FUNC const CwiseSqrtReturnType cwiseSqrt () const
 
EIGEN_DEVICE_FUNC const CwiseSignReturnType cwiseSign () const
 
EIGEN_DEVICE_FUNC const CwiseInverseReturnType cwiseInverse () const
 
EIGEN_DEVICE_FUNC const CwiseArgReturnType cwiseArg () const
 

Typedef Documentation

◆ CwiseAbs2ReturnType

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

◆ CwiseAbsReturnType

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

◆ CwiseArgReturnType

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

◆ CwiseInverseReturnType

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

◆ CwiseSignReturnType

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

◆ CwiseSqrtReturnType

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

Function Documentation

◆ cwiseAbs()

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

Example:

Output:

cwiseAbs2()

◆ cwiseAbs2()

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

Example:

Output:

cwiseAbs()

◆ cwiseArg()

EIGEN_DEVICE_FUNC const CwiseArgReturnType cwiseArg ( ) const
inline
Returns
an expression of the coefficient-wise phase angle of *this

Example:

Output:

 

◆ cwiseInverse()

EIGEN_DEVICE_FUNC const CwiseInverseReturnType cwiseInverse ( ) const
inline
Returns
an expression of the coefficient-wise inverse of *this.

Example:

Output:

cwiseProduct()

◆ cwiseSign()

EIGEN_DEVICE_FUNC const CwiseSignReturnType cwiseSign ( ) const
inline
Returns
an expression of the coefficient-wise signum of *this.

Example:

Output:

 

◆ cwiseSqrt()

EIGEN_DEVICE_FUNC const CwiseSqrtReturnType cwiseSqrt ( ) const
inline
Returns
an expression of the coefficient-wise square root of *this.

Example:

Output:

cwisePow(), cwiseSquare()