Typedefs | Functions
MatrixCwiseUnaryOps.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_abs2_op< Scalar >, const Derived > CwiseAbs2ReturnType
 
typedef CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > CwiseAbsReturnType
 
typedef CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > CwiseArgReturnType
 
typedef CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > CwiseInverseReturnType
 
typedef CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > CwiseSignReturnType
 
typedef CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > CwiseSqrtReturnType
 

Functions

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

Typedef Documentation

◆ CwiseAbs2ReturnType

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

Definition at line 16 of file MatrixCwiseUnaryOps.h.

◆ CwiseAbsReturnType

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

Definition at line 15 of file MatrixCwiseUnaryOps.h.

◆ CwiseArgReturnType

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

Definition at line 17 of file MatrixCwiseUnaryOps.h.

◆ CwiseInverseReturnType

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

Definition at line 20 of file MatrixCwiseUnaryOps.h.

◆ CwiseSignReturnType

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

Definition at line 19 of file MatrixCwiseUnaryOps.h.

◆ CwiseSqrtReturnType

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

Definition at line 18 of file MatrixCwiseUnaryOps.h.

Function Documentation

◆ cwiseAbs()

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

Example:

MatrixXd m(2,3);
m << 2, -4, 6,
-5, 1, 0;
cout << m.cwiseAbs() << endl;

Output:

 
See also
cwiseAbs2()

Definition at line 33 of file MatrixCwiseUnaryOps.h.

◆ cwiseAbs2()

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

Example:

MatrixXd m(2,3);
m << 2, -4, 6,
-5, 1, 0;
cout << m.cwiseAbs2() << endl;

Output:

 
See also
cwiseAbs()

Definition at line 46 of file MatrixCwiseUnaryOps.h.

◆ cwiseArg()

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

Example:

MatrixXcf v = MatrixXcf::Random(2, 3);
cout << v << endl << endl;
cout << v.cwiseArg() << endl;

Output:

 

Definition at line 95 of file MatrixCwiseUnaryOps.h.

◆ cwiseInverse()

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

Example:

MatrixXd m(2,3);
m << 2, 0.5, 1,
3, 0.25, 1;
cout << m.cwiseInverse() << endl;

Output:

 
See also
cwiseProduct()

Definition at line 84 of file MatrixCwiseUnaryOps.h.

◆ cwiseSign()

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

Example:

MatrixXd m(2,3);
m << 2, -4, 6,
-5, 1, 0;
cout << m.cwiseSign() << endl;

Output:

 

Definition at line 70 of file MatrixCwiseUnaryOps.h.

◆ cwiseSqrt()

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

Example:

Vector3d v(1,2,4);
cout << v.cwiseSqrt() << endl;

Output:

 
See also
cwisePow(), cwiseSquare()

Definition at line 59 of file MatrixCwiseUnaryOps.h.

m
Matrix3f m
Definition: AngleAxis_mimic_euler.cpp:1
v
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:20