#include <PlainObjectBase.h>
Inherits type< Derived >.
Inherited by Eigen::Array< bool, Eigen::Dynamic, 1 >, Eigen::Array< double, DPARM_SIZE, 1 >, Eigen::Array< double, UMFPACK_CONTROL, 1 >, Eigen::Array< double, UMFPACK_INFO, 1 >, Eigen::Array< Index, 1, Dynamic >, Eigen::Array< int, IPARM_SIZE, 1 >, Eigen::Array< RealScalar, Dynamic, 1 >, Eigen::Array< Scalar, Eigen::Dynamic, 1 >, Eigen::Array< StorageIndex, 2, 1 >, Eigen::Array< StorageIndex, 64, 1, DontAlign >, Eigen::Array< unsigned char, Eigen::Dynamic, 1 >, Eigen::Matrix< Complex, Eigen::Dynamic, 1 >, Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< ComplexScalar, ColsAtCompileTime, 1, Options &(~RowMajor), MaxColsAtCompileTime, 1 >, Eigen::Matrix< ComplexScalar, ColsAtCompileTime, 1, Options &~RowMajor, MaxColsAtCompileTime, 1 >, Eigen::Matrix< ComplexScalar, Dynamic, Dynamic, 0, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime >, Eigen::Matrix< ComplexScalar, RowsAtCompileTime, ColsAtCompileTime, Options, MaxRowsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< double, -1, -1 >, Eigen::Matrix< double, -1, 1 >, Eigen::Matrix< double, 1, -1 >, Eigen::Matrix< double, 12, 1 >, Eigen::Matrix< double, 15, 15 >, Eigen::Matrix< double, 9, 3 >, Eigen::Matrix< double, 9, 9 >, Eigen::Matrix< double, dim, 1 >, Eigen::Matrix< double, Dim, 1 >, Eigen::Matrix< double, N, 1 >, Eigen::Matrix< double, N, N >, Eigen::Matrix< double, Rot::dimension, Rot::dimension >, Eigen::Matrix< Eigen::Triplet, N, 1, Eigen::DontAlign >, Eigen::Matrix< float, 16, 1 >, Eigen::Matrix< Index, Eigen::Dynamic, 1 >, Eigen::Matrix< int, 1, MatrixType::ColsAtCompileTime >, Eigen::Matrix< int, MatrixType::RowsAtCompileTime, 1 >, Eigen::Matrix< RealScalar, Dynamic, 1 >, Eigen::Matrix< RealScalar, Dynamic, Dynamic, ColMajor >, Eigen::Matrix< RootType, _Deg, 1 >, Eigen::Matrix< Scalar, 1, RowsAtCompileTime, RowMajor, 1, MaxRowsAtCompileTime >, Eigen::Matrix< Scalar, 1, Size, int(Options)|int(RowMajor), 1, MaxSize >, Eigen::Matrix< Scalar, 3, 1 >, Eigen::Matrix< Scalar, 3, Eigen::Dynamic >, Eigen::Matrix< Scalar, AmbientDimAtCompileTime, 1 >, Eigen::Matrix< Scalar, AmbientDimAtCompileTime, 1, Options >, Eigen::Matrix< Scalar, ColsAtCompileTime, 1, Options &~RowMajor, MaxColsAtCompileTime, 1 >, Eigen::Matrix< Scalar, ColsAtCompileTime, ColsAtCompileTime, MatrixOptions, MaxColsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< Scalar, Deg, 1 >, Eigen::Matrix< Scalar, Deg_1, 1 >, Eigen::Matrix< Scalar, DiagSizeAtCompileTime, DiagSizeAtCompileTime, MatrixOptions, MaxDiagSizeAtCompileTime, MaxDiagSizeAtCompileTime >, Eigen::Matrix< Scalar, Dim, 1 >, Eigen::Matrix< Scalar, Dynamic, 1 >, Eigen::Matrix< Scalar, Dynamic, Dynamic >, Eigen::Matrix< Scalar, Eigen::Dynamic, 1 >, Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< Scalar, Index(AmbientDimAtCompileTime)==Dynamic ? Dynamic :Index(AmbientDimAtCompileTime)+1, 1, Options >, Eigen::Matrix< Scalar, RowsAtCompileTime, 1, 0, MaxRowsAtCompileTime, 1 >, Eigen::Matrix< Scalar, RowsAtCompileTime, RowsAtCompileTime, MatrixOptions, MaxRowsAtCompileTime, MaxRowsAtCompileTime >, Eigen::Matrix< Scalar, Size, Size, ColMajor, MaxColsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< Scalar, SizeMinusOne, 1, Options &~RowMajor, MaxSizeMinusOne, 1 >, Eigen::Matrix< StorageIndex, 1, EIGEN_SIZE_MIN_PREFER_DYNAMIC(ColsAtCompileTime, RowsAtCompileTime), RowMajor, 1, EIGEN_SIZE_MIN_PREFER_FIXED(MaxColsAtCompileTime, MaxRowsAtCompileTime)>, Eigen::Matrix< StorageIndex, Dynamic, 1 >, and Eigen::Matrix< StorageIndex, MatrixType::RowsAtCompileTime, 1 >.
|
EIGEN_DEVICE_FUNC Base & | base () |
|
EIGEN_DEVICE_FUNC const Base & | base () const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (Index rowId, Index colId) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (Index index) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index rowId, Index colId) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index index) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeffRef (Index rowId, Index colId) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeffRef (Index index) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | conservativeResize (Index rows, Index cols) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | conservativeResize (Index rows, NoChange_t) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | conservativeResize (NoChange_t, Index cols) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | conservativeResize (Index size) |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | conservativeResizeLike (const DenseBase< OtherDerived > &other) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * | data () const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * | data () |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const PlainObjectBase &other) |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const ReturnByValue< OtherDerived > &func) |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const EigenBase< OtherDerived > &other) |
| Copies the generic expression other into *this. More...
|
|
template<int LoadMode> |
EIGEN_STRONG_INLINE PacketScalar | packet (Index rowId, Index colId) const |
|
template<int LoadMode> |
EIGEN_STRONG_INLINE PacketScalar | packet (Index index) const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | resize (Index rows, Index cols) |
|
EIGEN_DEVICE_FUNC void | resize (Index size) |
|
EIGEN_DEVICE_FUNC void | resize (NoChange_t, Index cols) |
|
EIGEN_DEVICE_FUNC void | resize (Index rows, NoChange_t) |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | resizeLike (const EigenBase< OtherDerived > &_other) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
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 & | 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) |
|
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) |
|
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<int StoreMode> |
EIGEN_STRONG_INLINE void | writePacket (Index rowId, Index colId, const PacketScalar &val) |
|
template<int StoreMode> |
EIGEN_STRONG_INLINE void | writePacket (Index index, const PacketScalar &val) |
|
|
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _check_template_params () |
|
|
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: - See also
- class Map
|
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) |
|
|
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) |
|
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 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) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase () |
|
EIGEN_DEVICE_FUNC | PlainObjectBase (internal::constructor_without_unaligned_array_assert) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const PlainObjectBase &other) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (Index size, Index rows, Index cols) |
|
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) |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const ReturnByValue< OtherDerived > &other) |
| Copy constructor with in-place evaluation. More...
|
|
template<typename Derived>
class Eigen::PlainObjectBase< Derived >
Definition at line 98 of file PlainObjectBase.h.
◆ AlignedMapType
template<typename Derived>
◆ Base
template<typename Derived>
◆ ConstAlignedMapType
template<typename Derived>
◆ ConstMapType
template<typename Derived>
◆ DenseType
template<typename Derived>
◆ MapType
template<typename Derived>
◆ PacketScalar
template<typename Derived>
◆ RealScalar
template<typename Derived>
◆ Scalar
template<typename Derived>
◆ StorageKind
template<typename Derived>
◆ anonymous enum
template<typename Derived>
◆ anonymous enum
template<typename Derived>
◆ anonymous enum
template<typename Derived>
◆ PlainObjectBase() [1/7]
template<typename Derived>
◆ PlainObjectBase() [2/7]
template<typename Derived>
◆ PlainObjectBase() [3/7]
template<typename Derived>
◆ PlainObjectBase() [4/7]
template<typename Derived>
◆ PlainObjectBase() [5/7]
template<typename Derived>
template<typename OtherDerived >
◆ PlainObjectBase() [6/7]
template<typename Derived>
template<typename OtherDerived >
◆ PlainObjectBase() [7/7]
template<typename Derived>
template<typename OtherDerived >
◆ _check_template_params()
template<typename Derived>
◆ _init1() [1/11]
template<typename Derived>
template<typename T >
◆ _init1() [2/11]
template<typename Derived>
template<typename T >
◆ _init1() [3/11]
template<typename Derived>
template<typename T >
◆ _init1() [4/11]
template<typename Derived>
template<typename T >
◆ _init1() [5/11]
template<typename Derived>
template<typename T , typename OtherDerived >
◆ _init1() [6/11]
template<typename Derived>
template<typename T >
◆ _init1() [7/11]
template<typename Derived>
template<typename T , typename OtherDerived >
◆ _init1() [8/11]
template<typename Derived>
template<typename T , typename OtherDerived >
◆ _init1() [9/11]
template<typename Derived>
template<typename T , typename OtherDerived , int ColsAtCompileTime>
◆ _init1() [10/11]
template<typename Derived>
template<typename T >
◆ _init1() [11/11]
template<typename Derived>
template<typename T >
◆ _init2() [1/3]
template<typename Derived>
template<typename T0 , typename T1 >
◆ _init2() [2/3]
template<typename Derived>
template<typename T0 , typename T1 >
◆ _init2() [3/3]
template<typename Derived>
template<typename T0 , typename T1 >
◆ _resize_to_match()
template<typename Derived>
template<typename OtherDerived >
◆ _set()
template<typename Derived>
template<typename OtherDerived >
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.
- See also
- operator=(const MatrixBase<OtherDerived>&), _set_noalias()
Definition at line 777 of file PlainObjectBase.h.
◆ _set_noalias()
template<typename Derived>
template<typename OtherDerived >
◆ base() [1/2]
template<typename Derived>
◆ base() [2/2]
template<typename Derived>
◆ coeff() [1/2]
template<typename Derived>
◆ coeff() [2/2]
template<typename Derived>
◆ coeffRef() [1/4]
template<typename Derived>
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.
◆ coeffRef() [2/4]
template<typename Derived>
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.
◆ coeffRef() [3/4]
template<typename Derived>
◆ coeffRef() [4/4]
template<typename Derived>
◆ cols()
template<typename Derived>
◆ conservativeResize() [1/4]
template<typename Derived>
◆ conservativeResize() [2/4]
template<typename Derived>
◆ conservativeResize() [3/4]
template<typename Derived>
◆ conservativeResize() [4/4]
template<typename Derived>
Resizes the vector to size while retaining old values.
. 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.
◆ conservativeResizeLike()
template<typename Derived>
template<typename OtherDerived >
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.
◆ data() [1/2]
template<typename Derived>
- Returns
- a const pointer to the data array of this matrix
Definition at line 247 of file PlainObjectBase.h.
◆ data() [2/2]
template<typename Derived>
◆ lazyAssign()
template<typename Derived>
template<typename OtherDerived >
◆ Map() [1/12]
template<typename Derived>
◆ Map() [2/12]
template<typename Derived>
◆ Map() [3/12]
template<typename Derived>
◆ Map() [4/12]
template<typename Derived>
◆ Map() [5/12]
template<typename Derived>
◆ Map() [6/12]
template<typename Derived>
◆ Map() [7/12]
template<typename Derived>
template<int Outer, int Inner>
◆ Map() [8/12]
template<typename Derived>
template<int Outer, int Inner>
◆ Map() [9/12]
template<typename Derived>
template<int Outer, int Inner>
◆ Map() [10/12]
template<typename Derived>
template<int Outer, int Inner>
◆ Map() [11/12]
template<typename Derived>
template<int Outer, int Inner>
◆ Map() [12/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [1/12]
template<typename Derived>
◆ MapAligned() [2/12]
template<typename Derived>
◆ MapAligned() [3/12]
template<typename Derived>
◆ MapAligned() [4/12]
template<typename Derived>
◆ MapAligned() [5/12]
template<typename Derived>
◆ MapAligned() [6/12]
template<typename Derived>
◆ MapAligned() [7/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [8/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [9/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [10/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [11/12]
template<typename Derived>
template<int Outer, int Inner>
◆ MapAligned() [12/12]
template<typename Derived>
template<int Outer, int Inner>
◆ operator=() [1/3]
template<typename Derived>
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.
◆ operator=() [2/3]
template<typename Derived>
template<typename OtherDerived >
◆ operator=() [3/3]
template<typename Derived>
template<typename OtherDerived >
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
- Returns
- a reference to *this.
Definition at line 625 of file PlainObjectBase.h.
◆ packet() [1/2]
template<typename Derived>
template<int LoadMode>
◆ packet() [2/2]
template<typename Derived>
template<int LoadMode>
◆ resize() [1/4]
template<typename Derived>
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:
m << 1,2,3,4,5,6;
cout << "here's the 2x3 matrix m:" << endl << m << endl;
cout << "let's resize m to 3x2. This is a conservative resizing because 2*3==3*2." << endl;
m.resize(3,2);
cout << "here's the 3x2 matrix m:" << endl << m << endl;
cout << "now let's resize m to size 2x2. This is NOT a conservative resizing, so it becomes uninitialized:" << endl;
m.resize(2,2);
cout << m << endl;
Output:
- See also
- resize(Index) for vectors, resize(NoChange_t, Index), resize(Index, NoChange_t)
Definition at line 271 of file PlainObjectBase.h.
◆ resize() [2/4]
template<typename Derived>
Resizes *this
to a vector of length size
. 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:
v.resize(3);
w.resize(3);
cout << "v: " << v.rows() << " rows, " << v.cols() << " cols" << endl;
cout << "w: " << w.rows() << " rows, " << w.cols() << " cols" << endl;
Output:
- See also
- resize(Index,Index), resize(NoChange_t, Index), resize(Index, NoChange_t)
Definition at line 301 of file PlainObjectBase.h.
◆ resize() [3/4]
template<typename Derived>
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:
cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl;
Output:
- See also
- resize(Index,Index)
Definition at line 326 of file PlainObjectBase.h.
◆ resize() [4/4]
template<typename Derived>
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:
cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl;
Output:
- See also
- resize(Index,Index)
Definition at line 340 of file PlainObjectBase.h.
◆ resizeLike()
template<typename Derived>
template<typename OtherDerived >
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.
◆ rows()
template<typename Derived>
◆ setConstant() [1/4]
template<typename Derived >
◆ setConstant() [2/4]
template<typename Derived >
◆ setConstant() [3/4]
template<typename Derived >
◆ setConstant() [4/4]
template<typename Derived >
◆ setOnes() [1/4]
template<typename Derived >
◆ setOnes() [2/4]
template<typename Derived >
◆ setOnes() [3/4]
template<typename Derived >
◆ setOnes() [4/4]
template<typename Derived >
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
.
- See also
- MatrixBase::setOnes(), setOnes(Index), setOnes(Index, Index), setOnes(NoChange_t, Index), class CwiseNullaryOp, MatrixBase::Ones()
Definition at line 746 of file CwiseNullaryOp.h.
◆ setRandom() [1/4]
template<typename Derived >
◆ setRandom() [2/4]
template<typename Derived >
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.
- Parameters
-
rows | the new number of rows |
cols | the new number of columns |
Example:
m.setRandom(3, 3);
cout << m << endl;
Output:
- See also
- DenseBase::setRandom(), setRandom(Index), class CwiseNullaryOp, DenseBase::Random()
Definition at line 174 of file Random.h.
◆ setRandom() [3/4]
template<typename Derived >
◆ setRandom() [4/4]
template<typename Derived >
◆ setZero() [1/4]
template<typename Derived >
◆ setZero() [2/4]
template<typename Derived >
◆ setZero() [3/4]
template<typename Derived >
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
.
- See also
- DenseBase::setZero(), setZero(Index), setZero(Index, Index), setZero(Index, NoChange_t), class CwiseNullaryOp, DenseBase::Zero()
Definition at line 594 of file CwiseNullaryOp.h.
◆ setZero() [4/4]
template<typename Derived >
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
.
- See also
- DenseBase::setZero(), setZero(Index), setZero(Index, Index), setZero(NoChange_t, Index), class CwiseNullaryOp, DenseBase::Zero()
Definition at line 607 of file CwiseNullaryOp.h.
◆ swap() [1/2]
template<typename Derived>
template<typename OtherDerived >
◆ swap() [2/2]
template<typename Derived>
template<typename OtherDerived >
◆ writePacket() [1/2]
template<typename Derived>
template<int StoreMode>
◆ writePacket() [2/2]
template<typename Derived>
template<int StoreMode>
◆ Eigen::Map
template<typename Derived>
template<typename PlainObjectType , int MapOptions, typename StrideType >
◆ Eigen::Map< const Derived, Unaligned >
template<typename Derived>
◆ Eigen::Map< Derived, Unaligned >
template<typename Derived>
◆ internal::matrix_swap_impl
template<typename Derived>
template<typename MatrixTypeA , typename MatrixTypeB , bool SwapPointers>
◆ m_storage
template<typename Derived>
The documentation for this class was generated from the following files: