#include <PlainObjectBase.h>
Classes | |
struct | StridedAlignedMapType |
struct | StridedConstAlignedMapType |
struct | StridedConstMapType |
struct | StridedMapType |
Public Types | |
enum | { Options = internal::traits<Derived>::Options } |
enum | { NeedsToAlign = (SizeAtCompileTime != Dynamic) && (internal::traits<Derived>::Alignment>0) } |
typedef Eigen::Map< Derived, AlignedMax > | AlignedMapType |
typedef internal::dense_xpr_base< Derived >::type | Base |
typedef Derived | DenseType |
typedef Eigen::Map< Derived, Unaligned > | MapType |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Attributes | |
const typedef Eigen::Map< const Derived, AlignedMax > | ConstAlignedMapType |
const typedef Eigen::Map< const Derived, Unaligned > | ConstMapType |
Protected Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase () |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const DenseBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const EigenBase< OtherDerived > &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const PlainObjectBase &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const ReturnByValue< OtherDerived > &other) |
Copy constructor with in-place evaluation. More... | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (Index size, Index rows, Index cols) |
EIGEN_DEVICE_FUNC | PlainObjectBase (internal::constructor_without_unaligned_array_assert) |
Protected Attributes | |
DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Options > | m_storage |
Map | |
These are convenience functions returning Map objects. The Map() static functions return unaligned Map objects, while the AlignedMap() functions return aligned Map objects and thus should be called only with 16-byte-aligned data pointers. Here is an example using strides: Matrix4i A;
A << 1, 2, 3, 4,
5, 6, 7, 8,
9, 10, 11, 12,
13, 14, 15, 16;
std::cout << Matrix2i::Map(&A(1,1),Stride<8,2>()) << std::endl;
Output:
| |
enum | { IsPlainObjectBase = 1 } |
template<typename MatrixTypeA , typename MatrixTypeB , bool SwapPointers> | |
struct | internal::matrix_swap_impl |
template<typename PlainObjectType , int MapOptions, typename StrideType > | |
class | Eigen::Map |
class | Eigen::Map< Derived, Unaligned > |
class | Eigen::Map< const Derived, Unaligned > |
EIGEN_DEVICE_FUNC Derived & | setConstant (Index size, const Scalar &val) |
EIGEN_DEVICE_FUNC Derived & | setConstant (Index rows, Index cols, const Scalar &val) |
EIGEN_DEVICE_FUNC Derived & | setConstant (NoChange_t, Index cols, const Scalar &val) |
EIGEN_DEVICE_FUNC Derived & | setConstant (Index rows, NoChange_t, const Scalar &val) |
EIGEN_DEVICE_FUNC Derived & | setZero (Index size) |
EIGEN_DEVICE_FUNC Derived & | setZero (Index rows, Index cols) |
EIGEN_DEVICE_FUNC Derived & | setZero (NoChange_t, Index cols) |
EIGEN_DEVICE_FUNC Derived & | setZero (Index rows, NoChange_t) |
EIGEN_DEVICE_FUNC Derived & | setOnes (Index size) |
EIGEN_DEVICE_FUNC Derived & | setOnes (Index rows, Index cols) |
EIGEN_DEVICE_FUNC Derived & | setOnes (NoChange_t, Index cols) |
EIGEN_DEVICE_FUNC Derived & | setOnes (Index rows, NoChange_t) |
Derived & | setRandom (Index size) |
Derived & | setRandom (Index rows, Index cols) |
Derived & | setRandom (NoChange_t, Index cols) |
Derived & | setRandom (Index rows, NoChange_t) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | swap (DenseBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | swap (DenseBase< OtherDerived > const &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _resize_to_match (const EigenBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | _set (const DenseBase< OtherDerived > &other) |
Copies the value of the expression other into *this with automatic resizing. More... | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | _set_noalias (const DenseBase< OtherDerived > &other) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (Index rows, Index cols, typename internal::enable_if< Base::SizeAtCompileTime!=2, T0 >::type *=0) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (const T0 &val0, const T1 &val1, typename internal::enable_if< Base::SizeAtCompileTime==2, T0 >::type *=0) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (const Index &val0, const Index &val1, typename internal::enable_if<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< T0, Index >::value) &&(internal::is_same< T1, Index >::value) &&Base::SizeAtCompileTime==2, T1 >::type *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (Index size, typename internal::enable_if<(Base::SizeAtCompileTime!=1||!internal::is_convertible< T, Scalar >::value) &&((!internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value||Base::SizeAtCompileTime==Dynamic)), T >::type *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar &val0, typename internal::enable_if< Base::SizeAtCompileTime==1 &&internal::is_convertible< T, Scalar >::value, T >::type *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Index &val0, typename internal::enable_if<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< Index, T >::value) &&Base::SizeAtCompileTime==1 &&internal::is_convertible< T, Scalar >::value, T * >::type *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar *data) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const DenseBase< OtherDerived > &other) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Derived &other) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const EigenBase< OtherDerived > &other) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const ReturnByValue< OtherDerived > &other) |
template<typename T , typename OtherDerived , int ColsAtCompileTime> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const RotationBase< OtherDerived, ColsAtCompileTime > &r) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar &val0, typename internal::enable_if< Base::SizeAtCompileTime!=Dynamic &&Base::SizeAtCompileTime!=1 &&internal::is_convertible< T, Scalar >::value &&internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value, T >::type *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Index &val0, typename internal::enable_if<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< Index, T >::value) &&Base::SizeAtCompileTime!=Dynamic &&Base::SizeAtCompileTime!=1 &&internal::is_convertible< T, Scalar >::value &&internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value, T * >::type *=0) |
static ConstMapType | Map (const Scalar *data) |
static MapType | Map (Scalar *data) |
static ConstMapType | Map (const Scalar *data, Index size) |
static MapType | Map (Scalar *data, Index size) |
static ConstMapType | Map (const Scalar *data, Index rows, Index cols) |
static MapType | Map (Scalar *data, Index rows, Index cols) |
static ConstAlignedMapType | MapAligned (const Scalar *data) |
static AlignedMapType | MapAligned (Scalar *data) |
static ConstAlignedMapType | MapAligned (const Scalar *data, Index size) |
static AlignedMapType | MapAligned (Scalar *data, Index size) |
static ConstAlignedMapType | MapAligned (const Scalar *data, Index rows, Index cols) |
static AlignedMapType | MapAligned (Scalar *data, Index rows, Index cols) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _check_template_params () |
Definition at line 98 of file PlainObjectBase.h.
typedef Eigen::Map<Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::AlignedMapType |
Definition at line 123 of file PlainObjectBase.h.
typedef internal::dense_xpr_base<Derived>::type Eigen::PlainObjectBase< Derived >::Base |
Definition at line 103 of file PlainObjectBase.h.
typedef Derived Eigen::PlainObjectBase< Derived >::DenseType |
Definition at line 110 of file PlainObjectBase.h.
typedef Eigen::Map<Derived, Unaligned> Eigen::PlainObjectBase< Derived >::MapType |
Definition at line 121 of file PlainObjectBase.h.
typedef internal::packet_traits<Scalar>::type Eigen::PlainObjectBase< Derived >::PacketScalar |
Definition at line 108 of file PlainObjectBase.h.
typedef NumTraits<Scalar>::Real Eigen::PlainObjectBase< Derived >::RealScalar |
Definition at line 109 of file PlainObjectBase.h.
typedef internal::traits<Derived>::Scalar Eigen::PlainObjectBase< Derived >::Scalar |
Definition at line 106 of file PlainObjectBase.h.
typedef internal::traits<Derived>::StorageKind Eigen::PlainObjectBase< Derived >::StorageKind |
Definition at line 105 of file PlainObjectBase.h.
anonymous enum |
Enumerator | |
---|---|
Options |
Definition at line 102 of file PlainObjectBase.h.
anonymous enum |
Enumerator | |
---|---|
NeedsToAlign |
Definition at line 134 of file PlainObjectBase.h.
anonymous enum |
Enumerator | |
---|---|
IsPlainObjectBase |
Definition at line 982 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 476 of file PlainObjectBase.h.
|
inlineexplicitprotected |
Definition at line 486 of file PlainObjectBase.h.
|
inlineprotected |
Copy constructor
Definition at line 511 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 514 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 589 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 600 of file PlainObjectBase.h.
|
inlineprotected |
Copy constructor with in-place evaluation.
Definition at line 610 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 968 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 882 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 889 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 896 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 930 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 862 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 902 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 910 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 918 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 853 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 875 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 839 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 824 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 815 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 803 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 747 of file PlainObjectBase.h.
|
inlineprotected |
Copies the value of the expression other into *this
with automatic resizing.
*this might be resized to match the dimensions of other. If *this was a null matrix (not already initialized), it will be initialized.
Note that copying a row-vector into a vector (and conversely) is allowed. The resizing, if any, is then done in the appropriate way so that row-vectors remain row-vectors and vectors remain vectors.
Definition at line 777 of file PlainObjectBase.h.
|
inlineprotected |
Definition at line 790 of file PlainObjectBase.h.
|
inline |
Definition at line 138 of file PlainObjectBase.h.
|
inline |
Definition at line 140 of file PlainObjectBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
Definition at line 165 of file PlainObjectBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index,Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
Definition at line 152 of file PlainObjectBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index) const for details.
Definition at line 188 of file PlainObjectBase.h.
|
inline |
This is the const version of coeffRef(Index) which is thus synonym of coeff(Index). It is provided for convenience.
Definition at line 207 of file PlainObjectBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,Index) const for details.
Definition at line 175 of file PlainObjectBase.h.
|
inline |
This is the const version of coeffRef(Index,Index) which is thus synonym of coeff(Index,Index). It is provided for convenience.
Definition at line 196 of file PlainObjectBase.h.
|
inline |
Definition at line 145 of file PlainObjectBase.h.
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
The method is intended for matrices of dynamic size. If you only want to change the number of rows and/or of columns, you can use conservativeResize(NoChange_t, Index) or conservativeResize(Index, NoChange_t).
Matrices are resized relative to the top-left element. In case values need to be appended to the matrix they will be uninitialized.
Definition at line 382 of file PlainObjectBase.h.
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
As opposed to conservativeResize(Index rows, Index cols), this version leaves the number of columns unchanged.
In case the matrix is growing, new rows will be uninitialized.
Definition at line 395 of file PlainObjectBase.h.
|
inline |
Resizes the vector to size while retaining old values.
\only_for_vectors. This method does not work for partially dynamic matrices when the static dimension is anything other than 1. For example it will not work with Matrix<double, 2, Dynamic>.
When values are appended, they will be uninitialized.
Definition at line 424 of file PlainObjectBase.h.
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
As opposed to conservativeResize(Index rows, Index cols), this version leaves the number of rows unchanged.
In case the matrix is growing, new columns will be uninitialized.
Definition at line 409 of file PlainObjectBase.h.
|
inline |
Resizes the matrix to rows x cols of other
, while leaving old values untouched.
The method is intended for matrices of dynamic size. If you only want to change the number of rows and/or of columns, you can use conservativeResize(NoChange_t, Index) or conservativeResize(Index, NoChange_t).
Matrices are resized relative to the top-left element. In case values need to be appended to the matrix they will copied from other
.
Definition at line 440 of file PlainObjectBase.h.
|
inline |
Definition at line 251 of file PlainObjectBase.h.
|
inline |
Definition at line 247 of file PlainObjectBase.h.
|
inline |
Definition at line 457 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 644 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 671 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 652 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 683 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 648 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 677 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 646 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 674 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 654 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 686 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 650 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 680 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 657 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 690 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 665 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 702 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 661 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 696 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 659 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 693 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 667 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 705 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 663 of file PlainObjectBase.h.
|
inlinestatic |
Definition at line 699 of file PlainObjectBase.h.
|
inline |
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
Definition at line 625 of file PlainObjectBase.h.
|
inline |
This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.
Definition at line 449 of file PlainObjectBase.h.
|
inline |
Definition at line 465 of file PlainObjectBase.h.
|
inline |
Definition at line 224 of file PlainObjectBase.h.
|
inline |
Definition at line 214 of file PlainObjectBase.h.
|
inline |
Resizes *this
to a rows x cols matrix.
This method is intended for dynamic-size matrices, although it is legal to call it on any matrix as long as fixed dimensions are left unchanged. If you only want to change the number of rows and/or of columns, you can use resize(NoChange_t, Index), resize(Index, NoChange_t).
If the current number of coefficients of *this
exactly matches the product rows * cols, then no memory allocation is performed and the current values are left unchanged. In all other cases, including shrinking, the data is reallocated and all previous values are lost.
Example:
Output:
Definition at line 271 of file PlainObjectBase.h.
|
inline |
Resizes the matrix, changing only the number of rows. For the parameter of type NoChange_t, just pass the special value NoChange
as in the example below.
Example:
Output:
Definition at line 340 of file PlainObjectBase.h.
|
inline |
Resizes *this
to a vector of length size
\only_for_vectors. This method does not work for partially dynamic matrices when the static dimension is anything other than 1. For example it will not work with Matrix<double, 2, Dynamic>.
Example:
Output:
Definition at line 301 of file PlainObjectBase.h.
|
inline |
Resizes the matrix, changing only the number of columns. For the parameter of type NoChange_t, just pass the special value NoChange
as in the example below.
Example:
Output:
Definition at line 326 of file PlainObjectBase.h.
|
inline |
Resizes *this
to have the same dimensions as other. Takes care of doing all the checking that's needed.
Note that copying a row-vector into a vector (and conversely) is allowed. The resizing, if any, is then done in the appropriate way so that row-vectors remain row-vectors and vectors remain vectors.
Definition at line 354 of file PlainObjectBase.h.
|
inline |
Definition at line 143 of file PlainObjectBase.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | rows, |
Index | cols, | ||
const Scalar & | val | ||
) |
Resizes to the given size, and sets all coefficients in this expression to the given value val.
rows | the new number of rows |
cols | the new number of columns |
val | the value to which all coefficients are set |
Example:
Output:
Definition at line 380 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | rows, |
NoChange_t | , | ||
const Scalar & | val | ||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to the given value val. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 407 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | size, |
const Scalar & | val | ||
) |
Resizes to the given size, and sets all coefficients in this expression to the given value val.
\only_for_vectors
Example:
Output:
Definition at line 361 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | NoChange_t | , |
Index | cols, | ||
const Scalar & | val | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to the given value val. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 394 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and sets all coefficients in this expression to one.
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
Definition at line 732 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to one. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 746 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | newSize | ) |
Resizes to the given newSize, and sets all coefficients in this expression to one.
\only_for_vectors
Example:
Output:
Definition at line 714 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to one. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 759 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and 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
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to random values. For the parameter of type NoChange_t, just pass the special value NoChange
.
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
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | newSize | ) |
Resizes to the given newSize, and 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.
\only_for_vectors \not_reentrant
Example:
Output:
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to random values. For the parameter of type NoChange_t, just pass the special value NoChange
.
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
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and sets all coefficients in this expression to zero.
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
Definition at line 580 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to zero. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 607 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | newSize | ) |
Resizes to the given size, and sets all coefficients in this expression to zero.
\only_for_vectors
Example:
Output:
Definition at line 562 of file CwiseNullaryOp.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to zero. For the parameter of type NoChange_t, just pass the special value NoChange
.
Definition at line 594 of file CwiseNullaryOp.h.
|
inline |
Definition at line 953 of file PlainObjectBase.h.
|
inline |
Definition at line 964 of file PlainObjectBase.h.
|
inline |
Definition at line 241 of file PlainObjectBase.h.
|
inline |
Definition at line 231 of file PlainObjectBase.h.
|
friend |
Definition at line 987 of file PlainObjectBase.h.
|
friend |
Definition at line 989 of file PlainObjectBase.h.
|
friend |
Definition at line 988 of file PlainObjectBase.h.
|
friend |
Definition at line 942 of file PlainObjectBase.h.
const typedef Eigen::Map<const Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::ConstAlignedMapType |
Definition at line 124 of file PlainObjectBase.h.
const typedef Eigen::Map<const Derived, Unaligned> Eigen::PlainObjectBase< Derived >::ConstMapType |
Definition at line 122 of file PlainObjectBase.h.
|
protected |
Definition at line 131 of file PlainObjectBase.h.