![]() |
Prusa Slicer 2.6.0
|
Expression of a mathematical vector or matrix as an array object. More...
#include <src/eigen/Eigen/src/Core/ArrayWrapper.h>
Inheritance diagram for Eigen::ArrayWrapper< ExpressionType >:
Collaboration diagram for Eigen::ArrayWrapper< ExpressionType >:Public Member Functions | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | ArrayWrapper (ExpressionType &matrix) |
| EIGEN_DEVICE_FUNC Index | rows () const |
| EIGEN_DEVICE_FUNC Index | cols () const |
| EIGEN_DEVICE_FUNC Index | outerStride () const |
| EIGEN_DEVICE_FUNC Index | innerStride () const |
| EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue * | data () |
| EIGEN_DEVICE_FUNC const Scalar * | data () const |
| EIGEN_DEVICE_FUNC const Scalar & | coeffRef (Index rowId, Index colId) const |
| EIGEN_DEVICE_FUNC const Scalar & | coeffRef (Index index) const |
| template<typename Dest > | |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
| const internal::remove_all< NestedExpressionType >::type &EIGEN_DEVICE_FUNC | nestedExpression () const |
| EIGEN_DEVICE_FUNC void | resize (Index newSize) |
| EIGEN_DEVICE_FUNC void | resize (Index rows, Index cols) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator+= (const Scalar &scalar) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator+= (const ArrayBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC ArrayWrapper< ExpressionType > & | operator+= (const EigenBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator-= (const Scalar &scalar) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator-= (const ArrayBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC ArrayWrapper< ExpressionType > & | operator-= (const EigenBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator*= (const ArrayBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator*= (const Scalar &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator/= (const ArrayBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | operator/= (const Scalar &other) |
| EIGEN_DEVICE_FUNC ArrayBase< ArrayWrapper< ExpressionType > > & | array () |
| EIGEN_DEVICE_FUNC const ArrayBase< ArrayWrapper< ExpressionType > > & | array () const |
| EIGEN_DEVICE_FUNC MatrixWrapper< ArrayWrapper< ExpressionType > > | matrix () |
| EIGEN_DEVICE_FUNC const MatrixWrapper< const ArrayWrapper< ExpressionType > > | matrix () const |
| EIGEN_DEVICE_FUNC ArrayWrapper< ExpressionType > & | lazyAssign (const DenseBase< OtherDerived > &other) |
| EIGEN_STRONG_INLINE ArrayWrapper< ExpressionType > & | lazyAssign (const DenseBase< OtherDerived > &other) |
| EIGEN_DEVICE_FUNC Index | nonZeros () const |
| EIGEN_DEVICE_FUNC Index | outerSize () const |
| EIGEN_DEVICE_FUNC Index | innerSize () const |
| 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 () |
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 | |
| ArrayWrapper< ExpressionType > & | operator+= (const MatrixBase< OtherDerived > &) |
| ArrayWrapper< ExpressionType > & | operator-= (const MatrixBase< OtherDerived > &) |
Protected Attributes | |
| NestedExpressionType | m_expression |
Related Symbols | |
(Note that these are not member symbols.) | |
| internal::enable_if<!(internal::is_same< typenameDerived::Scalar, ScalarExponent >::value)&&EIGEN_SCALAR_BINARY_SUPPORTED(pow, typenameDerived::Scalar, ScalarExponent), constEIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(ArrayWrapper< ExpressionType >, ScalarExponent, pow)>::type | pow (const Eigen::ArrayBase< ArrayWrapper< ExpressionType > > &x, const ScalarExponent &exponent) |
| const Eigen::CwiseBinaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar, typename ExponentDerived::Scalar >, const ArrayWrapper< ExpressionType >, const ExponentDerived > | pow (const Eigen::ArrayBase< ArrayWrapper< ExpressionType > > &x, const Eigen::ArrayBase< ExponentDerived > &exponents) |
| 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, ArrayWrapper< ExpressionType >, pow)>::type | pow (const Scalar &x, const Eigen::ArrayBase< ArrayWrapper< ExpressionType > > &exponents) |
| template<typename Derived > | |
| std::ostream & | operator<< (std::ostream &s, const DenseBase< Derived > &m) |
Expression of a mathematical vector or matrix as an array object.
This class is the return type of MatrixBase::array(), and most of the time this is the only way it is use.
| typedef ArrayBase<ArrayWrapper> Eigen::ArrayWrapper< ExpressionType >::Base |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Inner iterator type to iterate over the coefficients of a row or column.
| typedef internal::remove_all<ExpressionType>::type Eigen::ArrayWrapper< ExpressionType >::NestedExpression |
| typedef internal::ref_selector<ExpressionType>::non_const_type Eigen::ArrayWrapper< ExpressionType >::NestedExpressionType |
|
inherited |
|
inherited |
The plain array type corresponding to this expression.
|
inherited |
The plain matrix type corresponding to this expression.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| typedef internal::conditional<internal::is_lvalue<ExpressionType>::value,Scalar,constScalar>::type Eigen::ArrayWrapper< ExpressionType >::ScalarWithConstIfNotLvalue |
|
inherited |
|
inherited |
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
|
inherited |
|
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 | |
|
inlineexplicit |
|
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.
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inline |
References Eigen::ArrayWrapper< ExpressionType >::m_expression.
Referenced by Eigen::ArrayWrapper< ExpressionType >::resize().
Here is the caller graph for this function:
|
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 |
|
inline |
|
inline |
|
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.
|
inline |
References Eigen::ArrayWrapper< ExpressionType >::m_expression.
|
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.
|
inline |
|
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:
|
inherited |
|
inherited |
|
staticinherited |
Special version for fixed size types which does not require the size parameter.
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 |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
inline |
|
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:
|
inherited |
replaces *this by *this * other coefficient wise.
*this
|
inherited |
|
inherited |
replaces *this by *this + other.
*this
|
inherited |
|
inlineprotectedinherited |
|
inherited |
|
inherited |
replaces *this by *this - other.
*this
|
inherited |
|
inlineprotectedinherited |
|
inherited |
|
inherited |
replaces *this by *this / other coefficient wise.
*this
|
inherited |
|
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:
|
inlineinherited |
References Eigen::DenseBase< Derived >::IsRowMajor, and Eigen::DenseBase< Derived >::IsVectorAtCompileTime.
|
inline |
|
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:
|
inline |
Forwards the resizing request to the nested expression
References Eigen::ArrayWrapper< ExpressionType >::m_expression.
|
inline |
Forwards the resizing request to the nested expression
References Eigen::ArrayWrapper< ExpressionType >::cols(), Eigen::ArrayWrapper< ExpressionType >::m_expression, and Eigen::ArrayWrapper< ExpressionType >::rows().
Here is the call graph for this function:
|
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:
|
inline |
References Eigen::ArrayWrapper< ExpressionType >::m_expression.
Referenced by Eigen::ArrayWrapper< ExpressionType >::resize().
Here is the caller 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:
|
protected |
Referenced by Eigen::ArrayWrapper< ExpressionType >::coeffRef(), Eigen::ArrayWrapper< ExpressionType >::coeffRef(), Eigen::ArrayWrapper< ExpressionType >::cols(), Eigen::ArrayWrapper< ExpressionType >::data(), Eigen::ArrayWrapper< ExpressionType >::data(), Eigen::ArrayWrapper< ExpressionType >::evalTo(), Eigen::ArrayWrapper< ExpressionType >::innerStride(), Eigen::ArrayWrapper< ExpressionType >::nestedExpression(), Eigen::ArrayWrapper< ExpressionType >::outerStride(), Eigen::ArrayWrapper< ExpressionType >::resize(), Eigen::ArrayWrapper< ExpressionType >::resize(), and Eigen::ArrayWrapper< ExpressionType >::rows().