![]() |
Eigen
5.0.1
|
#include <Eigen/src/Core/ArrayBase.h>
Base class for all 1D and 2D array, and related expressions.
An array is similar to a dense vector or matrix. While matrices are mathematical objects with well defined linear algebra operators, an array is just a collection of scalar values arranged in a one or two dimensional fashion. As the main consequence, all operations applied to an array are performed coefficient wise. Furthermore, arrays support scalar math functions of the c++ standard library (e.g., std::sin(x)), and convenient constructors allowing to easily write generic code working for both scalar values and arrays.
This class is the base that is inherited by all array expression types.
| Derived | is the derived type, e.g., an array or an expression type. |
This class can be extended with the help of the plugin mechanism described on the page Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_ARRAYBASE_PLUGIN.
Inheritance diagram for Eigen::ArrayBase< Derived >:Public Member Functions | |
| const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > | abs () const |
| const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > | abs2 () const |
| template<typename OtherDerived> | |
| const CwiseBinaryOp< internal::scalar_absolute_difference_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | absolute_difference (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseBinaryOp< internal::scalar_absolute_difference_op< Scalar, Scalar >, const Derived, const CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > > | absolute_difference (const Scalar &other) const |
| const CwiseUnaryOp< internal::scalar_acos_op< Scalar >, const Derived > | acos () const |
| const CwiseUnaryOp< internal::scalar_acosh_op< Scalar >, const Derived > | acosh () const |
| const CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > | arg () const |
| template<int N> | |
| constexpr ArithmeticShiftRightXpr< N >::Type | arithmeticShiftRight () const |
| const CwiseUnaryOp< internal::scalar_asin_op< Scalar >, const Derived > | asin () const |
| const CwiseUnaryOp< internal::scalar_asinh_op< Scalar >, const Derived > | asinh () const |
| const CwiseUnaryOp< internal::scalar_atan_op< Scalar >, const Derived > | atan () const |
| template<typename OtherDerived> | |
| const CwiseBinaryOp< internal::scalar_atan2_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | atan2 (const Eigen::ArrayBase< OtherDerived > &other) const |
| const CwiseUnaryOp< internal::scalar_atanh_op< Scalar >, const Derived > | atanh () const |
| template<typename CustomBinaryOp, typename OtherDerived> | |
| constexpr const CwiseBinaryOp< CustomBinaryOp, const Derived, const OtherDerived > | binaryExpr (const Eigen::ArrayBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const |
| const CwiseUnaryOp< internal::scalar_cbrt_op< Scalar >, const Derived > | cbrt () const |
| const CwiseUnaryOp< internal::scalar_ceil_op< Scalar >, const Derived > | ceil () const |
| const CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > | cos () const |
| const CwiseUnaryOp< internal::scalar_cosh_op< Scalar >, const Derived > | cosh () const |
| const CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > | cube () const |
| const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > | cwiseAbs () const |
| const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > | cwiseAbs2 () const |
| const CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > | cwiseArg () const |
| const CwiseUnaryOp< internal::scalar_cbrt_op< Scalar >, const Derived > | cwiseCbrt () const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryEqualReturnType< OtherDerived > | cwiseEqual (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarEqualReturnType | cwiseEqual (const Scalar &s) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryGreaterReturnType< OtherDerived > | cwiseGreater (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarGreaterReturnType | cwiseGreater (const Scalar &s) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryGreaterOrEqualReturnType< OtherDerived > | cwiseGreaterOrEqual (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarGreaterOrEqualReturnType | cwiseGreaterOrEqual (const Scalar &s) const |
| const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > | cwiseInverse () const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryLessReturnType< OtherDerived > | cwiseLess (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarLessReturnType | cwiseLess (const Scalar &s) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryLessOrEqualReturnType< OtherDerived > | cwiseLessOrEqual (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarLessOrEqualReturnType | cwiseLessOrEqual (const Scalar &s) const |
| template<int NaNPropagation = PropagateFast, typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_max_op< Scalar, Scalar, NaNPropagation >, const Derived, const OtherDerived > | cwiseMax (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<int NaNPropagation = PropagateFast> | |
| constexpr const CwiseBinaryOp< internal::scalar_max_op< Scalar, Scalar, NaNPropagation >, const Derived, const ConstantReturnType > | cwiseMax (const Scalar &other) const |
| template<int NaNPropagation = PropagateFast, typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_min_op< Scalar, Scalar, NaNPropagation >, const Derived, const OtherDerived > | cwiseMin (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<int NaNPropagation = PropagateFast> | |
| constexpr const CwiseBinaryOp< internal::scalar_min_op< Scalar, Scalar, NaNPropagation >, const Derived, const ConstantReturnType > | cwiseMin (const Scalar &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryNotEqualReturnType< OtherDerived > | cwiseNotEqual (const Eigen::ArrayBase< OtherDerived > &other) const |
| constexpr const CwiseScalarNotEqualReturnType | cwiseNotEqual (const Scalar &s) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_product_op< Derived ::Scalar, OtherDerived ::Scalar >, const Derived, const OtherDerived > | cwiseProduct (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const Derived, const OtherDerived > | cwiseQuotient (const Eigen::ArrayBase< OtherDerived > &other) const |
| const CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > | cwiseSign () const |
| const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > | cwiseSqrt () const |
| const CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > | cwiseSquare () const |
| const CwiseUnaryOp< internal::scalar_digamma_op< Scalar >, const Derived > | digamma () const |
| const CwiseUnaryOp< internal::scalar_erf_op< Scalar >, const Derived > | erf () const |
| const CwiseUnaryOp< internal::scalar_erfc_op< Scalar >, const Derived > | erfc () const |
| const CwiseUnaryOp< internal::scalar_exp_op< Scalar >, const Derived > | exp () const |
| const CwiseUnaryOp< internal::scalar_exp2_op< Scalar >, const Derived > | exp2 () const |
| const CwiseUnaryOp< internal::scalar_expm1_op< Scalar >, const Derived > | expm1 () const |
| const CwiseUnaryOp< internal::scalar_floor_op< Scalar >, const Derived > | floor () const |
| const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > | inverse () const |
| const CwiseUnaryOp< internal::scalar_isfinite_op< Scalar >, const Derived > | isFinite () const |
| const CwiseUnaryOp< internal::scalar_isinf_op< Scalar >, const Derived > | isInf () const |
| const CwiseUnaryOp< internal::scalar_isnan_op< Scalar >, const Derived > | isNaN () const |
| constexpr const LdexpReturnType | ldexp (int exponent) const |
| const CwiseUnaryOp< internal::scalar_lgamma_op< Scalar >, const Derived > | lgamma () const |
| const CwiseUnaryOp< internal::scalar_log_op< Scalar >, const Derived > | log () const |
| const CwiseUnaryOp< internal::scalar_log10_op< Scalar >, const Derived > | log10 () const |
| const CwiseUnaryOp< internal::scalar_log1p_op< Scalar >, const Derived > | log1p () const |
| const CwiseUnaryOp< internal::scalar_log2_op< Scalar >, const Derived > | log2 () const |
| template<int N> | |
| constexpr LogicalShiftLeftXpr< N >::Type | logicalShiftLeft () const |
| template<int N> | |
| constexpr LogicalShiftRightXpr< N >::Type | logicalShiftRight () const |
| const CwiseUnaryOp< internal::scalar_logistic_op< Scalar >, const Derived > | logistic () const |
| constexpr MatrixWrapper< Derived > | matrix () |
| template<int NaNPropagation = PropagateFast, typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_max_op< Scalar, Scalar, NaNPropagation >, const Derived, const OtherDerived > | max (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<int NaNPropagation = PropagateFast> | |
| constexpr const CwiseBinaryOp< internal::scalar_max_op< Scalar, Scalar, NaNPropagation >, const Derived, const CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > > | max (const Scalar &other) const |
| template<int NaNPropagation = PropagateFast, typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_min_op< Scalar, Scalar, NaNPropagation >, const Derived, const OtherDerived > | min (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<int NaNPropagation = PropagateFast> | |
| constexpr const CwiseBinaryOp< internal::scalar_min_op< Scalar, Scalar, NaNPropagation >, const Derived, const CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > > | min (const Scalar &other) const |
| const CwiseUnaryOp< internal::scalar_ndtri_op< Scalar >, const Derived > | ndtri () const |
| const CwiseUnaryOp< internal::scalar_boolean_not_op< Scalar >, const Derived > | operator! () const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_bitwise_and_op< Scalar >, const Derived, const OtherDerived > | operator& (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_boolean_and_op< Scalar >, const Derived, const OtherDerived > | operator&& (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_product_op< Derived ::Scalar, OtherDerived ::Scalar >, const Derived, const OtherDerived > | operator* (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| Derived & | operator*= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived> | |
| const CwiseBinaryOp< internal::scalar_sum_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | operator+ (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename T> | |
| const CwiseBinaryOp< internal::scalar_sum_op< Scalar, T >, Derived, Constant< T > > | operator+ (const T &scalar) const |
| template<typename OtherDerived> | |
| Derived & | operator+= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived> | |
| const CwiseBinaryOp< internal::scalar_difference_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | operator- (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename T> | |
| const CwiseBinaryOp< internal::scalar_difference_op< Scalar, T >, Derived, Constant< T > > | operator- (const T &scalar) const |
| template<typename OtherDerived> | |
| Derived & | operator-= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_quotient_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | operator/ (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| Derived & | operator/= (const ArrayBase< OtherDerived > &other) |
| Derived & | operator= (const ArrayBase &other) |
| Derived & | operator= (const Scalar &value) |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_bitwise_xor_op< Scalar >, const Derived, const OtherDerived > | operator^ (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_bitwise_or_op< Scalar >, const Derived, const OtherDerived > | operator| (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename OtherDerived> | |
| constexpr const CwiseBinaryOp< internal::scalar_boolean_or_op< Scalar >, const Derived, const OtherDerived > | operator|| (const Eigen::ArrayBase< OtherDerived > &other) const |
| const CwiseUnaryOp< internal::scalar_bitwise_not_op< Scalar >, const Derived > | operator~ () const |
| template<typename OtherDerived> | |
| const CwiseBinaryOp< internal::scalar_pow_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > | pow (const Eigen::ArrayBase< OtherDerived > &other) const |
| template<typename ScalarExponent> | |
| constexpr const UnaryPowReturnType< ScalarExponent > | pow (const ScalarExponent &exponent) const |
| const CwiseUnaryOp< internal::scalar_rint_op< Scalar >, const Derived > | rint () const |
| const CwiseUnaryOp< internal::scalar_round_op< Scalar >, const Derived > | round () const |
| const CwiseUnaryOp< internal::scalar_rsqrt_op< Scalar >, const Derived > | rsqrt () const |
| template<int N> | |
| constexpr ShiftLeftXpr< N >::Type | shiftLeft () const |
| template<int N> | |
| constexpr ShiftRightXpr< N >::Type | shiftRight () const |
| const CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > | sign () const |
| const CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > | sin () const |
| const CwiseUnaryOp< internal::scalar_sinh_op< Scalar >, const Derived > | sinh () 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 >, const Derived > | tan () const |
| const CwiseUnaryOp< internal::scalar_tanh_op< Scalar >, const Derived > | tanh () const |
| const CwiseUnaryOp< internal::scalar_trunc_op< Scalar >, const Derived > | trunc () const |
| template<typename DerivedQ> | |
| const CwiseBinaryOp< internal::scalar_zeta_op< Scalar >, const Derived, const DerivedQ > | zeta (const Eigen::ArrayBase< DerivedQ > &q) const |
Public Member Functions inherited from Eigen::DenseBase< Derived > | |
| bool | all () const |
| bool | allFinite () const |
| bool | any () const |
| iterator | begin () |
| const_iterator | begin () const |
| template<int NRows, int NCols> | |
| constexpr FixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol) |
| template<int NRows, int NCols> | |
| constexpr const ConstFixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol) const |
| This is the const version of block<>(Index, Index). | |
| template<int NRows, int NCols> | |
| constexpr FixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol, Index blockRows, Index blockCols) |
| template<int NRows, int NCols> | |
| constexpr const ConstFixedBlockXpr< NRows, NCols >::Type | block (Index startRow, Index startCol, Index blockRows, Index blockCols) const |
| This is the const version of block<>(Index, Index, Index, Index). | |
| template<typename NRowsType, typename NColsType> | |
| constexpr FixedBlockXpr<...,... >::Type | block (Index startRow, Index startCol, NRowsType blockRows, NColsType blockCols) |
| template<typename NRowsType, typename NColsType> | |
| constexpr const ConstFixedBlockXpr<...,... >::Type | block (Index startRow, Index startCol, NRowsType blockRows, NColsType blockCols) const |
| This is the const version of block(Index,Index,NRowsType,NColsType) | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner () |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner () const |
| This is the const version of bottomLeftCorner<int, int>(). | |
| template<int CRows, int CCols> | |
| FixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner (Index cRows, Index cCols) |
| template<int CRows, int CCols> | |
| const ConstFixedBlockXpr< CRows, CCols >::Type | bottomLeftCorner (Index cRows, Index cCols) const |
| This is the const version of bottomLeftCorner<int, int>(Index, Index). | |
| template<typename NRowsType, typename NColsType> | |
| constexpr FixedBlockXpr<...,... >::Type | bottomLeftCorner (NRowsType cRows, NColsType cCols) |
| template<typename NRowsType, typename NColsType> | |
| constexpr ConstFixedBlockXpr<...,... >::Type | bottomLeftCorner (NRowsType cRows, NColsType cCols) const |
| This is the const version of bottomLeftCorner(NRowsType, NColsType). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | bottomRightCorner () |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | bottomRightCorner () const |
| This is the const version of bottomRightCorner<int, int>(). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | bottomRightCorner (Index cRows, Index cCols) |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | bottomRightCorner (Index cRows, Index cCols) const |
| This is the const version of bottomRightCorner<int, int>(Index, Index). | |
| template<typename NRowsType, typename NColsType> | |
| constexpr FixedBlockXpr<...,... >::Type | bottomRightCorner (NRowsType cRows, NColsType cCols) |
| template<typename NRowsType, typename NColsType> | |
| constexpr const ConstFixedBlockXpr<...,... >::Type | bottomRightCorner (NRowsType cRows, NColsType cCols) const |
| This is the const version of bottomRightCorner(NRowsType, NColsType). | |
| template<int N> | |
| constexpr NRowsBlockXpr< N >::Type | bottomRows (Index n=N) |
| template<int N> | |
| constexpr ConstNRowsBlockXpr< N >::Type | bottomRows (Index n=N) const |
| This is the const version of bottomRows<int>(). | |
| template<typename NRowsType> | |
| constexpr NRowsBlockXpr<... >::Type | bottomRows (NRowsType n) |
| template<typename NRowsType> | |
| constexpr const ConstNRowsBlockXpr<... >::Type | bottomRows (NRowsType n) const |
| This is the const version of bottomRows(NRowsType). | |
| template<typename NewType> | |
| constexpr CastXpr< NewType >::Type | cast () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| constexpr ColXpr | col (Index i) |
| constexpr ConstColXpr | col (Index i) const |
| This is the const version of col(). | |
| ColwiseReturnType | colwise () |
| ConstColwiseReturnType | colwise () const |
| constexpr ConjugateReturnType | conjugate () const |
| template<bool Cond> | |
| constexpr std::conditional_t< Cond, ConjugateReturnType, const Derived & > | conjugateIf () const |
| Index | count () const |
| iterator | end () |
| const_iterator | end () const |
| EvalReturnType | eval () const |
| void | fill (const Scalar &value) |
| template<unsigned int Added, unsigned int Removed> | |
| EIGEN_DEPRECATED const Derived & | flagged () const |
| const WithFormat< Derived > | format (const IOFormat &fmt) const |
| template<int N> | |
| constexpr FixedSegmentReturnType< N >::Type | head (Index n=N) |
| template<int N> | |
| constexpr ConstFixedSegmentReturnType< N >::Type | head (Index n=N) const |
| This is the const version of head<int>(). | |
| template<typename NType> | |
| constexpr FixedSegmentReturnType<... >::Type | head (NType n) |
| template<typename NType> | |
| constexpr const ConstFixedSegmentReturnType<... >::Type | head (NType n) const |
| This is the const version of head(NType). | |
| constexpr NonConstImagReturnType | imag () |
| constexpr const ImagReturnType | imag () const |
| constexpr Index | innerSize () const |
| constexpr InnerVectorReturnType | innerVector (Index outer) |
| constexpr const ConstInnerVectorReturnType | innerVector (Index outer) const |
| constexpr InnerVectorsReturnType | innerVectors (Index outerStart, Index outerSize) |
| constexpr const ConstInnerVectorsReturnType | innerVectors (Index outerStart, Index outerSize) const |
| template<typename OtherDerived> | |
| constexpr bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isApproxToConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename OtherDerived> | |
| constexpr bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename Derived> | |
| constexpr bool | isMuchSmallerThan (const typename NumTraits< Scalar >::Real &other, const RealScalar &prec) const |
| bool | isOnes (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isZero (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename OtherDerived> | |
| EIGEN_DEPRECATED constexpr Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| template<int N> | |
| constexpr NColsBlockXpr< N >::Type | leftCols (Index n=N) |
| template<int N> | |
| constexpr ConstNColsBlockXpr< N >::Type | leftCols (Index n=N) const |
| This is the const version of leftCols<int>(). | |
| template<typename NColsType> | |
| constexpr NColsBlockXpr<... >::Type | leftCols (NColsType n) |
| template<typename NColsType> | |
| constexpr const ConstNColsBlockXpr<... >::Type | leftCols (NColsType n) const |
| This is the const version of leftCols(NColsType). | |
| template<int NaNPropagation = PropagateFast> | |
| internal::traits< Derived >::Scalar | maxCoeff () const |
| template<int NaNPropagation = PropagateFast, typename IndexType> | |
| internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
| template<int NaNPropagation = PropagateFast, typename IndexType> | |
| internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
| Scalar | mean () const |
| template<int N> | |
| constexpr NColsBlockXpr< N >::Type | middleCols (Index startCol, Index n=N) |
| template<int N> | |
| constexpr ConstNColsBlockXpr< N >::Type | middleCols (Index startCol, Index n=N) const |
| This is the const version of middleCols<int>(). | |
| template<typename NColsType> | |
| constexpr NColsBlockXpr<... >::Type | middleCols (Index startCol, NColsType numCols) |
| template<typename NColsType> | |
| constexpr const ConstNColsBlockXpr<... >::Type | middleCols (Index startCol, NColsType numCols) const |
| This is the const version of middleCols(Index,NColsType). | |
| template<int N> | |
| constexpr NRowsBlockXpr< N >::Type | middleRows (Index startRow, Index n=N) |
| template<int N> | |
| constexpr ConstNRowsBlockXpr< N >::Type | middleRows (Index startRow, Index n=N) const |
| This is the const version of middleRows<int>(). | |
| template<typename NRowsType> | |
| constexpr NRowsBlockXpr<... >::Type | middleRows (Index startRow, NRowsType n) |
| template<typename NRowsType> | |
| constexpr const ConstNRowsBlockXpr<... >::Type | middleRows (Index startRow, NRowsType n) const |
| This is the const version of middleRows(Index,NRowsType). | |
| template<int NaNPropagation = PropagateFast> | |
| internal::traits< Derived >::Scalar | minCoeff () const |
| template<int NaNPropagation = PropagateFast, typename IndexType> | |
| internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
| template<int NaNPropagation = PropagateFast, typename IndexType> | |
| internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
| constexpr const NestByValue< Derived > | nestByValue () const |
| template<typename Indices> | |
| IndexedView_or_VectorBlock | operator() (const Indices &indices) |
| template<typename RowIndices, typename ColIndices> | |
| IndexedView_or_Block | operator() (const RowIndices &rowIndices, const ColIndices &colIndices) |
| constexpr const NegativeReturnType | operator- () const |
| template<typename OtherDerived> | |
| CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
| CommaInitializer< Derived > | operator<< (const Scalar &s) |
| constexpr Derived & | operator= (const DenseBase &other) |
| template<typename OtherDerived> | |
| constexpr Derived & | operator= (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived> | |
| constexpr Derived & | operator= (const EigenBase< OtherDerived > &other) |
| Copies the generic expression other into *this. | |
| constexpr Index | outerSize () const |
| Scalar | prod () const |
| constexpr NonConstRealReturnType | real () |
| constexpr RealReturnType | real () const |
| RealViewReturnType | realView () |
| ConstRealViewReturnType | realView () const |
| This is the const version of realView(). | |
| template<typename Func> | |
| internal::traits< Derived >::Scalar | redux (const Func &func) const |
| template<int RowFactor, int ColFactor> | |
| const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
| const Replicate< Derived, Dynamic, Dynamic > | replicate (Index rowFactor, Index colFactor) const |
| template<typename NRowsType, typename NColsType> | |
| const Replicate< Derived, internal::get_fixed_value< NRowsType >::value, internal::get_fixed_value< NColsType >::value > | replicate (NRowsType nRows, NColsType nCols) const |
| template<int Order = ColMajor> | |
| constexpr Reshaped< Derived,... > | reshaped () |
| template<int Order = ColMajor> | |
| constexpr const Reshaped< const Derived,... > | reshaped () const |
| This is the const version of reshaped(). | |
| template<int Order = ColMajor, typename NRowsType, typename NColsType> | |
| constexpr Reshaped< Derived,... > | reshaped (NRowsType nRows, NColsType nCols) |
| template<int Order = ColMajor, typename NRowsType, typename NColsType> | |
| constexpr const Reshaped< const Derived,... > | reshaped (NRowsType nRows, NColsType nCols) const |
| This is the const version of reshaped(NRowsType,NColsType). | |
| void | resize (Index newSize) |
| void | resize (Index rows, Index cols) |
| ReverseReturnType | reverse () |
| ConstReverseReturnType | reverse () const |
| void | reverseInPlace () |
| template<int N> | |
| constexpr NColsBlockXpr< N >::Type | rightCols (Index n=N) |
| template<int N> | |
| constexpr ConstNColsBlockXpr< N >::Type | rightCols (Index n=N) const |
| This is the const version of rightCols<int>(). | |
| template<typename NColsType> | |
| constexpr NColsBlockXpr<... >::Type | rightCols (NColsType n) |
| template<typename NColsType> | |
| constexpr const ConstNColsBlockXpr<... >::Type | rightCols (NColsType n) const |
| This is the const version of rightCols(NColsType). | |
| constexpr RowXpr | row (Index i) |
| constexpr ConstRowXpr | row (Index i) const |
| This is the const version of row(). | |
| RowwiseReturnType | rowwise () |
| ConstRowwiseReturnType | rowwise () const |
| template<int N> | |
| constexpr FixedSegmentReturnType< N >::Type | segment (Index start, Index n=N) |
| template<int N> | |
| constexpr ConstFixedSegmentReturnType< N >::Type | segment (Index start, Index n=N) const |
| This is the const version of segment<int>(Index). | |
| template<typename NType> | |
| constexpr FixedSegmentReturnType<... >::Type | segment (Index start, NType n) |
| template<typename NType> | |
| constexpr const ConstFixedSegmentReturnType<... >::Type | segment (Index start, NType n) const |
| This is the const version of segment(Index,NType). | |
| template<typename ThenDerived, typename ElseDerived> | |
| constexpr CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< Derived >::Scalar >, ThenDerived, ElseDerived, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const |
| template<typename ThenDerived> | |
| constexpr CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ThenDerived >::Scalar, typename DenseBase< Derived >::Scalar >, ThenDerived, typename DenseBase< ThenDerived >::ConstantReturnType, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const typename DenseBase< ThenDerived >::Scalar &elseScalar) const |
| template<typename ElseDerived> | |
| constexpr CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ElseDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< Derived >::Scalar >, typename DenseBase< ElseDerived >::ConstantReturnType, ElseDerived, Derived > | select (const typename DenseBase< ElseDerived >::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const |
| Derived & | setConstant (const Scalar &value) |
| Derived & | setLinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| Derived & | setLinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| Derived & | setOnes () |
| Derived & | setRandom () |
| Derived & | setZero () |
| template<DirectionType Direction> | |
| constexpr std::conditional_t< Direction==Vertical, ColXpr, RowXpr > | subVector (Index i) |
| template<DirectionType Direction> | |
| constexpr std::conditional_t< Direction==Vertical, ConstColXpr, ConstRowXpr > | subVector (Index i) const |
| template<DirectionType Direction> | |
| constexpr Index | subVectors () const |
| Scalar | sum () const |
| template<typename OtherDerived> | |
| void | swap (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived> | |
| void | swap (PlainObjectBase< OtherDerived > &other) |
| template<int N> | |
| constexpr FixedSegmentReturnType< N >::Type | tail (Index n=N) |
| template<int N> | |
| constexpr ConstFixedSegmentReturnType< N >::Type | tail (Index n=N) const |
| This is the const version of tail<int>(). | |
| template<typename NType> | |
| constexpr FixedSegmentReturnType<... >::Type | tail (NType n) |
| template<typename NType> | |
| constexpr const ConstFixedSegmentReturnType<... >::Type | tail (NType n) const |
| This is the const version of tail(NType). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | topLeftCorner () |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | topLeftCorner () const |
| This is the const version of topLeftCorner<int, int>(). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | topLeftCorner (Index cRows, Index cCols) |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | topLeftCorner (Index cRows, Index cCols) const |
| This is the const version of topLeftCorner<int, int>(Index, Index). | |
| template<typename NRowsType, typename NColsType> | |
| constexpr FixedBlockXpr<...,... >::Type | topLeftCorner (NRowsType cRows, NColsType cCols) |
| template<typename NRowsType, typename NColsType> | |
| constexpr const ConstFixedBlockXpr<...,... >::Type | topLeftCorner (NRowsType cRows, NColsType cCols) const |
| This is the const version of topLeftCorner(Index, Index). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | topRightCorner () |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | topRightCorner () const |
| This is the const version of topRightCorner<int, int>(). | |
| template<int CRows, int CCols> | |
| constexpr FixedBlockXpr< CRows, CCols >::Type | topRightCorner (Index cRows, Index cCols) |
| template<int CRows, int CCols> | |
| constexpr const ConstFixedBlockXpr< CRows, CCols >::Type | topRightCorner (Index cRows, Index cCols) const |
| This is the const version of topRightCorner<int, int>(Index, Index). | |
| template<typename NRowsType, typename NColsType> | |
| constexpr FixedBlockXpr<...,... >::Type | topRightCorner (NRowsType cRows, NColsType cCols) |
| template<typename NRowsType, typename NColsType> | |
| constexpr const ConstFixedBlockXpr<...,... >::Type | topRightCorner (NRowsType cRows, NColsType cCols) const |
| This is the const version of topRightCorner(NRowsType, NColsType). | |
| template<int N> | |
| constexpr NRowsBlockXpr< N >::Type | topRows (Index n=N) |
| template<int N> | |
| constexpr ConstNRowsBlockXpr< N >::Type | topRows (Index n=N) const |
| This is the const version of topRows<int>(). | |
| template<typename NRowsType> | |
| constexpr NRowsBlockXpr<... >::Type | topRows (NRowsType n) |
| template<typename NRowsType> | |
| constexpr const ConstNRowsBlockXpr<... >::Type | topRows (NRowsType n) const |
| This is the const version of topRows(NRowsType). | |
| TransposeReturnType | transpose () |
| const ConstTransposeReturnType | transpose () const |
| void | transposeInPlace () |
| template<typename CustomUnaryOp> | |
| constexpr const CwiseUnaryOp< CustomUnaryOp, const Derived > | unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const |
| Apply a unary operator coefficient-wise. | |
| template<typename CustomViewOp> | |
| constexpr CwiseUnaryView< CustomViewOp, Derived > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) |
| template<typename CustomViewOp> | |
| constexpr const CwiseUnaryView< CustomViewOp, const Derived > | unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const |
| CoeffReturnType | value () const |
| template<typename Visitor> | |
| void | visit (Visitor &func) const |
Public Member Functions inherited from Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors > | |
| constexpr Index | colStride () const noexcept |
| constexpr Index | innerStride () const noexcept |
| constexpr Index | outerStride () const noexcept |
| constexpr Index | rowStride () const noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<typename LhsDerived, typename RhsDerived> | |
| const std::enable_if_t< std::is_same< typename LhsDerived::Scalar, typename RhsDerived::Scalar >::value, Eigen::CwiseBinaryOp< Eigen::internal::scalar_atan2_op< typename LhsDerived::Scalar, typename RhsDerived::Scalar >, const LhsDerived, const RhsDerived > > | atan2 (const Eigen::ArrayBase< LhsDerived > &x, const Eigen::ArrayBase< RhsDerived > &exponents) |
| template<typename Derived> | |
| constexpr const CwiseUnaryOp< internal::scalar_ldexp_op< typename Derived::Scalar >, const Derived > | ldexp (const Eigen::ArrayBase< Derived > &x, int exponent) |
| template<typename Derived, typename ExponentDerived> | |
| const Eigen::CwiseBinaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar, typename ExponentDerived::Scalar >, const Derived, const ExponentDerived > | pow (const Eigen::ArrayBase< Derived > &x, const Eigen::ArrayBase< ExponentDerived > &exponents) |
| template<typename Derived, typename ScalarExponent> | |
| constexpr const GlobalUnaryPowReturnType< Derived, ScalarExponent > | pow (const Eigen::ArrayBase< Derived > &x, const ScalarExponent &exponent) |
| template<typename Scalar, typename Derived> | |
| const CwiseBinaryOp< internal::scalar_pow_op< Scalar, Derived::Scalar >, Constant< Scalar >, Derived > | pow (const Scalar &x, const Eigen::ArrayBase< Derived > &exponents) |
Related Symbols inherited from Eigen::DenseBase< Derived > | |
| template<typename Derived> | |
| std::ostream & | operator<< (std::ostream &s, const DenseBase< Derived > &m) |
Additional Inherited Members | |
Public Types inherited from Eigen::DenseBase< Derived > | |
| enum | { RowsAtCompileTime , ColsAtCompileTime , SizeAtCompileTime , MaxRowsAtCompileTime , MaxColsAtCompileTime , MaxSizeAtCompileTime , IsVectorAtCompileTime , NumDimensions , Flags , IsRowMajor , InnerSizeAtCompileTime , InnerStrideAtCompileTime , OuterStrideAtCompileTime } |
| typedef random_access_iterator_type | const_iterator |
| using | InnerIterator |
| typedef random_access_iterator_type | iterator |
| using | PlainArray |
| using | PlainMatrix |
| using | PlainObject |
| The plain matrix or array type corresponding to this expression. | |
| using | Scalar |
| using | StorageIndex |
| The type used to store indices. | |
| using | value_type |
Static Public Member Functions inherited from Eigen::DenseBase< Derived > | |
| static const ConstantReturnType | Constant (const Scalar &value) |
| static const ConstantReturnType | Constant (Index rows, Index cols, const Scalar &value) |
| static const ConstantReturnType | Constant (Index size, const Scalar &value) |
| static const RandomAccessLinSpacedReturnType | LinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| static const RandomAccessLinSpacedReturnType | LinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| static const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, const Scalar &low, const Scalar &high) |
| static const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, Index size, const Scalar &low, const Scalar &high) |
| template<typename CustomNullaryOp> | |
| static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
| template<typename CustomNullaryOp> | |
| static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
| template<typename CustomNullaryOp> | |
| static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
| static const ConstantReturnType | Ones () |
| static const ConstantReturnType | Ones (Index rows, Index cols) |
| static const ConstantReturnType | Ones (Index size) |
| static const RandomReturnType | Random () |
| static const RandomReturnType | Random (Index rows, Index cols) |
| static const RandomReturnType | Random (Index size) |
| static const ZeroReturnType | Zero () |
| static const ZeroReturnType | Zero (Index rows, Index cols) |
| static const ZeroReturnType | Zero (Index size) |
Protected Member Functions inherited from Eigen::DenseBase< Derived > | |
| constexpr | DenseBase ()=default |
| const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::abs | ( | ) | const |
*this Example:
Output:
1 2 3
| const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::abs2 | ( | ) | const |
*this Example:
Output:
1 4 9
| const CwiseBinaryOp< internal::scalar_absolute_difference_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > Eigen::ArrayBase< Derived >::absolute_difference | ( | const Eigen::ArrayBase< OtherDerived > & | other | ) | const |
*this and other
|
inlineconstexpr |
*this and scalar other | const CwiseUnaryOp< internal::scalar_acos_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::acos | ( | ) | const |
Example:
Output:
1.57
0.785
0
| const CwiseUnaryOp< internal::scalar_acosh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::acosh | ( | ) | const |
| const CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::arg | ( | ) | const |
*this Example:
Output:
(0.68,-0.211) (0.566,0.597) (0.823,-0.605) -0.301 0.812 -0.634
|
inlineconstexpr |
*this with the Scalar type arithmetically shifted right by N bit positions.The template parameter N specifies the number of bit positions to shift. The vacated high bits are filled with the sign bit for a signed Scalar and with zero for an unsigned one, which has no sign bit to propagate. Use logicalShiftRight() to fill with zero regardless of signedness.
| const CwiseUnaryOp< internal::scalar_asin_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::asin | ( | ) | const |
Example:
Output:
0 0.785 1.57
| const CwiseUnaryOp< internal::scalar_asinh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::asinh | ( | ) | const |
| const CwiseUnaryOp< internal::scalar_atan_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::atan | ( | ) | const |
Example:
Output:
0 0.245 0.464 0.644 0.785
| const CwiseBinaryOp< internal::scalar_atan2_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > Eigen::ArrayBase< Derived >::atan2 | ( | const Eigen::ArrayBase< OtherDerived > & | other | ) | const |
*this, y), where y is the given array argument.This function computes the coefficient-wise atan2.
| const CwiseUnaryOp< internal::scalar_atanh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::atanh | ( | ) | const |
|
inlineconstexpr |
The template parameter CustomBinaryOp is the type of the functor of the custom operator (see class CwiseBinaryOp for an example)
Here is an example illustrating the use of custom functors:
Output:
(-0.211,-0.408) (0.108,0.54) (0.435,0.899) (-0.198,-0.96) (0.597,0.0486) (0.258,0.783) (0.214,-0.828) (-0.782,-0.874) (-0.605,0.946) (0.0268,-0.295) (-0.514,0.326) (-0.563,0.941) (0.536,0.543) (0.832,0.838) (0.608,-0.302) (0.678,0.702)
| const CwiseUnaryOp< internal::scalar_cbrt_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cbrt | ( | ) | const |
This function computes the coefficient-wise cube root.
Example:
Output:
1 1.26 1.59
| const CwiseUnaryOp< internal::scalar_ceil_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::ceil | ( | ) | const |
Example:
Output:
-2
-1.33
-0.667
0
0.667
1.33
2
-2
-1
-0
0
1
2
2
| const CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cos | ( | ) | const |
This function computes the coefficient-wise cosine. The function MatrixBase::cos() in the contrib module MatrixFunctions computes the matrix cosine.
Example:
Output:
-1
6.12e-17
0.5
| const CwiseUnaryOp< internal::scalar_cosh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cosh | ( | ) | const |
Example:
Output:
1 1.03 1.13 1.29 1.54
| const CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cube | ( | ) | const |
Example:
Output:
8 27 64
| const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseAbs | ( | ) | const |
*this Example:
Output:
2 4 6 5 1 0
| const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseAbs2 | ( | ) | const |
*this Example:
Output:
4 16 36 25 1 0
| const CwiseUnaryOp< internal::scalar_arg_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseArg | ( | ) | const |
*this Example:
Output:
(0.68,-0.211) (0.823,-0.605) (-0.444,0.108) (0.566,0.597) (-0.33,0.536) (-0.0452,0.258) -0.301 -0.634 2.9 0.812 2.12 1.74
| const CwiseUnaryOp< internal::scalar_cbrt_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseCbrt | ( | ) | const |
|
inlineconstexpr |
Example:
Output:
Comparing m with identity matrix: 1 1 0 1 Number of coefficients that are equal: 3
|
inlineconstexpr |
*this and a scalar s
|
inlineconstexpr |
|
inlineconstexpr |
*this and a scalar s
|
inlineconstexpr |
|
inlineconstexpr |
*this and a scalar s | const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseInverse | ( | ) | const |
Example:
Output:
0.5 2 1 0.333 4 1
|
inlineconstexpr |
|
inlineconstexpr |
*this and a scalar s
|
inlineconstexpr |
|
inlineconstexpr |
*this and a scalar s
|
inlineconstexpr |
Example:
Output:
4 3 4
|
inlineconstexpr |
|
inlineconstexpr |
Example:
Output:
2 2 3
|
inlineconstexpr |
|
inlineconstexpr |
Example:
Output:
Comparing m with identity matrix: 0 0 1 0 Number of coefficients that are not equal: 1
|
inlineconstexpr |
*this and a scalar s
|
inlineconstexpr |
Example:
Output:
a: 1804289383 -1427598262 -1364114958 -465790871 -1550966999 -102585885 1957747793 -1122281286 -782303108 b: -1843394476 336465782 -1045969719 35005211 278722862 1315634022 -1852781081 2145174067 -778350579 c: 247332300 1274064924 1451757314 1178627603 752122462 1323254130 -1164727785 -343432946 -653408692
|
inlineconstexpr |
Example:
Output:
0.5 1.5 1.33
| const CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseSign | ( | ) | const |
Example:
Output:
1 -1 1 -1 1 0
| const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseSqrt | ( | ) | const |
Example:
Output:
1 1.41 2
| const CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::cwiseSquare | ( | ) | const |
| const CwiseUnaryOp< internal::scalar_digamma_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::digamma | ( | ) | const |
This is defined in the contrib SpecialFunctions module.
| const CwiseUnaryOp< internal::scalar_erf_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::erf | ( | ) | const |
This is defined in the contrib SpecialFunctions module.
| const CwiseUnaryOp< internal::scalar_erfc_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::erfc | ( | ) | const |
This is defined in the contrib SpecialFunctions module.
| const CwiseUnaryOp< internal::scalar_exp_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::exp | ( | ) | const |
This function computes the coefficient-wise exponential. The function MatrixBase::exp() in the contrib module MatrixFunctions computes the matrix exponential.
Example:
Output:
2.72 7.39 20.1
| const CwiseUnaryOp< internal::scalar_exp2_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::exp2 | ( | ) | const |
| const CwiseUnaryOp< internal::scalar_expm1_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::expm1 | ( | ) | const |
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.
| const CwiseUnaryOp< internal::scalar_floor_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::floor | ( | ) | const |
Example:
Output:
-2
-1.33
-0.667
0
0.667
1.33
2
-2
-2
-1
0
0
1
2
| const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::inverse | ( | ) | const |
Example:
Output:
0.5 0.333 0.25
| const CwiseUnaryOp< internal::scalar_isfinite_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::isFinite | ( | ) | const |
Example:
Output:
1 nan inf 1 0 0
| const CwiseUnaryOp< internal::scalar_isinf_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::isInf | ( | ) | const |
Example:
Output:
1 nan inf 0 0 1
| const CwiseUnaryOp< internal::scalar_isnan_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::isNaN | ( | ) | const |
Example:
Output:
1 nan inf 0 1 0
|
inlineconstexpr |
*this multiplied by \( 2^{exponent} \).The scaling is exact: it directly adjusts the floating-point exponent, so it produces correct results (including denormals) even when \( 2^{exponent} \) itself is not representable as a Scalar. The result saturates to zero or infinity when the scaled value falls outside the finite range of Scalar.
Example:
Output:
0.25 0.5 0.75 1
| const CwiseUnaryOp< internal::scalar_lgamma_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::lgamma | ( | ) | const |
This is defined in the contrib SpecialFunctions module.
| const CwiseUnaryOp< internal::scalar_log_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::log | ( | ) | const |
This function computes the coefficient-wise logarithm. The function MatrixBase::log() in the contrib module MatrixFunctions computes the matrix logarithm.
Example:
Output:
0 0.693 1.1
| const CwiseUnaryOp< internal::scalar_log10_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::log10 | ( | ) | const |
This function computes the coefficient-wise base-10 logarithm.
Example:
Output:
-nan
-inf
0
0.301
| const CwiseUnaryOp< internal::scalar_log1p_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::log1p | ( | ) | const |
*this.In exact arithmetic, x.log1p() is equivalent to (x+1).log(), however, with finite precision, this function is much more accurate when x is close to zero.
| const CwiseUnaryOp< internal::scalar_log2_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::log2 | ( | ) | const |
This function computes the coefficient-wise base-2 logarithm.
|
inlineconstexpr |
*this with the Scalar type logically shifted left by N bit positions.The template parameter N specifies the number of bit positions to shift. The vacated low bits are filled with zero. There is no separate arithmetic left shift: for every integral Scalar it produces the same bit pattern.
|
inlineconstexpr |
*this with the Scalar type logically shifted right by N bit positions.The template parameter N specifies the number of bit positions to shift. The vacated high bits are filled with zero even when Scalar is signed; use arithmeticShiftRight() to propagate the sign bit instead.
| const CwiseUnaryOp< internal::scalar_logistic_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::logistic | ( | ) | const |
|
inlineconstexpr |
|
inlineconstexpr |
*this and other Example:
Output:
4 3 4
|
inlineconstexpr |
*this and scalar other
|
inlineconstexpr |
*this and other Example:
Output:
2 2 3
|
inlineconstexpr |
*this and scalar other | const CwiseUnaryOp< internal::scalar_ndtri_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::ndtri | ( | ) | const |
This is defined in the contrib 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.
| const CwiseUnaryOp< internal::scalar_boolean_not_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::operator! | ( | ) | const |
Example:
Output:
1 nan inf 0 1 1
|
inlineconstexpr |
*this and other
|
inlineconstexpr |
*this scaled by the scalar factor scalar | T | is the scalar type of scalar. It must be compatible with the scalar type of the given expression. |
*this divided by the scalar value scalar | T | is the scalar type of scalar. It must be compatible with the scalar type of the given expression. |
*this and other Example:
Output:
0 0 0
|
inlineconstexpr |
*this and other
|
inline |
replaces *this by *this * other coefficient wise.
*this | const CwiseBinaryOp< internal::scalar_sum_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > Eigen::ArrayBase< Derived >::operator+ | ( | const Eigen::ArrayBase< OtherDerived > & | other | ) | const |
*this and other | const CwiseBinaryOp< internal::scalar_sum_op< Scalar, T >, Derived, Constant< T > > Eigen::ArrayBase< Derived >::operator+ | ( | const T & | scalar | ) | const |
Example:
Output:
1 0 0
Example:
Output:
1 1 0
Example:
Output:
0 0 1
Example:
Output:
0 1 1
Example:
Output:
0 1 0
Example:
Output:
1 0 1
*this with each coeff incremented by the constant scalar | T | is the scalar type of scalar. It must be compatible with the scalar type of the given expression. |
Example:
Output:
6 7 8
|
inline |
replaces *this by *this + other.
*this | const CwiseBinaryOp< internal::scalar_difference_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > Eigen::ArrayBase< Derived >::operator- | ( | const Eigen::ArrayBase< OtherDerived > & | other | ) | const |
*this and other bool coefficients. Cast to a signed integer type first.| const CwiseBinaryOp< internal::scalar_difference_op< Scalar, T >, Derived, Constant< T > > Eigen::ArrayBase< Derived >::operator- | ( | const T & | scalar | ) | const |
*this with each coeff decremented by the constant scalar | T | is the scalar type of scalar. It must be compatible with the scalar type of the given expression. |
Example:
Output:
-4 -3 -2
|
inline |
replaces *this by *this - other.
*this
|
inlineconstexpr |
*this and other
|
inline |
replaces *this by *this / other coefficient wise.
*this
|
inline |
Special case of the template operator=, in order to prevent the compiler from generating a default operator= (issue hit with g++ 4.1)
|
inline |
Set all the entries to value.
|
inlineconstexpr |
|
inlineconstexpr |
*this and other
|
inlineconstexpr |
*this and other Example:
Output:
1 0 1
| const CwiseUnaryOp< internal::scalar_bitwise_not_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::operator~ | ( | ) | const |
| const CwiseBinaryOp< internal::scalar_pow_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > Eigen::ArrayBase< Derived >::pow | ( | const Eigen::ArrayBase< OtherDerived > & | other | ) | const |
*this to the given array of exponents.This function computes the coefficient-wise power.
Example:
Output:
[ 8 25 3]^[0.333 0.5 2] = 2 5 9 [ 8 25 3]^[0.333 0.5 2] = 2 5 9
|
inlineconstexpr |
*this raised to the constant power exponent | ScalarExponent | is the scalar type of exponent. It must be compatible with the scalar type of the given expression. |
| exponent | the scalar exponent value. |
This function computes the coefficient-wise power. The function MatrixBase::pow() in the contrib module MatrixFunctions computes the matrix power.
For a complex<float> or complex<double> base and an integer-valued exponent n other than 0 and 1, zero and infinite bases are the points 0 and infinity of the extended complex plane, with every value that has an infinite component, a NaN one included, the infinity +inf + 0i that std::proj returns: a zero base gives +0 + 0i for n > 1 and +inf + 0i for n < 0, an infinite base the reverse, whatever the signs of their zeros. A base with a NaN component and no infinite one gives NaN + NaN i. n = 1 returns the base itself. std::pow leaves all of these to the implementation.
Example:
Output:
2 3 4
| const CwiseUnaryOp< internal::scalar_rint_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::rint | ( | ) | const |
Example:
Output:
-2
-1.33
-0.667
0
0.667
1.33
2
-2
-1
-1
0
1
1
2
| const CwiseUnaryOp< internal::scalar_round_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::round | ( | ) | const |
Example:
Output:
-2
-1.33
-0.667
0
0.667
1.33
2
-2
-1
-1
0
1
1
2
| const CwiseUnaryOp< internal::scalar_rsqrt_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::rsqrt | ( | ) | const |
This function computes the coefficient-wise inverse square root.
Example:
Output:
1 1.41 2
|
inlineconstexpr |
*this with the Scalar type logically shifted left by N bit positions.
|
inlineconstexpr |
*this with the Scalar type arithmetically shifted right by N bit positions.| const CwiseUnaryOp< internal::scalar_sign_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::sign | ( | ) | const |
| const CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::sin | ( | ) | const |
This function computes the coefficient-wise sine. The function MatrixBase::sin() in the contrib module MatrixFunctions computes the matrix sine.
Example:
Output:
1.22e-16
1
0.866
| const CwiseUnaryOp< internal::scalar_sinh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::sinh | ( | ) | const |
Example:
Output:
0 0.253 0.521 0.822 1.18
| const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::sqrt | ( | ) | const |
This function computes the coefficient-wise square root. The function MatrixBase::sqrt() in the contrib module MatrixFunctions computes the matrix square root.
Example:
Output:
1 1.41 2
| const CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::square | ( | ) | const |
Example:
Output:
4 9 16
| const CwiseUnaryOp< internal::scalar_tan_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::tan | ( | ) | const |
Example:
Output:
-1.22e-16
1.63e+16
1.73
| const CwiseUnaryOp< internal::scalar_tanh_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::tanh | ( | ) | const |
Example:
Output:
0 0.245 0.462 0.635 0.762
| const CwiseUnaryOp< internal::scalar_trunc_op< Scalar >, const Derived > Eigen::ArrayBase< Derived >::trunc | ( | ) | const |
Example:
Output:
-2
-1.33
-0.667
0
0.667
1.33
2
-2
-1
-0
0
0
1
2
|
inline |
This is defined in the contrib SpecialFunctions module.
It returns the Riemann zeta function of two arguments *this and q:
| q | is the shift, it must be > 0 |
This method is an alias for zeta(*this,q);
|
This function computes the coefficient-wise atan2().
|
The scaling is exact: it directly adjusts the floating-point exponent, so it produces correct results (including denormals) even when \( 2^{exponent} \) itself is not representable as a scalar.
|
This function computes the coefficient-wise power.
Example:
Output:
[ 8 25 3]^[0.333 0.5 2] = 2 5 9 [ 8 25 3]^[0.333 0.5 2] = 2 5 9
|
| ScalarExponent | is the scalar type of exponent. It must be compatible with the scalar type of the given expression (Derived::Scalar). |
|
This function computes the coefficient-wise power between a scalar and an array of exponents.
| Scalar | is the scalar type of x. It must be compatible with the scalar type of the given array expression (Derived::Scalar). |
Example:
Output:
10^[ 2 -3 0.333] = 100 0.001 2.15