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 | |
const CwiseUnaryOp < internal::scalar_abs_op < Scalar >, const Derived > | abs () const |
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 EIGEN_MAKE_SCALAR_CWISE_UNARY_OP | ( | METHOD_NAME, | |
FUNCTOR | |||
) |
#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP | ( | METHOD_NAME, | |
FUNCTOR | |||
) |
const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> abs | ( | ) | const [inline] |
*this
Example:
Array3d v(1,-2,-3); cout << v.abs() << endl;
Output:
1 2 3
const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> abs2 | ( | ) | const [inline] |
const CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> acos | ( | ) | const [inline] |
Example:
Array3d v(0, sqrt(2.)/2, 1); cout << v.acos() << endl;
Output:
1.57 0.785 0
Referenced by QuaternionBase< Derived >::angularDistance(), AngleAxis< _Scalar >::operator=(), Eigen::internal::pacos(), and QuaternionBase< Derived >::slerp().
const CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> asin | ( | ) | const [inline] |
Example:
Output:
Referenced by Eigen::internal::pasin().
const CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> cos | ( | ) | const [inline] |
Example:
Array3d v(M_PI, M_PI/2, M_PI/3); cout << v.cos() << endl;
Output:
-1 6.12e-17 0.5
Referenced by QuaternionBase< Derived >::operator=(), Eigen::internal::pcos(), Rotation2D< _Scalar >::toRotationMatrix(), and AngleAxis< _Scalar >::toRotationMatrix().
const CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> cube | ( | ) | const [inline] |
const CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> exp | ( | ) | const [inline] |
Example:
Array3d v(1,2,3); cout << v.exp() << endl;
Output:
2.72 7.39 20.1
Referenced by Eigen::internal::pexp().
const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> inverse | ( | ) | const [inline] |
Example:
Array3d v(2,3,4); cout << v.inverse() << endl;
Output:
0.5 0.333 0.25
const CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> log | ( | ) | const [inline] |
Example:
Array3d v(1,2,3); cout << v.log() << endl;
Output:
0 0.693 1.1
Referenced by Eigen::internal::plog().
const CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived> pow | ( | const Scalar & | exponent | ) | const [inline] |
Example:
Array3d v(8,27,64); cout << v.pow(0.333333) << endl;
Output:
2 3 4
Referenced by MatrixBase< Derived >::blueNorm().
const CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> sin | ( | ) | const [inline] |
Example:
Array3d v(M_PI, M_PI/2, M_PI/3); cout << v.sin() << endl;
Output:
1.22e-16 1 0.866
Referenced by QuaternionBase< Derived >::operator=(), Eigen::internal::psin(), QuaternionBase< Derived >::slerp(), Rotation2D< _Scalar >::toRotationMatrix(), and AngleAxis< _Scalar >::toRotationMatrix().
const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> sqrt | ( | ) | const [inline] |
Example:
Array3d v(1,2,4); cout << v.sqrt() << endl;
Output:
1 1.41 2
Referenced by Eigen::internal::bicgstab(), MatrixBase< Derived >::blueNorm(), EigenSolver< _MatrixType >::compute(), Eigen::internal::conjugate_gradient(), ParametrizedLine< _Scalar, _AmbientDim, _Options >::distance(), Eigen::internal::EIGEN_MATHFUNC_RETVAL(), AlignedBox< _Scalar, _AmbientDim >::exteriorDistance(), IncompleteLUT< _Scalar >::factorize(), SimplicialCholeskyBase< Derived >::factorize_preordered(), JacobiRotation< Scalar >::makeGivens(), MatrixBase< Derived >::makeHouseholder(), JacobiRotation< Scalar >::makeJacobi(), Eigen::internal::minimum_degree_ordering(), MatrixBase< Derived >::norm(), SparseMatrixBase< Derived >::norm(), AngleAxis< _Scalar >::operator=(), MatrixBase< Derived >::operatorNorm(), Eigen::internal::psqrt(), Eigen::internal::real_2x2_jacobi_svd(), QuaternionBase< Derived >::setFromTwoVectors(), and MatrixBase< Derived >::stableNorm().
const CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> square | ( | ) | const [inline] |
Example:
Array3d v(2,3,4); cout << v.square() << endl;
Output:
4 9 16
const CwiseUnaryOp<internal::scalar_tan_op<Scalar>, Derived> tan | ( | ) | const [inline] |
Example:
Array3d v(M_PI, M_PI/2, M_PI/3); cout << v.tan() << endl;
Output:
-1.22e-16 1.63e+16 1.73
Referenced by Eigen::internal::ptan().