Go to the source code of this file.
Classes | |
struct | ShiftLeftXpr< N > |
struct | ShiftRightXpr< N > |
Typedefs | |
typedef CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > | Abs2ReturnType |
typedef CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > | AbsReturnType |
typedef CwiseUnaryOp< internal::scalar_acosh_op< Scalar >, const Derived > | AcoshReturnType |
typedef CwiseUnaryOp< internal::scalar_acos_op< Scalar >, const Derived > | AcosReturnType |
typedef CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > | ArgReturnType |
typedef CwiseUnaryOp< internal::scalar_asinh_op< Scalar >, const Derived > | AsinhReturnType |
typedef CwiseUnaryOp< internal::scalar_asin_op< Scalar >, const Derived > | AsinReturnType |
typedef CwiseUnaryOp< internal::scalar_atanh_op< Scalar >, const Derived > | AtanhReturnType |
typedef CwiseUnaryOp< internal::scalar_atan_op< Scalar >, const Derived > | AtanReturnType |
typedef CwiseUnaryOp< internal::scalar_bitwise_not_op< Scalar >, const Derived > | BitwiseNotReturnType |
typedef CwiseUnaryOp< internal::scalar_boolean_not_op< Scalar >, const Derived > | BooleanNotReturnType |
typedef CwiseUnaryOp< internal::scalar_carg_op< Scalar >, const Derived > | CArgReturnType |
typedef CwiseUnaryOp< internal::scalar_ceil_op< Scalar >, const Derived > | CeilReturnType |
typedef CwiseUnaryOp< internal::scalar_cosh_op< Scalar >, const Derived > | CoshReturnType |
typedef CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > | CosReturnType |
typedef CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > | CubeReturnType |
typedef CwiseUnaryOp< internal::scalar_digamma_op< Scalar >, const Derived > | DigammaReturnType |
typedef CwiseUnaryOp< internal::scalar_erfc_op< Scalar >, const Derived > | ErfcReturnType |
typedef CwiseUnaryOp< internal::scalar_erf_op< Scalar >, const Derived > | ErfReturnType |
typedef CwiseUnaryOp< internal::scalar_expm1_op< Scalar >, const Derived > | Expm1ReturnType |
typedef CwiseUnaryOp< internal::scalar_exp_op< Scalar >, const Derived > | ExpReturnType |
typedef CwiseUnaryOp< internal::scalar_floor_op< Scalar >, const Derived > | FloorReturnType |
typedef CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > | InverseReturnType |
typedef CwiseUnaryOp< internal::scalar_isfinite_op< Scalar >, const Derived > | IsFiniteReturnType |
typedef CwiseUnaryOp< internal::scalar_isinf_op< Scalar >, const Derived > | IsInfReturnType |
typedef CwiseUnaryOp< internal::scalar_isnan_op< Scalar >, const Derived > | IsNaNReturnType |
typedef CwiseUnaryOp< internal::scalar_lgamma_op< Scalar >, const Derived > | LgammaReturnType |
typedef CwiseUnaryOp< internal::scalar_log10_op< Scalar >, const Derived > | Log10ReturnType |
typedef CwiseUnaryOp< internal::scalar_log1p_op< Scalar >, const Derived > | Log1pReturnType |
typedef CwiseUnaryOp< internal::scalar_log2_op< Scalar >, const Derived > | Log2ReturnType |
typedef CwiseUnaryOp< internal::scalar_logistic_op< Scalar >, const Derived > | LogisticReturnType |
typedef CwiseUnaryOp< internal::scalar_log_op< Scalar >, const Derived > | LogReturnType |
typedef CwiseUnaryOp< internal::scalar_ndtri_op< Scalar >, const Derived > | NdtriReturnType |
typedef CwiseUnaryOp< internal::scalar_rint_op< Scalar >, const Derived > | RintReturnType |
typedef CwiseUnaryOp< internal::scalar_round_op< Scalar >, const Derived > | RoundReturnType |
typedef CwiseUnaryOp< internal::scalar_rsqrt_op< Scalar >, const Derived > | RsqrtReturnType |
typedef CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > | SignReturnType |
typedef CwiseUnaryOp< internal::scalar_sinh_op< Scalar >, const Derived > | SinhReturnType |
typedef CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > | SinReturnType |
typedef CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > | SqrtReturnType |
typedef CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > | SquareReturnType |
typedef CwiseUnaryOp< internal::scalar_tanh_op< Scalar >, const Derived > | TanhReturnType |
typedef CwiseUnaryOp< internal::scalar_tan_op< Scalar >, const Derived > | TanReturnType |
template<typename ScalarExponent > | |
using | UnaryPowReturnType = std::enable_if_t< internal::is_arithmetic< typename NumTraits< ScalarExponent >::Real >::value, CwiseUnaryOp< internal::scalar_unary_pow_op< Scalar, ScalarExponent >, const Derived > > |
Functions | |
const AbsReturnType | abs () const |
const Abs2ReturnType | abs2 () const |
const AcosReturnType | acos () const |
const AcoshReturnType | acosh () const |
const ArgReturnType | arg () const |
const AsinReturnType | asin () const |
const AsinhReturnType | asinh () const |
const AtanReturnType | atan () const |
const AtanhReturnType | atanh () const |
const CArgReturnType | carg () const |
const CeilReturnType | ceil () const |
const CosReturnType | cos () const |
const CoshReturnType | cosh () const |
const CubeReturnType | cube () const |
const DigammaReturnType | digamma () const |
const ErfReturnType | erf () const |
const ErfcReturnType | erfc () const |
const ExpReturnType | exp () const |
const Expm1ReturnType | expm1 () const |
const FloorReturnType | floor () const |
const InverseReturnType | inverse () const |
const IsFiniteReturnType | isFinite () const |
const IsInfReturnType | isInf () const |
const IsNaNReturnType | isNaN () const |
const LgammaReturnType | lgamma () const |
const LogReturnType | log () const |
const Log10ReturnType | log10 () const |
const Log1pReturnType | log1p () const |
const Log2ReturnType | log2 () const |
const LogisticReturnType | logistic () const |
const NdtriReturnType | ndtri () const |
const BooleanNotReturnType | operator! () const |
const BitwiseNotReturnType | operator~ () const |
template<typename ScalarExponent > | |
const UnaryPowReturnType< ScalarExponent > | pow (const ScalarExponent &exponent) const |
const RintReturnType | rint () const |
const RoundReturnType | round () const |
const RsqrtReturnType | rsqrt () const |
template<int N> | |
ShiftLeftXpr< N >::Type | shiftLeft () const |
template<int N> | |
ShiftRightXpr< N >::Type | shiftRight () const |
const SignReturnType | sign () const |
const SinReturnType | sin () const |
const SinhReturnType | sinh () const |
const SqrtReturnType | sqrt () const |
const SquareReturnType | square () const |
const TanReturnType | tan () const |
const TanhReturnType | tanh () const |
typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Abs2ReturnType |
Definition at line 6 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> AbsReturnType |
Definition at line 3 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_acosh_op<Scalar>, const Derived> AcoshReturnType |
Definition at line 31 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturnType |
Definition at line 23 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> ArgReturnType |
Definition at line 4 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_asinh_op<Scalar>, const Derived> AsinhReturnType |
Definition at line 30 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType |
Definition at line 24 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_atanh_op<Scalar>, const Derived> AtanhReturnType |
Definition at line 29 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType |
Definition at line 25 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_bitwise_not_op<Scalar>, const Derived> BitwiseNotReturnType |
Definition at line 12 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_boolean_not_op<Scalar>, const Derived> BooleanNotReturnType |
Definition at line 11 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_carg_op<Scalar>, const Derived> CArgReturnType |
Definition at line 5 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_ceil_op<Scalar>, const Derived> CeilReturnType |
Definition at line 38 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType |
Definition at line 32 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> CosReturnType |
Definition at line 20 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> CubeReturnType |
Definition at line 34 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_digamma_op<Scalar>, const Derived> DigammaReturnType |
Definition at line 610 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_erfc_op<Scalar>, const Derived> ErfcReturnType |
Definition at line 612 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_erf_op<Scalar>, const Derived> ErfReturnType |
Definition at line 611 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_expm1_op<Scalar>, const Derived> Expm1ReturnType |
Definition at line 15 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> ExpReturnType |
Definition at line 14 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_floor_op<Scalar>, const Derived> FloorReturnType |
Definition at line 37 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> InverseReturnType |
Definition at line 10 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_isfinite_op<Scalar>, const Derived> IsFiniteReturnType |
Definition at line 41 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_isinf_op<Scalar>, const Derived> IsInfReturnType |
Definition at line 40 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_isnan_op<Scalar>, const Derived> IsNaNReturnType |
Definition at line 39 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_lgamma_op<Scalar>, const Derived> LgammaReturnType |
Definition at line 609 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_log10_op<Scalar>, const Derived> Log10ReturnType |
Definition at line 18 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_log1p_op<Scalar>, const Derived> Log1pReturnType |
Definition at line 17 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_log2_op<Scalar>, const Derived> Log2ReturnType |
Definition at line 19 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_logistic_op<Scalar>, const Derived> LogisticReturnType |
Definition at line 27 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> LogReturnType |
Definition at line 16 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_ndtri_op<Scalar>, const Derived> NdtriReturnType |
Definition at line 613 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_rint_op<Scalar>, const Derived> RintReturnType |
Definition at line 36 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_round_op<Scalar>, const Derived> RoundReturnType |
Definition at line 35 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_rsqrt_op<Scalar>, const Derived> RsqrtReturnType |
Definition at line 8 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> SignReturnType |
Definition at line 9 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType |
Definition at line 28 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> SinReturnType |
Definition at line 21 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> SqrtReturnType |
Definition at line 7 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType |
Definition at line 33 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType |
Definition at line 26 of file ArrayCwiseUnaryOps.h.
typedef CwiseUnaryOp<internal::scalar_tan_op<Scalar>, const Derived> TanReturnType |
Definition at line 22 of file ArrayCwiseUnaryOps.h.
using UnaryPowReturnType = std::enable_if_t<internal::is_arithmetic<typename NumTraits<ScalarExponent>::Real>::value, CwiseUnaryOp<internal::scalar_unary_pow_op<Scalar, ScalarExponent>, const Derived> > |
Definition at line 706 of file ArrayCwiseUnaryOps.h.
|
inline |
*this
Example:
Output:
1 2 3
Definition at line 52 of file ArrayCwiseUnaryOps.h.
|
inline |
*this
Example:
Output:
1 4 9
Definition at line 84 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1.57 0.785 0
Definition at line 301 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 390 of file ArrayCwiseUnaryOps.h.
|
inline |
*this
Example:
Output:
(-0.211,0.68) (0.597,0.566) (-0.605,0.823) 1.87 0.759 2.2
Definition at line 66 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
0 0.785 1.57
Definition at line 315 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 379 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
0 0.245 0.464 0.644 0.785
Definition at line 287 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 368 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 73 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
-2 -1.33 -0.667 0 0.667 1.33 2 -2 -1 0 0 1 2 2
Definition at line 497 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise cosine. The function MatrixBase::cos() in the unsupported module MatrixFunctions computes the matrix cosine.
Example:
Output:
-1 6.12e-17 0.5
Definition at line 241 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1 1.03 1.13 1.29 1.54
Definition at line 357 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
8 27 64
Definition at line 441 of file ArrayCwiseUnaryOps.h.
|
inline |
This is defined in the unsupported SpecialFunctions module.
Definition at line 644 of file ArrayCwiseUnaryOps.h.
|
inline |
[c++11]
This is defined in the unsupported SpecialFunctions module.
Definition at line 662 of file ArrayCwiseUnaryOps.h.
|
inline |
[c++11]
This is defined in the unsupported SpecialFunctions module.
Definition at line 680 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise exponential. The function MatrixBase::exp() in the unsupported module MatrixFunctions computes the matrix exponential.
Example:
Output:
2.72 7.39 20.1
Definition at line 101 of file ArrayCwiseUnaryOps.h.
|
inline |
In exact arithmetic, x.expm1()
is equivalent to x.exp()
- 1, however, with finite precision, this function is much more accurate when x
is close to zero.
Definition at line 115 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
-2 -1.33 -0.667 0 0.667 1.33 2 -2 -2 -1 0 0 1 2
Definition at line 483 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
0.5 0.333 0.25
Definition at line 413 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1 -nan inf 1 0 0
Definition at line 578 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1 -nan inf 0 0 1
Definition at line 564 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1 -nan inf 0 1 0
Definition at line 550 of file ArrayCwiseUnaryOps.h.
|
inline |
[c++11]
This is defined in the unsupported SpecialFunctions module.
Definition at line 627 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise logarithm. The function MatrixBase::log() in the unsupported module MatrixFunctions computes the matrix logarithm.
Example:
Output:
0 0.693 1.1
Definition at line 132 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise base-10 logarithm.
Example:
Output:
nan -inf 0 0.301
Definition at line 162 of file ArrayCwiseUnaryOps.h.
|
inline |
*this
.In exact arithmetic, x.log()
is equivalent to (x+1).log(), however, with finite precision, this function is much more accurate when
x
is close to zero.
Definition at line 146 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise base-2 logarithm.
Definition at line 174 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 399 of file ArrayCwiseUnaryOps.h.
|
inline |
This is defined in the unsupported SpecialFunctions module.
In other words, considering x = ndtri(y)
, it returns the argument, x, for which the area under the Gaussian probability density function (integrated from minus infinity to x) is equal to y.
Definition at line 700 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
1 -nan inf 0 1 1
Definition at line 592 of file ArrayCwiseUnaryOps.h.
|
inline |
Definition at line 601 of file ArrayCwiseUnaryOps.h.
|
inline |
*this
rasied to the constant power exponent T | is the scalar type of exponent. It must be compatible with the scalar type of the given expression. |
This function computes the coefficient-wise power. The function MatrixBase::pow() in the unsupported module MatrixFunctions computes the matrix power.
Example:
Output:
2 3 4
|
inline |
Example:
Output:
-2 -1.33 -0.667 0 0.667 1.33 2 -2 -1 -1 0 1 1 2
Definition at line 455 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
-2 -1.33 -0.667 0 0.667 1.33 2 -2 -1 -1 0 1 1 2
Definition at line 469 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise inverse square root.
Example:
Output:
1 1.41 2
Definition at line 207 of file ArrayCwiseUnaryOps.h.
ShiftLeftXpr<N>::Type shiftLeft | ( | ) | const |
*this
with the Scalar type logically shifted left by N bit positions.The template parameter N specifies the number of bit positions to shift.
Definition at line 536 of file ArrayCwiseUnaryOps.h.
ShiftRightXpr<N>::Type shiftRight | ( | ) | const |
*this
with the Scalar type arithmetically shifted right by N bit positions.The template parameter N specifies the number of bit positions to shift.
Definition at line 516 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise signum.
Example:
Output:
-1 1 0
Definition at line 223 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise sine. The function MatrixBase::sin() in the unsupported module MatrixFunctions computes the matrix sine.
Example:
Output:
1.22e-16 1 0.866
Definition at line 259 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
0 0.253 0.521 0.822 1.18
Definition at line 343 of file ArrayCwiseUnaryOps.h.
|
inline |
This function computes the coefficient-wise square root. The function MatrixBase::sqrt() in the unsupported module MatrixFunctions computes the matrix square root.
Example:
Output:
1 1.41 2
Definition at line 191 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
4 9 16
Definition at line 427 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
-1.22e-16 1.63e+16 1.73
Definition at line 273 of file ArrayCwiseUnaryOps.h.
|
inline |
Example:
Output:
0 0.245 0.462 0.635 0.762
Definition at line 329 of file ArrayCwiseUnaryOps.h.