![]() |
Prusa Slicer 2.6.0
|
Base class for all 1D and 2D array, and related expressions. More...
#include <src/eigen/Eigen/src/Core/ArrayBase.h>
Inheritance diagram for Eigen::ArrayBase< Derived >:
Collaboration diagram for Eigen::ArrayBase< Derived >:Public Member Functions | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const ArrayBase &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const Scalar &value) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator+= (const Scalar &scalar) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator-= (const Scalar &scalar) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator+= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator-= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const ArrayBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator/= (const ArrayBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC ArrayBase< Derived > & | array () |
| EIGEN_DEVICE_FUNC const ArrayBase< Derived > & | array () const |
| EIGEN_DEVICE_FUNC MatrixWrapper< Derived > | matrix () |
| EIGEN_DEVICE_FUNC const MatrixWrapper< const Derived > | matrix () const |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_STRONG_INLINE Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC Derived & | operator= (const EigenBase< OtherDerived > &other) |
| Copies the generic expression other into *this. | |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC Derived & | operator= (const ReturnByValue< OtherDerived > &func) |
| template<typename OtherDerived > | |
| Derived & | operator= (const ReturnByValue< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC Derived & | operator+= (const EigenBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC Derived & | operator-= (const EigenBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const Scalar &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator/= (const Scalar &other) |
| EIGEN_DEVICE_FUNC Index | nonZeros () const |
| EIGEN_DEVICE_FUNC Index | outerSize () const |
| EIGEN_DEVICE_FUNC Index | innerSize () const |
| EIGEN_DEVICE_FUNC void | resize (Index newSize) |
| EIGEN_DEVICE_FUNC void | resize (Index rows, Index cols) |
| EIGEN_DEVICE_FUNC CommaInitializer< Derived > | operator<< (const Scalar &s) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
| template<unsigned int Added, unsigned int Removed> | |
| EIGEN_DEPRECATED const Derived & | flagged () const |
| EIGEN_DEVICE_FUNC TransposeReturnType | transpose () |
| EIGEN_DEVICE_FUNC ConstTransposeReturnType | transpose () const |
| EIGEN_DEVICE_FUNC void | transposeInPlace () |
| template<typename CustomNullaryOp > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
| template<typename CustomNullaryOp > | |
| EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
| template<typename CustomNullaryOp > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
| EIGEN_DEVICE_FUNC void | fill (const Scalar &value) |
| EIGEN_DEVICE_FUNC Derived & | setConstant (const Scalar &value) |
| EIGEN_DEVICE_FUNC Derived & | setLinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| EIGEN_DEVICE_FUNC Derived & | setLinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| EIGEN_DEVICE_FUNC Derived & | setZero () |
| EIGEN_DEVICE_FUNC Derived & | setOnes () |
| EIGEN_DEVICE_FUNC Derived & | setRandom () |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename OtherDerived > | |
| bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec) const |
| EIGEN_DEVICE_FUNC bool | isMuchSmallerThan (const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| template<typename Derived > | |
| bool | isMuchSmallerThan (const typename NumTraits< Scalar >::Real &other, const RealScalar &prec) const |
| template<typename OtherDerived > | |
| bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec) const |
| EIGEN_DEVICE_FUNC bool | isApproxToConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| EIGEN_DEVICE_FUNC bool | isConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| EIGEN_DEVICE_FUNC bool | isZero (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| EIGEN_DEVICE_FUNC bool | isOnes (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | hasNaN () const |
| bool | allFinite () const |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvalReturnType | eval () const |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC void | swap (const DenseBase< OtherDerived > &other) |
| template<typename OtherDerived > | |
| EIGEN_DEVICE_FUNC void | swap (PlainObjectBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC const NestByValue< Derived > | nestByValue () const |
| EIGEN_DEVICE_FUNC const ForceAlignedAccess< Derived > | forceAlignedAccess () const |
| EIGEN_DEVICE_FUNC ForceAlignedAccess< Derived > | forceAlignedAccess () |
| template<bool Enable> | |
| EIGEN_DEVICE_FUNC const internal::conditional< Enable, ForceAlignedAccess< Derived >, Derived & >::type | forceAlignedAccessIf () const |
| template<bool Enable> | |
| EIGEN_DEVICE_FUNC internal::conditional< Enable, ForceAlignedAccess< Derived >, Derived & >::type | forceAlignedAccessIf () |
| EIGEN_DEVICE_FUNC Scalar | sum () const |
| EIGEN_DEVICE_FUNC Scalar | mean () const |
| EIGEN_DEVICE_FUNC Scalar | trace () const |
| EIGEN_DEVICE_FUNC Scalar | prod () const |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff () const |
| template<typename IndexType > | |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
| template<typename IndexType > | |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff () const |
| template<typename IndexType > | |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
| template<typename IndexType > | |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
| template<typename BinaryOp > | |
| EIGEN_DEVICE_FUNC Scalar | redux (const BinaryOp &func) const |
| template<typename Func > | |
| EIGEN_STRONG_INLINE internal::traits< Derived >::Scalar | redux (const Func &func) const |
| template<typename Visitor > | |
| EIGEN_DEVICE_FUNC void | visit (Visitor &func) const |
| const WithFormat< Derived > | format (const IOFormat &fmt) const |
| EIGEN_DEVICE_FUNC CoeffReturnType | value () const |
| EIGEN_DEVICE_FUNC bool | all () const |
| EIGEN_DEVICE_FUNC bool | any () const |
| EIGEN_DEVICE_FUNC Index | count () const |
| EIGEN_DEVICE_FUNC ConstRowwiseReturnType | rowwise () const |
| EIGEN_DEVICE_FUNC RowwiseReturnType | rowwise () |
| EIGEN_DEVICE_FUNC ConstColwiseReturnType | colwise () const |
| EIGEN_DEVICE_FUNC ColwiseReturnType | colwise () |
| template<typename ThenDerived , typename ElseDerived > | |
| const Select< Derived, ThenDerived, ElseDerived > | select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const |
| template<typename ThenDerived > | |
| const Select< Derived, ThenDerived, typename ThenDerived::ConstantReturnType > | select (const DenseBase< ThenDerived > &thenMatrix, const typename ThenDerived::Scalar &elseScalar) const |
| template<typename ElseDerived > | |
| const Select< Derived, typename ElseDerived::ConstantReturnType, ElseDerived > | select (const typename ElseDerived::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const |
| template<int p> | |
| RealScalar | lpNorm () const |
| template<int RowFactor, int ColFactor> | |
| EIGEN_DEVICE_FUNC const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
| EIGEN_DEVICE_FUNC const Replicate< Derived, Dynamic, Dynamic > | replicate (Index rowFactor, Index colFactor) const |
| template<int RowFactor, int ColFactor> | |
| const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
| EIGEN_DEVICE_FUNC ReverseReturnType | reverse () |
| EIGEN_DEVICE_FUNC ConstReverseReturnType | reverse () const |
| EIGEN_DEVICE_FUNC void | reverseInPlace () |
| template<typename Dest > | |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &) const |
Static Public Member Functions | |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Constant (Index rows, Index cols, const Scalar &value) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Constant (Index size, const Scalar &value) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Constant (const Scalar &value) |
| static EIGEN_DEVICE_FUNC const SequentialLinSpacedReturnType | LinSpaced (Sequential_t, Index size, const Scalar &low, const Scalar &high) |
| static EIGEN_DEVICE_FUNC const RandomAccessLinSpacedReturnType | LinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| static EIGEN_DEVICE_FUNC const SequentialLinSpacedReturnType | LinSpaced (Sequential_t, const Scalar &low, const Scalar &high) |
| static EIGEN_DEVICE_FUNC const RandomAccessLinSpacedReturnType | LinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. | |
| template<typename CustomNullaryOp > | |
| static EIGEN_DEVICE_FUNC const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
| template<typename CustomNullaryOp > | |
| static EIGEN_DEVICE_FUNC const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
| template<typename CustomNullaryOp > | |
| static EIGEN_DEVICE_FUNC const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Zero (Index rows, Index cols) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Zero (Index size) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Zero () |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Ones (Index rows, Index cols) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Ones (Index size) |
| static EIGEN_DEVICE_FUNC const ConstantReturnType | Ones () |
| static const RandomReturnType | Random (Index rows, Index cols) |
| static const RandomReturnType | Random (Index size) |
| static const RandomReturnType | Random () |
Protected Member Functions | |
| EIGEN_DEVICE_FUNC | ArrayBase () |
| template<typename OtherDerived > | |
| Derived & | operator+= (const MatrixBase< OtherDerived > &) |
| template<typename OtherDerived > | |
| Derived & | operator-= (const MatrixBase< OtherDerived > &) |
Private Member Functions | |
| ArrayBase (Index) | |
| ArrayBase (Index, Index) | |
| template<typename OtherDerived > | |
| ArrayBase (const ArrayBase< OtherDerived > &) | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<typename Derived , typename ScalarExponent > | |
| internal::enable_if<!(internal::is_same< typenameDerived::Scalar, ScalarExponent >::value)&&EIGEN_SCALAR_BINARY_SUPPORTED(pow, typenameDerived::Scalar, ScalarExponent), constEIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived, ScalarExponent, pow)>::type | pow (const Eigen::ArrayBase< Derived > &x, const ScalarExponent &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 Scalar , typename Derived > | |
| internal::enable_if<!(internal::is_same< typenameDerived::Scalar, Scalar >::value)&&EIGEN_SCALAR_BINARY_SUPPORTED(pow, Scalar, typenameDerived::Scalar), constEIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, Derived, pow)>::type | pow (const Scalar &x, const Eigen::ArrayBase< Derived > &exponents) |
| template<typename Derived > | |
| std::ostream & | operator<< (std::ostream &s, const DenseBase< Derived > &m) |
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 dimensionnal 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 TopicCustomizing_Plugins by defining the preprocessor symbol EIGEN_ARRAYBASE_PLUGIN.
| typedef DenseBase<Derived> Eigen::ArrayBase< Derived >::Base |
| typedef Base::CoeffReturnType Eigen::ArrayBase< Derived >::CoeffReturnType |
|
inherited |
| typedef CwiseNullaryOp<internal::scalar_constant_op<Scalar>,PlainObject> Eigen::ArrayBase< Derived >::ConstantReturnType |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| typedef ArrayBase Eigen::ArrayBase< Derived >::Eigen_BaseClassForSpecializationOfGlobalMathFuncImpl |
|
inherited |
|
inherited |
|
inherited |
Inner iterator type to iterate over the coefficients of a row or column.
| typedef internal::packet_traits<Scalar>::type Eigen::ArrayBase< Derived >::PacketScalar |
|
inherited |
The plain array type corresponding to this expression.
|
inherited |
The plain matrix type corresponding to this expression.
| typedef Base::PlainObject Eigen::ArrayBase< Derived >::PlainObject |
|
inherited |
|
inherited |
| typedef NumTraits<Scalar>::Real Eigen::ArrayBase< Derived >::RealScalar |
|
inherited |
|
inherited |
| typedef internal::traits<Derived>::Scalar Eigen::ArrayBase< Derived >::Scalar |
|
inherited |
| typedef ArrayBase Eigen::ArrayBase< Derived >::StorageBaseType |
The base class for a given storage type.
|
inherited |
The type used to store indices.
This typedef is relevant for types that store multiple indices such as PermutationMatrix or Transpositions, otherwise it defaults to Eigen::Index
| typedef internal::traits<Derived>::StorageKind Eigen::ArrayBase< Derived >::StorageKind |
|
inherited |
|
inherited |
The numeric type of the expression' coefficients, e.g. float, double, int or std::complex<float>, etc.
It is an alias for the Scalar type
|
inherited |
| Enumerator | |
|---|---|
| RowsAtCompileTime | The number of rows at compile-time. This is just a copy of the value provided by the Derived type. If a value is not known at compile-time, it is set to the Dynamic constant.
|
| ColsAtCompileTime | The number of columns at compile-time. This is just a copy of the value provided by the Derived type. If a value is not known at compile-time, it is set to the Dynamic constant.
|
| SizeAtCompileTime | This is equal to the number of coefficients, i.e. the number of rows times the number of columns, or to Dynamic if this is not known at compile-time.
|
| MaxRowsAtCompileTime | This value is equal to the maximum possible number of rows that this expression might have. If this expression might have an arbitrarily high number of rows, this value is set to Dynamic. This value is useful to know when evaluating an expression, in order to determine whether it is possible to avoid doing a dynamic memory allocation. |
| MaxColsAtCompileTime | This value is equal to the maximum possible number of columns that this expression might have. If this expression might have an arbitrarily high number of columns, this value is set to Dynamic. This value is useful to know when evaluating an expression, in order to determine whether it is possible to avoid doing a dynamic memory allocation. |
| MaxSizeAtCompileTime | This value is equal to the maximum possible number of coefficients that this expression might have. If this expression might have an arbitrarily high number of coefficients, this value is set to Dynamic. This value is useful to know when evaluating an expression, in order to determine whether it is possible to avoid doing a dynamic memory allocation. |
| IsVectorAtCompileTime | This is set to true if either the number of rows or the number of columns is known at compile-time to be equal to 1. Indeed, in that case, we are dealing with a column-vector (if there is only one column) or with a row-vector (if there is only one row). |
| Flags | This stores expression Flags flags which may or may not be inherited by new expressions constructed from this one. See the list of flags. |
| IsRowMajor | True if this expression has row-major storage order. |
| InnerSizeAtCompileTime | |
| InnerStrideAtCompileTime | |
| OuterStrideAtCompileTime | |
|
inherited |
| Enumerator | |
|---|---|
| IsPlainObjectBase | |
|
inlineprotected |
|
explicitprivate |
|
private |
|
explicitprivate |
|
inlineinherited |
Example:
Output:
References Eigen::Dynamic, and EIGEN_UNROLLING_LIMIT.
|
inlineinherited |
*this contains only finite numbers, i.e., no NaN and no +/-INF values.
|
inlineinherited |
References Eigen::Dynamic, and EIGEN_UNROLLING_LIMIT.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
Example:
Output:
Referenced by igl::bounding_box(), igl::copyleft::offset_surface(), and Eigen::umeyama().
Here is the caller graph for this function:
|
staticinherited |
This variant is only for fixed-size DenseBase types. For dynamic-size types, you need to use the variants taking size arguments.
The template parameter CustomNullaryOp is the type of the functor.
References EIGEN_STATIC_ASSERT_FIXED_SIZE, and Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
staticinherited |
The parameters rows and cols are the number of rows and of columns of the returned matrix. Must be compatible with this DenseBase type.
This variant is meant to be used for dynamic-size matrix types. For fixed-size types, it is redundant to pass rows and cols as arguments, so Zero() should be used instead.
The template parameter CustomNullaryOp is the type of the functor.
References Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
staticinherited |
The parameter size is the size of the returned vector. Must be compatible with this DenseBase type.
\only_for_vectors
This variant is meant to be used for dynamic-size vector types. For fixed-size types, it is redundant to pass size as argument, so Zero() should be used instead.
The template parameter CustomNullaryOp is the type of the functor.
References Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
inlineinherited |
|
inlineinherited |
Notice that in the case of a plain matrix or vector (not an expression) this function just returns a const reference, in order to avoid a useless copy.
|
inlineinherited |
References EIGEN_STATIC_ASSERT.
|
inherited |
Alias for setConstant(): sets all coefficients in this expression to val.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
See class IOFormat for some examples.
Referenced by igl::matlab_format(), and igl::writeOBJ().
Here is the caller graph for this function:
|
inlineinherited |
*this contains at least one Not A Number (NaN).
|
inlineinherited |
References Eigen::DenseBase< Derived >::IsRowMajor, and Eigen::DenseBase< Derived >::IsVectorAtCompileTime.
|
inherited |
true if *this is approximately equal to other, within the precision determined by prec.
*this is approximately equal to the zero matrix or vector. Indeed, isApprox(zero) returns false unless *this itself is exactly the zero matrix or vector. If you want to test whether *this is zero, use internal::isMuchSmallerThan(const
RealScalar&, RealScalar) instead.References Eigen::internal::isApprox_selector< Derived, OtherDerived, is_integer >::run().
Here is the call graph for this function:
|
inherited |
|
inherited |
References Eigen::internal::isApprox().
Here is the call graph for this function:
|
inherited |
This is just an alias for isApproxToConstant().
|
inherited |
true if the norm of *this is much smaller than the norm of other, within the precision determined by prec.
References Eigen::internal::isMuchSmallerThan_object_selector< Derived, OtherDerived, is_integer >::run().
Here is the call graph for this function:
|
inherited |
|
inherited |
|
inherited |
true if the norm of *this is much smaller than other, within the precision determined by prec.
For matrices, the comparison is done using the Hilbert-Schmidt norm. For this reason, the value of the reference scalar other should come from the Hilbert-Schmidt norm of a reference matrix of same dimensions.
References Eigen::internal::isMuchSmallerThan_scalar_selector< Derived, is_integer >::run().
Here is the call graph for this function:
|
inherited |
Example:
Output:
|
inherited |
Example:
Output:
References Eigen::internal::isMuchSmallerThan().
Here is the call graph for this function:| EIGEN_DEVICE_FUNC Derived & Eigen::DenseBase< Derived >::lazyAssign | ( | const DenseBase< OtherDerived > & | other | ) |
| EIGEN_STRONG_INLINE Derived & Eigen::DenseBase< Derived >::lazyAssign | ( | const DenseBase< OtherDerived > & | other | ) |
|
staticinherited |
Sets a linearly spaced vector.
The function generates 'size' equally spaced values in the closed interval [low,high]. When size is set to 1, a vector of length 1 containing 'high' is returned.
\only_for_vectors
Example:
Output:
For integer scalar types, an even spacing is possible if and only if the length of the range, i.e., high-low is a scalar multiple of size-1, or if size is a scalar multiple of the number of values high-low+1 (meaning each value can be repeated the same number of time). If one of these two considions is not satisfied, then high is lowered to the largest value satisfying one of this constraint. Here are some examples:
Example:
Output:
References EIGEN_STATIC_ASSERT_FIXED_SIZE, EIGEN_STATIC_ASSERT_VECTOR_ONLY, and Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
staticinherited |
Sets a linearly spaced vector.
The function generates 'size' equally spaced values in the closed interval [low,high]. When size is set to 1, a vector of length 1 containing 'high' is returned.
\only_for_vectors
Example:
Output:
For integer scalar types, an even spacing is possible if and only if the length of the range, i.e., high-low is a scalar multiple of size-1, or if size is a scalar multiple of the number of values high-low+1 (meaning each value can be repeated the same number of time). If one of these two considions is not satisfied, then high is lowered to the largest value satisfying one of this constraint. Here are some examples:
Example:
Output:
|
staticinherited |
References EIGEN_STATIC_ASSERT_FIXED_SIZE, EIGEN_STATIC_ASSERT_VECTOR_ONLY, and Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
staticinherited |
References EIGEN_STATIC_ASSERT_VECTOR_ONLY, and Eigen::DenseBase< Derived >::NullaryExpr().
Here is the call graph for this function:
|
inherited |
|
inline |
|
inline |
|
inherited |
*this. *this contains NaN. Referenced by igl::copyleft::cgal::half_space_box(), igl::isolines(), igl::min_quad_with_fixed_precompute(), igl::octree(), Eigen::internal::lpNorm_selector< Derived, Infinity >::run(), and igl::slice().
Here is the caller graph for this function:
|
inherited |
*this contains NaN.References Eigen::internal::coeff_visitor< Derived >::col, EIGEN_STATIC_ASSERT_VECTOR_ONLY, Eigen::internal::coeff_visitor< Derived >::res, and Eigen::internal::coeff_visitor< Derived >::row.
|
inherited |
*this contains NaN.References Eigen::internal::coeff_visitor< Derived >::col, Eigen::internal::coeff_visitor< Derived >::res, and Eigen::internal::coeff_visitor< Derived >::row.
|
inherited |
|
inherited |
*this. *this contains NaN. Referenced by igl::copyleft::cgal::half_space_box(), igl::isolines(), igl::min_quad_with_fixed_precompute(), igl::octree(), and igl::slice().
Here is the caller graph for this function:
|
inherited |
*this contains NaN.References Eigen::internal::coeff_visitor< Derived >::col, EIGEN_STATIC_ASSERT_VECTOR_ONLY, Eigen::internal::coeff_visitor< Derived >::res, and Eigen::internal::coeff_visitor< Derived >::row.
|
inherited |
*this contains NaN.References Eigen::internal::coeff_visitor< Derived >::col, Eigen::internal::coeff_visitor< Derived >::res, and Eigen::internal::coeff_visitor< Derived >::row.
|
inlineinherited |
|
inlineinherited |
|
inherited |
This variant is only for fixed-size DenseBase types. For dynamic-size types, you need to use the variants taking size arguments.
The template parameter CustomNullaryOp is the type of the functor.
|
staticinherited |
|
inherited |
The parameters rows and cols are the number of rows and of columns of the returned matrix. Must be compatible with this MatrixBase type.
This variant is meant to be used for dynamic-size matrix types. For fixed-size types, it is redundant to pass rows and cols as arguments, so Zero() should be used instead.
The template parameter CustomNullaryOp is the type of the functor.
|
staticinherited |
Referenced by Eigen::DenseBase< Derived >::Constant(), Eigen::DenseBase< Derived >::Constant(), Eigen::DenseBase< Derived >::Constant(), Eigen::MatrixBase< Derived >::Identity(), Eigen::MatrixBase< Derived >::Identity(), Eigen::DenseBase< Derived >::LinSpaced(), Eigen::DenseBase< Derived >::LinSpaced(), and Eigen::DenseBase< Derived >::LinSpaced().
Here is the caller graph for this function:
|
inherited |
The parameter size is the size of the returned vector. Must be compatible with this MatrixBase type.
\only_for_vectors
This variant is meant to be used for dynamic-size vector types. For fixed-size types, it is redundant to pass size as argument, so Zero() should be used instead.
The template parameter CustomNullaryOp is the type of the functor.
Here is an example with C++11 random generators:
Output:
References EIGEN_STATIC_ASSERT_VECTOR_ONLY.
|
staticinherited |
|
staticinherited |
This variant is only for fixed-size MatrixBase types. For dynamic-size types, you need to use the variants taking size arguments.
Example:
Output:
|
staticinherited |
The parameters rows and cols are the number of rows and of columns of the returned matrix. Must be compatible with this MatrixBase type.
This variant is meant to be used for dynamic-size matrix types. For fixed-size types, it is redundant to pass rows and cols as arguments, so Ones() should be used instead.
Example:
Output:
|
staticinherited |
The parameter newSize is the size of the returned vector. Must be compatible with this MatrixBase type.
\only_for_vectors
This variant is meant to be used for dynamic-size vector types. For fixed-size types, it is redundant to pass size as argument, so Ones() should be used instead.
Example:
Output:
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator*= | ( | const ArrayBase< OtherDerived > & | other | ) |
replaces *this by *this * other coefficient wise.
*this | EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::DenseBase< Derived >::operator*= | ( | const Scalar & | other | ) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator+= | ( | const ArrayBase< OtherDerived > & | other | ) |
replaces *this by *this + other.
*this | EIGEN_DEVICE_FUNC Derived & Eigen::DenseBase< Derived >::operator+= | ( | const EigenBase< OtherDerived > & | other | ) |
|
inlineprotected |
References EIGEN_STATIC_ASSERT.
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator+= | ( | const Scalar & | scalar | ) |
References Eigen::internal::call_assignment().
Here is the call graph for this function:| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator-= | ( | const ArrayBase< OtherDerived > & | other | ) |
replaces *this by *this - other.
*this | EIGEN_DEVICE_FUNC Derived & Eigen::DenseBase< Derived >::operator-= | ( | const EigenBase< OtherDerived > & | other | ) |
|
inlineprotected |
References EIGEN_STATIC_ASSERT.
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator-= | ( | const Scalar & | scalar | ) |
References Eigen::internal::call_assignment().
Here is the call graph for this function:| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::ArrayBase< Derived >::operator/= | ( | const ArrayBase< OtherDerived > & | other | ) |
replaces *this by *this / other coefficient wise.
*this | EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::DenseBase< Derived >::operator/= | ( | const Scalar & | other | ) |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Convenient operator to set the coefficients of a matrix.
The coefficients must be provided in a row major order and exactly match the size of the matrix. Otherwise an assertion is raised.
Example:
Output:
|
inline |
Special case of the template operator=, in order to prevent the compiler from generating a default operator= (issue hit with g++ 4.1)
References Eigen::internal::call_assignment().
Here is the call graph for this function:| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::DenseBase< Derived >::operator= | ( | const DenseBase & | other | ) |
Special case of the template operator=, in order to prevent the compiler from generating a default operator= (issue hit with g++ 4.1)
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::DenseBase< Derived >::operator= | ( | const DenseBase< OtherDerived > & | other | ) |
Copies other into *this.
| EIGEN_DEVICE_FUNC Derived & Eigen::DenseBase< Derived >::operator= | ( | const EigenBase< OtherDerived > & | other | ) |
Copies the generic expression other into *this.
The expression must provide a (templated) evalTo(Derived& dst) const function which does the actual job. In practice, this allows any user to write its own special matrix without having to modify MatrixBase
| EIGEN_DEVICE_FUNC Derived & Eigen::DenseBase< Derived >::operator= | ( | const ReturnByValue< OtherDerived > & | func | ) |
| Derived & Eigen::DenseBase< Derived >::operator= | ( | const ReturnByValue< OtherDerived > & | other | ) |
|
inline |
Set all the entries to value.
References Eigen::DenseBase< Derived >::setConstant(), and Eigen::DenseBase< Derived >::value().
Here is the call graph for this function:
|
inlineinherited |
References Eigen::DenseBase< Derived >::IsRowMajor, and Eigen::DenseBase< Derived >::IsVectorAtCompileTime.
|
inherited |
Example:
Output:
References Eigen::Dynamic.
|
inlinestaticinherited |
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
This variant is only for fixed-size MatrixBase types. For dynamic-size types, you need to use the variants taking size arguments.
Example:
Output:
This expression has the "evaluate before nesting" flag so that it will be evaluated into a temporary matrix whenever it is nested in a larger expression. This prevents unexpected behavior with expressions involving random matrices.
\not_reentrant
|
inlinestaticinherited |
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
The parameters rows and cols are the number of rows and of columns of the returned matrix. Must be compatible with this MatrixBase type.
\not_reentrant
This variant is meant to be used for dynamic-size matrix types. For fixed-size types, it is redundant to pass rows and cols as arguments, so Random() should be used instead.
Example:
Output:
This expression has the "evaluate before nesting" flag so that it will be evaluated into a temporary matrix whenever it is nested in a larger expression. This prevents unexpected behavior with expressions involving random matrices.
See DenseBase::NullaryExpr(Index, const CustomNullaryOp&) for an example using C++11 random generators.
|
inlinestaticinherited |
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
The parameter size is the size of the returned vector. Must be compatible with this MatrixBase type.
\only_for_vectors \not_reentrant
This variant is meant to be used for dynamic-size vector types. For fixed-size types, it is redundant to pass size as argument, so Random() should be used instead.
Example:
Output:
This expression has the "evaluate before nesting" flag so that it will be evaluated into a temporary vector whenever it is nested in a larger expression. This prevents unexpected behavior with expressions involving random matrices.
|
inherited |
Referenced by Eigen::internal::member_redux< BinaryOp, Scalar >::operator()().
Here is the caller graph for this function:
|
inherited |
The template parameter BinaryOp is the type of the functor func which must be an associative operator. Both current C++98 and C++11 functor styles are handled.
References eigen_assert.
|
inherited |
|
inherited |
*this Example:
Output:
|
inlineinherited |
*this Example:
Output:
|
inlineinherited |
Only plain matrices/arrays, not expressions, may be resized; therefore the only useful resize methods are Matrix::resize() and Array::resize(). The present method only asserts that the new size equals the old size, and does nothing else.
References eigen_assert, and EIGEN_ONLY_USED_FOR_DEBUG.
Referenced by Eigen::TriangularBase< Derived >::evalToLazy(), igl::find(), and igl::slice_tets().
Here is the caller graph for this function:
|
inlineinherited |
Only plain matrices/arrays, not expressions, may be resized; therefore the only useful resize methods are Matrix::resize() and Array::resize(). The present method only asserts that the new size equals the old size, and does nothing else.
References eigen_assert, and EIGEN_ONLY_USED_FOR_DEBUG.
|
inlineinherited |
Example:
Output:
|
inlineinherited |
This is the const version of reverse().
|
inlineinherited |
This is the "in place" version of reverse: it reverses *this.
In most cases it is probably better to simply use the reversed expression of a matrix. However, when reversing the matrix data itself is really needed, then this "in-place" version is probably the right choice because it provides the following additional benefits:
References bottomRows(), col(), leftCols(), rightCols(), row(), tail(), and topRows().
Here is the call graph for this function:
|
inlineinherited |
|
inlineinherited |
Example:
Output:
Referenced by igl::normalize_row_sums(), and Eigen::umeyama().
Here is the caller graph for this function:
|
inlineinherited |
*this(i,j), and elseMatrix(i,j) otherwise.Example:
Output:
|
inlineinherited |
Version of DenseBase::select(const DenseBase&, const DenseBase&) with the else expression being a scalar value.
|
inlineinherited |
Version of DenseBase::select(const DenseBase&, const DenseBase&) with the then expression being a scalar value.
|
inherited |
Sets all coefficients in this expression to value val.
Referenced by Eigen::ArrayBase< Derived >::operator=().
Here is the caller graph for this function:
|
inherited |
Sets a linearly spaced vector.
The function fills *this with equally spaced values in the closed interval [low,high]. When size is set to 1, a vector of length 1 containing 'high' is returned.
\only_for_vectors
For integer scalar types, do not miss the explanations on the definition of even spacing .
References EIGEN_STATIC_ASSERT_VECTOR_ONLY.
|
inherited |
Sets a linearly spaced vector.
The function generates 'size' equally spaced values in the closed interval [low,high]. When size is set to 1, a vector of length 1 containing 'high' is returned.
\only_for_vectors
Example:
Output:
For integer scalar types, do not miss the explanations on the definition of even spacing .
References EIGEN_STATIC_ASSERT_VECTOR_ONLY.
|
inherited |
Sets all coefficients in this expression to one.
Example:
Output:
|
inlineinherited |
Sets all coefficients in this expression to random values.
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
\not_reentrant
Example:
Output:
|
inherited |
Sets all coefficients in this expression to zero.
Example:
Output:
Referenced by Eigen::SPQR< _MatrixType >::_solve_impl(), Eigen::PermutationBase< Derived >::evalTo(), and Eigen::InverseImpl< PermutationType, PermutationStorage >::evalTo().
Here is the caller graph for this function:
|
inherited |
*this If *this is empty, then the value 0 is returned.
References Eigen::Dynamic.
Referenced by igl::normalize_row_sums(), and Eigen::internal::lpNorm_selector< Derived, 1 >::run().
Here is the caller graph for this function:
|
inlineinherited |
swaps *this with the expression other.
References eigen_assert, and EIGEN_STATIC_ASSERT.
Referenced by Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run(), and Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().
Here is the caller graph for this function:
|
inlineinherited |
swaps *this with the matrix or array other.
References Eigen::PlainObjectBase< Derived >::cols(), eigen_assert, and Eigen::PlainObjectBase< Derived >::rows().
Here is the call graph for this function:
|
inherited |
|
inlineinherited |
Example:
Output:
Referenced by igl::AABB< DerivedV, DIM >::find(), igl::AABB< DerivedV, DIM >::init(), igl::project(), igl::signed_distance_winding_number(), and igl::unproject().
Here is the caller graph for this function:
|
inlineinherited |
This is the const version of transpose().
Make sure you read the warning for transpose() !
|
inlineinherited |
This is the "in place" version of transpose(): it replaces *this by its own transpose. Thus, doing
has the same effect on m as doing
and is faster and also safer because in the latter line of code, forgetting the eval() results in a bug caused by aliasing.
Notice however that this method is only useful if you want to replace a matrix by its own transpose. If you just need the transpose of a matrix, use transpose().
*this must be a resizable matrix. This excludes (non-square) fixed-size matrices, block-expressions and maps.References Eigen::Dynamic, and eigen_assert.
|
inlineinherited |
References eigen_assert, and EIGEN_STATIC_ASSERT_SIZE_1x1.
Referenced by igl::find(), and Eigen::ArrayBase< Derived >::operator=().
Here is the caller graph for this function:
|
inherited |
Applies the visitor visitor to the whole coefficients of the matrix or vector.
The template parameter Visitor is the type of the visitor and provides the following interface:
References Eigen::Dynamic, and EIGEN_UNROLLING_LIMIT.
|
staticinherited |
This variant is only for fixed-size MatrixBase types. For dynamic-size types, you need to use the variants taking size arguments.
Example:
Output:
|
staticinherited |
The parameters rows and cols are the number of rows and of columns of the returned matrix. Must be compatible with this MatrixBase type.
This variant is meant to be used for dynamic-size matrix types. For fixed-size types, it is redundant to pass rows and cols as arguments, so Zero() should be used instead.
Example:
Output:
|
staticinherited |
The parameter size is the size of the returned vector. Must be compatible with this MatrixBase type.
\only_for_vectors
This variant is meant to be used for dynamic-size vector types. For fixed-size types, it is redundant to pass size as argument, so Zero() should be used instead.
Example:
Output:
|
related |
Outputs the matrix, to the given stream.
If you wish to print the matrix with a format different than the default, use DenseBase::format().
It is also possible to change the default format by defining EIGEN_DEFAULT_IO_FORMAT before including Eigen headers. If not defined, this will automatically be defined to Eigen::IOFormat(), that is the Eigen::IOFormat with default parameters.
References EIGEN_DEFAULT_IO_FORMAT, and Eigen::internal::print_matrix().
Here is the call graph for this function:
|
related |
This function computes the coefficient-wise power.
Example:
Output:
|
related |
| ScalarExponent | is the scalar type of exponent. It must be compatible with the scalar type of the given expression (Derived::Scalar). |
|
related |
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:
References EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE.