Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::PlainObjectBase< Derived > Class Template Reference

#include <src/eigen/Eigen/src/Core/PlainObjectBase.h>

Inherits internal::dense_xpr_base::type.

Inherited by Eigen::Array< StorageIndex, 64, 1, DontAlign >, Eigen::Array< int, IPARM_SIZE, 1 >, Eigen::Array< double, DPARM_SIZE, 1 >, Eigen::Array< RealScalar, Dynamic, 1 >, Eigen::Array< Index, 1, Dynamic >, Eigen::Array< StorageIndex, 2, 1 >, Eigen::Array< double, UMFPACK_CONTROL, 1 >, Eigen::Array< double, UMFPACK_INFO, 1 >, Eigen::Matrix< Scalar, RowsAtCompileTime, RowsAtCompileTime, MatrixOptions, MaxRowsAtCompileTime, MaxRowsAtCompileTime >, Eigen::Matrix< Scalar, ColsAtCompileTime, ColsAtCompileTime, MatrixOptions, MaxColsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< StorageIndex, MatrixType::RowsAtCompileTime, 1 >, Eigen::Matrix< StorageIndex, Dynamic, 1 >, Eigen::Matrix< Scalar, Dynamic, 1 >, Eigen::Matrix< int, MatrixType::RowsAtCompileTime, 1 >, Eigen::Matrix< int, 1, MatrixType::ColsAtCompileTime >, Eigen::Matrix< RealScalar, Dynamic, 1 >, Eigen::Matrix< double, 3, 1, Eigen::DontAlign >, Eigen::Matrix< cInt, 2, 1, Eigen::DontAlign >, Eigen::Matrix< Scalar, AmbientDimAtCompileTime, 1 >, Eigen::Matrix< Scalar, 3, 1 >, Eigen::Matrix< RealScalar, Dynamic, Dynamic, ColMajor >, Eigen::Matrix< ComplexScalar, RowsAtCompileTime, ColsAtCompileTime, Options, MaxRowsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< ComplexScalar, ColsAtCompileTime, 1, Options &(~RowMajor), MaxColsAtCompileTime, 1 >, Eigen::Matrix< Scalar, SizeMinusOne, 1, Options &~RowMajor, MaxSizeMinusOne, 1 >, Eigen::Matrix< Scalar, 1, Size, Options|RowMajor, 1, MaxSize >, Eigen::Matrix< ComplexScalar, ColsAtCompileTime, 1, Options &~RowMajor, MaxColsAtCompileTime, 1 >, Eigen::Matrix< Scalar, ColsAtCompileTime, 1, Options &~RowMajor, MaxColsAtCompileTime, 1 >, Eigen::Matrix< StorageIndex, 1, EIGEN_SIZE_MIN_PREFER_DYNAMIC(ColsAtCompileTime, RowsAtCompileTime), RowMajor, 1, EIGEN_SIZE_MIN_PREFER_FIXED(MaxColsAtCompileTime, MaxRowsAtCompileTime)>, Eigen::Matrix< Scalar, Index(AmbientDimAtCompileTime)==Dynamic ? Dynamic :Index(AmbientDimAtCompileTime)+1, 1, Options >, Eigen::Matrix< Scalar, DiagSizeAtCompileTime, DiagSizeAtCompileTime, MatrixOptions, MaxDiagSizeAtCompileTime, MaxDiagSizeAtCompileTime >, Eigen::Matrix< Scalar, RowsAtCompileTime, 1, 0, MaxRowsAtCompileTime, 1 >, Eigen::Matrix< Scalar, AmbientDimAtCompileTime, 1, Options >, Eigen::Matrix< Scalar, Size, Size, ColMajor, MaxColsAtCompileTime, MaxColsAtCompileTime >, Eigen::Matrix< Scalar, Dim, 1 >, Eigen::Matrix< Scalar, ColsAtCompileTime, RowsAtCompileTime, TrOptions, MaxColsAtCompileTime, MaxRowsAtCompileTime >, Eigen::Matrix< Scalar, 1, RowsAtCompileTime, RowMajor, 1, MaxRowsAtCompileTime >, Eigen::Matrix< Scalar, ColsAtCompileTime, RowsAtCompileTime, Options, MaxColsAtCompileTime, MaxRowsAtCompileTime >, Eigen::Matrix< double, 2, 1, Eigen::DontAlign >, Eigen::Matrix< float, 2, 1, Eigen::DontAlign >, Eigen::Matrix< float, 3, 1, Eigen::DontAlign >, Eigen::Matrix< int, 2, 1, Eigen::DontAlign >, Eigen::Matrix< T, 3, 1, Eigen::DontAlign >, Eigen::Matrix< double, 4, 4, Eigen::DontAlign >, Eigen::Matrix< double, 3, 3, Eigen::DontAlign >, Eigen::Matrix< coord_t, 3, 1, Eigen::DontAlign >, Eigen::Matrix< int, 3, 1, Eigen::DontAlign >, Eigen::Matrix< 3, T >, Eigen::Matrix< coord_t, 2, 1, Eigen::DontAlign >, Eigen::Matrix< 2, size_t >, Eigen::Matrix< 3, Sc >, Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< int, Eigen::Dynamic, 1 >, Eigen::Matrix< SSCALAR, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< double, 3, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< typename DerivedV::Scalar, Eigen::Dynamic, 1 >, Eigen::Matrix< typename DerivedV::Scalar, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< typename DerivedF::Scalar, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< ExactScalar, Eigen::Dynamic, 3 >, Eigen::Matrix< FIndex, Eigen::Dynamic, 1 >, Eigen::Matrix< int, Eigen::Dynamic, 3 >, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic >, Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >, Eigen::Matrix< char, Eigen::Dynamic, 1 >, Eigen::Matrix< unsigned, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >, and Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic >.

+ Collaboration diagram for Eigen::PlainObjectBase< Derived >:

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 internal::dense_xpr_base< Derived >::type Base
 
typedef internal::traits< Derived >::StorageKind StorageKind
 
typedef internal::traits< Derived >::Scalar Scalar
 
typedef internal::packet_traits< Scalar >::type PacketScalar
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef Derived DenseType
 
typedef Eigen::Map< Derived, UnalignedMapType
 
typedef const Eigen::Map< const Derived, UnalignedConstMapType
 
typedef Eigen::Map< Derived, AlignedMaxAlignedMapType
 
typedef const Eigen::Map< const Derived, AlignedMaxConstAlignedMapType
 

Public Member Functions

EIGEN_DEVICE_FUNC Basebase ()
 
EIGEN_DEVICE_FUNC const Basebase () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalarcoeff (Index rowId, Index colId) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalarcoeff (Index index) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef (Index rowId, Index colId)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef (Index index)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ScalarcoeffRef (Index rowId, Index colId) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ScalarcoeffRef (Index index) const
 
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar packet (Index rowId, Index colId) const
 
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar packet (Index index) const
 
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)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalardata () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalardata ()
 
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 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 Derived & operator= (const PlainObjectBase &other)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & lazyAssign (const DenseBase< OtherDerived > &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.
 

Protected Member Functions

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.
 

Protected Attributes

DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Optionsm_storage
 

Friends

template<typename PlainObjectType , int MapOptions, typename StrideType >
class Eigen::Map
 
class Eigen::Map< Derived, Unaligned >
 
class Eigen::Map< const Derived, Unaligned >
 

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:

Output:

See also
class Map
enum  { IsPlainObjectBase = 1 }
 
template<typename MatrixTypeA , typename MatrixTypeB , bool SwapPointers>
struct internal::matrix_swap_impl
 
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 & setZero (Index size)
 
EIGEN_DEVICE_FUNC Derived & setZero (Index rows, Index cols)
 
EIGEN_DEVICE_FUNC Derived & setOnes (Index size)
 
EIGEN_DEVICE_FUNC Derived & setOnes (Index rows, Index cols)
 
Derived & setRandom (Index size)
 
Derived & setRandom (Index rows, Index cols)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC void swap (DenseBase< OtherDerived > &other)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC 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.
 
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 ()
 

Detailed Description

template<typename Derived>
class Eigen::PlainObjectBase< Derived >

Class Documentation

◆ Eigen::PlainObjectBase::StridedAlignedMapType

struct Eigen::PlainObjectBase::StridedAlignedMapType
template<typename Derived>
template<typename StrideType>
struct Eigen::PlainObjectBase< Derived >::StridedAlignedMapType< StrideType >
Class Members
typedef Map< Derived, AlignedMax, StrideType > type

◆ Eigen::PlainObjectBase::StridedConstAlignedMapType

struct Eigen::PlainObjectBase::StridedConstAlignedMapType
template<typename Derived>
template<typename StrideType>
struct Eigen::PlainObjectBase< Derived >::StridedConstAlignedMapType< StrideType >
Class Members
typedef Map< const Derived, AlignedMax, StrideType > type

◆ Eigen::PlainObjectBase::StridedConstMapType

struct Eigen::PlainObjectBase::StridedConstMapType
template<typename Derived>
template<typename StrideType>
struct Eigen::PlainObjectBase< Derived >::StridedConstMapType< StrideType >
Class Members
typedef Map< const Derived, Unaligned, StrideType > type

◆ Eigen::PlainObjectBase::StridedMapType

struct Eigen::PlainObjectBase::StridedMapType
template<typename Derived>
template<typename StrideType>
struct Eigen::PlainObjectBase< Derived >::StridedMapType< StrideType >
Class Members
typedef Map< Derived, Unaligned, StrideType > type

Member Typedef Documentation

◆ AlignedMapType

template<typename Derived >
typedef Eigen::Map<Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::AlignedMapType

◆ Base

template<typename Derived >
typedef internal::dense_xpr_base<Derived>::type Eigen::PlainObjectBase< Derived >::Base

◆ ConstAlignedMapType

template<typename Derived >
typedef const Eigen::Map<const Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::ConstAlignedMapType

◆ ConstMapType

template<typename Derived >
typedef const Eigen::Map<const Derived, Unaligned> Eigen::PlainObjectBase< Derived >::ConstMapType

◆ DenseType

template<typename Derived >
typedef Derived Eigen::PlainObjectBase< Derived >::DenseType

◆ MapType

template<typename Derived >
typedef Eigen::Map<Derived, Unaligned> Eigen::PlainObjectBase< Derived >::MapType

◆ PacketScalar

template<typename Derived >
typedef internal::packet_traits<Scalar>::type Eigen::PlainObjectBase< Derived >::PacketScalar

◆ RealScalar

template<typename Derived >
typedef NumTraits<Scalar>::Real Eigen::PlainObjectBase< Derived >::RealScalar

◆ Scalar

template<typename Derived >
typedef internal::traits<Derived>::Scalar Eigen::PlainObjectBase< Derived >::Scalar

◆ StorageKind

template<typename Derived >
typedef internal::traits<Derived>::StorageKind Eigen::PlainObjectBase< Derived >::StorageKind

Member Enumeration Documentation

◆ anonymous enum

template<typename Derived >
anonymous enum
Enumerator
Options 
102{ Options = internal::traits<Derived>::Options };
@ Options
Definition PlainObjectBase.h:102

◆ anonymous enum

template<typename Derived >
anonymous enum
Enumerator
NeedsToAlign 
142{ NeedsToAlign = (SizeAtCompileTime != Dynamic) && (internal::traits<Derived>::Alignment>0) };
@ NeedsToAlign
Definition PlainObjectBase.h:142
const int Dynamic
Definition Constants.h:21

◆ anonymous enum

template<typename Derived >
anonymous enum
Enumerator
IsPlainObjectBase 
915{ IsPlainObjectBase = 1 };
@ IsPlainObjectBase
Definition PlainObjectBase.h:915

Constructor & Destructor Documentation

◆ PlainObjectBase() [1/7]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( )
inlineprotected
484 : m_storage()
485 {
486// _check_template_params();
487// EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED
488 }
DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Options > m_storage
Definition PlainObjectBase.h:139

◆ PlainObjectBase() [2/7]

template<typename Derived >
EIGEN_DEVICE_FUNC Eigen::PlainObjectBase< Derived >::PlainObjectBase ( internal::constructor_without_unaligned_array_assert  )
inlineexplicitprotected
495 : m_storage(internal::constructor_without_unaligned_array_assert())
496 {
497// _check_template_params(); EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED
498 }

◆ PlainObjectBase() [3/7]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( const PlainObjectBase< Derived > &  other)
inlineprotected

Copy constructor

520 : Base(), m_storage(other.m_storage) { }
internal::dense_xpr_base< Derived >::type Base
Definition PlainObjectBase.h:103

◆ PlainObjectBase() [4/7]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( Index  size,
Index  rows,
Index  cols 
)
inlineprotected
523 : m_storage(size, rows, cols)
524 {
525// _check_template_params();
526// EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED
527 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols() const
Definition PlainObjectBase.h:153
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows() const
Definition PlainObjectBase.h:151

◆ PlainObjectBase() [5/7]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( const DenseBase< OtherDerived > &  other)
inlineprotected
See also
PlainObjectBase::operator=(const EigenBase<OtherDerived>&)
533 : m_storage()
534 {
536 resizeLike(other);
537 _set_noalias(other);
538 }
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void _check_template_params()
Definition PlainObjectBase.h:901
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & _set_noalias(const DenseBase< OtherDerived > &other)
Definition PlainObjectBase.h:725
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resizeLike(const EigenBase< OtherDerived > &_other)
Definition PlainObjectBase.h:362

References Eigen::PlainObjectBase< Derived >::_check_template_params(), Eigen::PlainObjectBase< Derived >::_set_noalias(), and Eigen::PlainObjectBase< Derived >::resizeLike().

+ Here is the call graph for this function:

◆ PlainObjectBase() [6/7]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( const EigenBase< OtherDerived > &  other)
inlineprotected
See also
PlainObjectBase::operator=(const EigenBase<OtherDerived>&)
544 : m_storage()
545 {
547 resizeLike(other);
548 *this = other.derived();
549 }

References Eigen::PlainObjectBase< Derived >::_check_template_params(), Eigen::EigenBase< Derived >::derived(), and Eigen::PlainObjectBase< Derived >::resizeLike().

+ Here is the call graph for this function:

◆ PlainObjectBase() [7/7]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::PlainObjectBase< Derived >::PlainObjectBase ( const ReturnByValue< OtherDerived > &  other)
inlineprotected

Copy constructor with in-place evaluation.

554 {
556 // FIXME this does not automatically transpose vectors if necessary
557 resize(other.rows(), other.cols());
558 other.evalTo(this->derived());
559 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
Definition PlainObjectBase.h:279

References Eigen::PlainObjectBase< Derived >::_check_template_params(), Eigen::ReturnByValue< Derived >::cols(), Eigen::ReturnByValue< Derived >::evalTo(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::ReturnByValue< Derived >::rows().

+ Here is the call graph for this function:

Member Function Documentation

◆ _check_template_params()

template<typename Derived >
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_check_template_params ( )
inlinestatic
902 {
903 EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, (Options&RowMajor)==RowMajor)
904 && EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, (Options&RowMajor)==0)
905 && ((RowsAtCompileTime == Dynamic) || (RowsAtCompileTime >= 0))
906 && ((ColsAtCompileTime == Dynamic) || (ColsAtCompileTime >= 0))
907 && ((MaxRowsAtCompileTime == Dynamic) || (MaxRowsAtCompileTime >= 0))
908 && ((MaxColsAtCompileTime == Dynamic) || (MaxColsAtCompileTime >= 0))
909 && (MaxRowsAtCompileTime == RowsAtCompileTime || RowsAtCompileTime==Dynamic)
910 && (MaxColsAtCompileTime == ColsAtCompileTime || ColsAtCompileTime==Dynamic)
911 && (Options & (DontAlign|RowMajor)) == Options),
912 INVALID_MATRIX_TEMPLATE_PARAMETERS)
913 }
#define EIGEN_IMPLIES(a, b)
Definition Macros.h:902
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:124
@ DontAlign
Definition Constants.h:326
@ RowMajor
Definition Constants.h:322

References Eigen::DontAlign, Eigen::Dynamic, EIGEN_IMPLIES, EIGEN_STATIC_ASSERT, Eigen::PlainObjectBase< Derived >::Options, and Eigen::RowMajor.

Referenced by Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), and Eigen::PlainObjectBase< Derived >::PlainObjectBase().

+ Here is the caller graph for this function:

◆ _init1() [1/11]

template<typename Derived >
template<typename T , typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const DenseBase< OtherDerived > &  other)
inlineprotected
815 {
816 this->_set_noalias(other);
817 }

References Eigen::PlainObjectBase< Derived >::_set_noalias().

+ Here is the call graph for this function:

◆ _init1() [2/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const Derived &  other)
inlineprotected
822 {
823 this->_set_noalias(other);
824 }

References Eigen::PlainObjectBase< Derived >::_set_noalias().

+ Here is the call graph for this function:

◆ _init1() [3/11]

template<typename Derived >
template<typename T , typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const EigenBase< OtherDerived > &  other)
inlineprotected
829 {
830 this->derived() = other;
831 }

◆ _init1() [4/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_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 
)
inlineprotected
870 {
871 Base::setConstant(val0);
872 }

◆ _init1() [5/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_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 
)
inlineprotected
800 {
802 m_storage.data()[0] = Scalar(val0);
803 }
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
Definition StaticAssert.h:154
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
Definition PlainObjectBase.h:255
internal::traits< Derived >::Scalar Scalar
Definition PlainObjectBase.h:106
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PlainObjectBase()
Definition PlainObjectBase.h:484

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ _init1() [6/11]

template<typename Derived >
template<typename T , typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const ReturnByValue< OtherDerived > &  other)
inlineprotected
836 {
837 resize(other.rows(), other.cols());
838 other.evalTo(this->derived());
839 }

References Eigen::ReturnByValue< Derived >::cols(), Eigen::ReturnByValue< Derived >::evalTo(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::ReturnByValue< Derived >::rows().

+ Here is the call graph for this function:

◆ _init1() [7/11]

template<typename Derived >
template<typename T , typename OtherDerived , int ColsAtCompileTime>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const RotationBase< OtherDerived, ColsAtCompileTime > &  r)
inlineprotected
844 {
845 this->derived() = r;
846 }

◆ _init1() [8/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_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 
)
inlineprotected
856 {
857 Base::setConstant(val0);
858 }

◆ _init1() [9/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const Scalar val0,
typename internal::enable_if< Base::SizeAtCompileTime==1 &&internal::is_convertible< T, Scalar >::value, T >::type *  = 0 
)
inlineprotected

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ _init1() [10/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init1 ( const Scalar data)
inlineprotected
808 {
810 }
const Eigen::Map< const Derived, Unaligned > ConstMapType
Definition PlainObjectBase.h:125

References Eigen::PlainObjectBase< Derived >::_set_noalias().

+ Here is the call graph for this function:

◆ _init1() [11/11]

template<typename Derived >
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_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 
)
inlineprotected
774 {
775 // NOTE MSVC 2008 complains if we directly put bool(NumTraits<T>::IsInteger) as the EIGEN_STATIC_ASSERT argument.
777 EIGEN_UNUSED_VARIABLE(is_integer);
778 EIGEN_STATIC_ASSERT(is_integer,
779 FLOATING_POINT_ARGUMENT_PASSED__INTEGER_WAS_EXPECTED)
780 resize(size);
781 }
#define EIGEN_UNUSED_VARIABLE(var)
Definition Macros.h:618
fastfloat_really_inline bool is_integer(char c) noexcept
Definition fast_float.h:453
@ IsInteger
Definition NumTraits.h:91

References EIGEN_STATIC_ASSERT, EIGEN_UNUSED_VARIABLE, and Eigen::PlainObjectBase< Derived >::resize().

+ Here is the call graph for this function:

◆ _init2() [1/3]

template<typename Derived >
template<typename T0 , typename T1 >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_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 
)
inlineprotected
762 {
764 m_storage.data()[0] = Scalar(val0);
765 m_storage.data()[1] = Scalar(val1);
766 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ _init2() [2/3]

template<typename Derived >
template<typename T0 , typename T1 >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init2 ( const T0 &  val0,
const T1 &  val1,
typename internal::enable_if< Base::SizeAtCompileTime==2, T0 >::type *  = 0 
)
inlineprotected
749 {
751 m_storage.data()[0] = Scalar(val0);
752 m_storage.data()[1] = Scalar(val1);
753 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ _init2() [3/3]

template<typename Derived >
template<typename T0 , typename T1 >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_init2 ( Index  rows,
Index  cols,
typename internal::enable_if< Base::SizeAtCompileTime!=2, T0 >::type *  = 0 
)
inlineprotected
739 {
742 FLOATING_POINT_ARGUMENT_PASSED__INTEGER_WAS_EXPECTED)
744 }

References Eigen::PlainObjectBase< Derived >::cols(), EIGEN_STATIC_ASSERT, Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ _resize_to_match()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::_resize_to_match ( const EigenBase< OtherDerived > &  other)
inlineprotected
683 {
684 #ifdef EIGEN_NO_AUTOMATIC_RESIZING
685 eigen_assert((this->size()==0 || (IsVectorAtCompileTime ? (this->size() == other.size())
686 : (rows() == other.rows() && cols() == other.cols())))
687 && "Size mismatch. Automatic resizing is disabled because EIGEN_NO_AUTOMATIC_RESIZING is defined");
689 #else
690 resizeLike(other);
691 #endif
692 }
#define EIGEN_ONLY_USED_FOR_DEBUG(x)
Definition Macros.h:591
#define eigen_assert(x)
Definition Macros.h:579
constexpr auto size(const C &c) -> decltype(c.size())
Definition span.hpp:183

References Eigen::EigenBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::cols(), eigen_assert, EIGEN_ONLY_USED_FOR_DEBUG, Eigen::PlainObjectBase< Derived >::resizeLike(), Eigen::EigenBase< Derived >::rows(), Eigen::PlainObjectBase< Derived >::rows(), and Eigen::EigenBase< Derived >::size().

Referenced by Eigen::PlainObjectBase< Derived >::lazyAssign(), and Eigen::PlainObjectBase< Derived >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _set()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::_set ( const DenseBase< OtherDerived > &  other)
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.

See also
operator=(const MatrixBase<OtherDerived>&), _set_noalias()
713 {
714 internal::call_assignment(this->derived(), other.derived());
715 return this->derived();
716 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Definition AssignEvaluator.h:780

References Eigen::internal::call_assignment().

Referenced by Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::operator=(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::operator=(), and Eigen::PlainObjectBase< Derived >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _set_noalias()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::_set_noalias ( const DenseBase< OtherDerived > &  other)
inlineprotected
726 {
727 // I don't think we need this resize call since the lazyAssign will anyways resize
728 // and lazyAssign will be called by the assign selector.
729 //_resize_to_match(other);
730 // the 'false' below means to enforce lazy evaluation. We don't use lazyAssign() because
731 // it wouldn't allow to copy a row-vector into a column-vector.
732 internal::call_assignment_no_alias(this->derived(), other.derived(), internal::assign_op<Scalar,typename OtherDerived::Scalar>());
733 return this->derived();
734 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment_no_alias(Dst &dst, const Src &src, const Func &func)
Definition AssignEvaluator.h:819

References Eigen::internal::call_assignment_no_alias().

Referenced by Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::PlainObjectBase< Derived >::_init1(), Eigen::PlainObjectBase< Derived >::_init1(), and Eigen::PlainObjectBase< Derived >::_init1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ base() [1/2]

template<typename Derived >
EIGEN_DEVICE_FUNC Base & Eigen::PlainObjectBase< Derived >::base ( )
inline
146{ return *static_cast<Base*>(this); }

◆ base() [2/2]

template<typename Derived >
EIGEN_DEVICE_FUNC const Base & Eigen::PlainObjectBase< Derived >::base ( ) const
inline
148{ return *static_cast<const Base*>(this); }

◆ coeff() [1/2]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::PlainObjectBase< Derived >::coeff ( Index  index) const
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.

174 {
175 return m_storage.data()[index];
176 }
EIGEN_DEVICE_FUNC const T * data() const
Definition DenseStorage.h:215

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ coeff() [2/2]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::PlainObjectBase< Derived >::coeff ( Index  rowId,
Index  colId 
) const
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.

161 {
162 if(Flags & RowMajorBit)
163 return m_storage.data()[colId + rowId * m_storage.cols()];
164 else // column-major
165 return m_storage.data()[rowId + colId * m_storage.rows()];
166 }
static EIGEN_DEVICE_FUNC Index rows(void)
Definition DenseStorage.h:211
static EIGEN_DEVICE_FUNC Index cols(void)
Definition DenseStorage.h:212
const unsigned int RowMajorBit
Definition Constants.h:61

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

Referenced by Eigen::GeneralizedEigenSolver< _MatrixType >::compute(), Eigen::ComplexSchur< _MatrixType >::computeShift(), Eigen::RealSchur< _MatrixType >::computeShift(), Eigen::internal::kernel_retval< FullPivLU< _MatrixType > >::evalTo(), Eigen::internal::image_retval< FullPivLU< _MatrixType > >::evalTo(), Eigen::RealSchur< _MatrixType >::initFrancisQRStep(), Eigen::Hyperplane< _Scalar, _AmbientDim, _Options >::intersection(), Eigen::Hyperplane< _Scalar, _AmbientDim, _Options >::offset(), Eigen::internal::real_2x2_jacobi_svd(), Eigen::ComplexSchur< _MatrixType >::reduceToTriangularForm(), Eigen::internal::svd_precondition_2x2_block_to_be_real< MatrixType, QRPreconditioner, true >::run(), Eigen::RealQZ< _MatrixType >::step(), and Eigen::ComplexSchur< _MatrixType >::subdiagonalEntryIsNeglegible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coeffRef() [1/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::PlainObjectBase< Derived >::coeffRef ( Index  index)
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.

197 {
198 return m_storage.data()[index];
199 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ coeffRef() [2/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::PlainObjectBase< Derived >::coeffRef ( Index  index) const
inline

This is the const version of coeffRef(Index) which is thus synonym of coeff(Index). It is provided for convenience.

216 {
217 return m_storage.data()[index];
218 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ coeffRef() [3/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::PlainObjectBase< Derived >::coeffRef ( Index  rowId,
Index  colId 
)
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.

184 {
185 if(Flags & RowMajorBit)
186 return m_storage.data()[colId + rowId * m_storage.cols()];
187 else // column-major
188 return m_storage.data()[rowId + colId * m_storage.rows()];
189 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

+ Here is the call graph for this function:

◆ coeffRef() [4/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::PlainObjectBase< Derived >::coeffRef ( Index  rowId,
Index  colId 
) const
inline

This is the const version of coeffRef(Index,Index) which is thus synonym of coeff(Index,Index). It is provided for convenience.

205 {
206 if(Flags & RowMajorBit)
207 return m_storage.data()[colId + rowId * m_storage.cols()];
208 else // column-major
209 return m_storage.data()[rowId + colId * m_storage.rows()];
210 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

+ Here is the call graph for this function:

◆ cols()

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::PlainObjectBase< Derived >::cols ( ) const
inline
153{ return m_storage.cols(); }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), and Eigen::PlainObjectBase< Derived >::m_storage.

Referenced by MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::MarchingCubes(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::PlainObjectBase< Derived >::_resize_to_match(), igl::active_set(), igl::arap_linear_block_elements(), igl::arap_linear_block_spokes(), igl::arap_linear_block_spokes_and_rims(), igl::arap_precomputation(), igl::arap_solve(), igl::average_onto_faces(), Eigen::internal::bicgstab(), igl::biharmonic_coordinates(), igl::opengl::bind_vertex_attrib_array(), igl::boundary_facets(), igl::copyleft::cgal::CSGTree::cast_V(), igl::triangle::cdt(), igl::copyleft::tetgen::cdt(), igl::copyleft::cgal::closest_facet(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::cols(), igl::columnize(), Eigen::BDCSVD< _MatrixType >::computeSVDofM(), Eigen::internal::conjugate_gradient(), igl::connect_boundary_to_infinity(), igl::connect_boundary_to_infinity(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::PlainObjectBase< Derived >::conservativeResize(), igl::cross(), igl::delaunay_triangulation(), igl::dihedral_angles(), igl::dot_row(), igl::dqs(), igl::opengl::ViewerCore::draw_buffer(), igl::opengl2::draw_skeleton_3d(), igl::opengl2::draw_skeleton_vector_graphics(), igl::copyleft::cgal::extract_feature(), igl::fast_winding_number(), igl::matlab::MatlabWorkspace::find(), igl::fit_rotations(), igl::fit_rotations_planar(), igl::flipped_triangles(), igl::serialization::getByteSize(), grad_tet(), igl::hausdorff(), igl::hsv_to_rgb(), igl::AABB< DerivedV, DIM >::init(), igl::is_symmetric(), igl::ismember(), Eigen::internal::llt_rank_update_lower(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), igl::massmatrix(), igl::WindingNumberAABB< Point, DerivedV, DerivedF >::max_simple_abs_winding_number(), igl::min_quad_dense_precompute(), igl::min_quad_with_fixed_solve(), igl::copyleft::cgal::minkowski_sum(), igl::copyleft::cgal::minkowski_sum(), igl::matlab::mlgetmatrix(), igl::matlab::mlsetmatrix(), igl::mod(), igl::normal_derivative(), igl::null(), igl::copyleft::cgal::order_facets_around_edge(), igl::orient_outward(), igl::copyleft::cgal::peel_outer_hull_layers(), igl::per_vertex_attribute_smoothing(), igl::copyleft::cgal::point_mesh_squared_distance(), igl::point_mesh_squared_distance(), igl::copyleft::cgal::point_mesh_squared_distance_precompute(), igl::polar_dec(), igl::polar_svd(), igl::matlab::prepare_lhs_double(), igl::matlab::prepare_lhs_logical(), Eigen::ComplexSchur< _MatrixType >::reduceToTriangularForm(), igl::copyleft::cgal::remesh_intersections(), igl::remove_duplicates(), igl::embree::reorient_facets_raycast(), igl::repdiag(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resize(), igl::copyleft::cgal::resolve_intersections(), igl::rgb_to_hsv(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::rows(), Eigen::SluMatrixMapHelper< Matrix< Scalar, Rows, Cols, Options, MRows, MCols > >::run(), igl::matlab::MatlabWorkspace::save(), igl::seam_edges(), igl::xml::serialization_xml::serialize(), igl::serialization::serialize(), igl::opengl::ViewerData::set_texture(), igl::snap_points(), igl::snap_points(), igl::sort_angles(), igl::sort_vectors_ccw(), igl::sort_vectors_ccw(), igl::sort_vectors_ccw(), igl::sort_vectors_ccw(), igl::sparse(), igl::straighten_seams(), igl::copyleft::cgal::subdivide_segments(), Eigen::DenseBase< Derived >::swap(), igl::copyleft::cork::to_cork_mesh(), igl::transpose_blocks(), igl::triangle_triangle_adjacency(), igl::upsample(), igl::opengl::vertex_array(), igl::writeOFF(), igl::writeOFF(), igl::png::writePNG(), and igl::writeWRL().

+ Here is the call graph for this function:

◆ conservativeResize() [1/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::conservativeResize ( Index  rows,
Index  cols 
)
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.

391 {
393 }
static void run(DenseBase< Derived > &_this, Index rows, Index cols)
Definition PlainObjectBase.h:924

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::rows(), and Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().

Referenced by MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::MarchingCubes(), MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::add_vertex(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::PlainObjectBase< Derived >::conservativeResize(), igl::cut_mesh(), igl::edges_to_path(), igl::WindingNumberAABB< Point, DerivedV, DerivedF >::max_simple_abs_winding_number(), igl::ramer_douglas_peucker(), igl::remove_duplicates(), igl::embree::reorient_facets_raycast(), igl::seam_edges(), igl::shapeup_identity_projection(), igl::shapeup_regular_face_projection(), and igl::shapeup_solve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ conservativeResize() [2/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::conservativeResize ( Index  rows,
NoChange_t   
)
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.

404 {
405 // Note: see the comment in conservativeResize(Index,Index)
407 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void conservativeResize(Index rows, Index cols)
Definition PlainObjectBase.h:390

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::conservativeResize(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ conservativeResize() [3/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::conservativeResize ( Index  size)
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.

References Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().

+ Here is the call graph for this function:

◆ conservativeResize() [4/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::conservativeResize ( NoChange_t  ,
Index  cols 
)
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.

418 {
419 // Note: see the comment in conservativeResize(Index,Index)
421 }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::conservativeResize(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ conservativeResizeLike()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::conservativeResizeLike ( const DenseBase< OtherDerived > &  other)
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.

References Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().

+ Here is the call graph for this function:

◆ data() [1/2]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * Eigen::PlainObjectBase< Derived >::data ( )
inline
Returns
a pointer to the data array of this matrix
260 { return m_storage.data(); }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ data() [2/2]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * Eigen::PlainObjectBase< Derived >::data ( ) const
inline
Returns
a const pointer to the data array of this matrix
256 { return m_storage.data(); }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

Referenced by igl::copyleft::cgal::CSGTree::CSGTree(), Eigen::PardisoImpl< Derived >::_solve_impl(), Eigen::UmfPackLU< _MatrixType >::_solve_impl(), igl::active_set(), Slic3r::GUI::GLModel::Geometry::add_vertex(), Slic3r::GUI::GLModel::Geometry::add_vertex(), Eigen::UmfPackLU< _MatrixType >::analyzePattern_impl(), Eigen::begin(), Eigen::begin(), igl::opengl::bind_vertex_attrib_array(), Eigen::PastixBase< Derived >::clean(), Eigen::internal::UpperBidiagonalization< _MatrixType >::computeUnblocked(), igl::opengl::create_vector_vbo(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::data(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::data(), igl::serialization::deserialize(), igl::opengl2::draw_mesh(), Eigen::end(), Eigen::end(), Eigen::SparseQR< _MatrixType, _OrderingType >::factorize(), Eigen::UmfPackLU< _MatrixType >::factorize_impl(), igl::fast_winding_number(), igl::fast_winding_number(), Eigen::UmfPackLU< _MatrixType >::init(), igl::copyleft::cgal::intersect_with_half_space(), igl::ismember(), Slic3r::GUI::ObjectList::load_modifier(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::MetisOrdering< StorageIndex >::operator()(), Eigen::COLAMDOrdering< StorageIndex >::operator()(), Eigen::internal::tribb_kernel< LhsScalar, RhsScalar, Index, mr, nr, ConjLhs, ConjRhs, UpLo >::operator()(), igl::copyleft::cgal::outer_edge(), igl::outer_edge(), igl::copyleft::cgal::outer_facet(), igl::copyleft::cgal::outer_vertex(), igl::outer_vertex(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::panel_bmod(), Eigen::PardisoImpl< Derived >::pardisoRelease(), igl::copyleft::cgal::peel_outer_hull_layers(), igl::randperm(), Slic3r::GUI::GCodeViewer::refresh_render_paths(), igl::copyleft::cgal::remesh_intersections(), igl::remove_unreferenced(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), igl::resolve_duplicated_faces(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run(), Eigen::SluMatrixMapHelper< Matrix< Scalar, Rows, Cols, Options, MRows, MCols > >::run(), igl::serialization::serialize(), Slic3r::GLShaderProgram::set_uniform(), Slic3r::GLShaderProgram::set_uniform(), Slic3r::GLShaderProgram::set_uniform(), Slic3r::GLShaderProgram::set_uniform(), Eigen::internal::MappedSuperNodalMatrix< _Scalar, _StorageIndex >::setInfos(), igl::slice_tets(), igl::copyleft::cgal::snap_rounding(), igl::sort_angles(), Eigen::RealQZ< _MatrixType >::step(), igl::straighten_seams(), Slic3r::transform(), Eigen::UmfPackLU< _MatrixType >::umfpackReportControl(), Eigen::UmfPackLU< _MatrixType >::umfpackReportInfo(), Eigen::UmfPackLU< _MatrixType >::umfpackReportStatus(), igl::opengl2::unproject_to_zero_plane(), Slic3r::GCode::PlaceholderParserIntegration::update_from_gcodewriter(), and igl::opengl::vertex_array().

+ Here is the call graph for this function:

◆ lazyAssign()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::lazyAssign ( const DenseBase< OtherDerived > &  other)
inline
See also
MatrixBase::lazyAssign()
466 {
467 _resize_to_match(other);
468 return Base::lazyAssign(other.derived());
469 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void _resize_to_match(const EigenBase< OtherDerived > &other)
Definition PlainObjectBase.h:682

References Eigen::PlainObjectBase< Derived >::_resize_to_match().

+ Here is the call graph for this function:

◆ Map() [1/12]

template<typename Derived >
static ConstMapType Eigen::PlainObjectBase< Derived >::Map ( const Scalar data)
inlinestatic
588 { return ConstMapType(data); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [2/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( const Scalar data,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
615 { return typename StridedConstMapType<Stride<Outer, Inner> >::type(data, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [3/12]

template<typename Derived >
static ConstMapType Eigen::PlainObjectBase< Derived >::Map ( const Scalar data,
Index  rows,
Index  cols 
)
inlinestatic
596 { return ConstMapType(data, rows, cols); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ Map() [4/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( const Scalar data,
Index  rows,
Index  cols,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
627 { return typename StridedConstMapType<Stride<Outer, Inner> >::type(data, rows, cols, stride); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ Map() [5/12]

template<typename Derived >
static ConstMapType Eigen::PlainObjectBase< Derived >::Map ( const Scalar data,
Index  size 
)
inlinestatic
592 { return ConstMapType(data, size); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [6/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( const Scalar data,
Index  size,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
621 { return typename StridedConstMapType<Stride<Outer, Inner> >::type(data, size, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [7/12]

template<typename Derived >
static MapType Eigen::PlainObjectBase< Derived >::Map ( Scalar data)
inlinestatic
590 { return MapType(data); }
Eigen::Map< Derived, Unaligned > MapType
Definition PlainObjectBase.h:123

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [8/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( Scalar data,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
618 { return typename StridedMapType<Stride<Outer, Inner> >::type(data, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [9/12]

template<typename Derived >
static MapType Eigen::PlainObjectBase< Derived >::Map ( Scalar data,
Index  rows,
Index  cols 
)
inlinestatic
598 { return MapType(data, rows, cols); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ Map() [10/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( Scalar data,
Index  rows,
Index  cols,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
630 { return typename StridedMapType<Stride<Outer, Inner> >::type(data, rows, cols, stride); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ Map() [11/12]

template<typename Derived >
static MapType Eigen::PlainObjectBase< Derived >::Map ( Scalar data,
Index  size 
)
inlinestatic
594 { return MapType(data, size); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ Map() [12/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::Map ( Scalar data,
Index  size,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
624 { return typename StridedMapType<Stride<Outer, Inner> >::type(data, size, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [1/12]

template<typename Derived >
static ConstAlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data)
inlinestatic
601 { return ConstAlignedMapType(data); }
const Eigen::Map< const Derived, AlignedMax > ConstAlignedMapType
Definition PlainObjectBase.h:132

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [2/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
634 { return typename StridedConstAlignedMapType<Stride<Outer, Inner> >::type(data, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [3/12]

template<typename Derived >
static ConstAlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data,
Index  rows,
Index  cols 
)
inlinestatic
609 { return ConstAlignedMapType(data, rows, cols); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ MapAligned() [4/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data,
Index  rows,
Index  cols,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
646 { return typename StridedConstAlignedMapType<Stride<Outer, Inner> >::type(data, rows, cols, stride); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ MapAligned() [5/12]

template<typename Derived >
static ConstAlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data,
Index  size 
)
inlinestatic
605 { return ConstAlignedMapType(data, size); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [6/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( const Scalar data,
Index  size,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
640 { return typename StridedConstAlignedMapType<Stride<Outer, Inner> >::type(data, size, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [7/12]

template<typename Derived >
static AlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data)
inlinestatic
603 { return AlignedMapType(data); }
Eigen::Map< Derived, AlignedMax > AlignedMapType
Definition PlainObjectBase.h:131

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [8/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
637 { return typename StridedAlignedMapType<Stride<Outer, Inner> >::type(data, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [9/12]

template<typename Derived >
static AlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data,
Index  rows,
Index  cols 
)
inlinestatic
611 { return AlignedMapType(data, rows, cols); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ MapAligned() [10/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data,
Index  rows,
Index  cols,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
649 { return typename StridedAlignedMapType<Stride<Outer, Inner> >::type(data, rows, cols, stride); }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ MapAligned() [11/12]

template<typename Derived >
static AlignedMapType Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data,
Index  size 
)
inlinestatic
607 { return AlignedMapType(data, size); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ MapAligned() [12/12]

template<typename Derived >
template<int Outer, int Inner>
static StridedAlignedMapType< Stride< Outer, Inner > >::type Eigen::PlainObjectBase< Derived >::MapAligned ( Scalar data,
Index  size,
const Stride< Outer, Inner > &  stride 
)
inlinestatic
643 { return typename StridedAlignedMapType<Stride<Outer, Inner> >::type(data, size, stride); }

References Eigen::PlainObjectBase< Derived >::data().

+ Here is the call graph for this function:

◆ operator=() [1/3]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::operator= ( const EigenBase< OtherDerived > &  other)
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

Returns
a reference to *this.
569 {
570 _resize_to_match(other);
571 Base::operator=(other.derived());
572 return this->derived();
573 }

References Eigen::PlainObjectBase< Derived >::_resize_to_match(), and Eigen::EigenBase< Derived >::derived().

+ Here is the call graph for this function:

◆ operator=() [2/3]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::operator= ( const PlainObjectBase< Derived > &  other)
inline

This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.

458 {
459 return _set(other);
460 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & _set(const DenseBase< OtherDerived > &other)
Copies the value of the expression other into *this with automatic resizing.
Definition PlainObjectBase.h:712

References Eigen::PlainObjectBase< Derived >::_set().

Referenced by Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [3/3]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::operator= ( const ReturnByValue< OtherDerived > &  func)
inline
474 {
475 resize(func.rows(), func.cols());
476 return Base::operator=(func);
477 }

References Eigen::ReturnByValue< Derived >::cols(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::ReturnByValue< Derived >::rows().

+ Here is the call graph for this function:

◆ packet() [1/2]

template<typename Derived >
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar Eigen::PlainObjectBase< Derived >::packet ( Index  index) const
inline
233 {
234 return internal::ploadt<PacketScalar, LoadMode>(m_storage.data() + index);
235 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ packet() [2/2]

template<typename Derived >
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar Eigen::PlainObjectBase< Derived >::packet ( Index  rowId,
Index  colId 
) const
inline
223 {
224 return internal::ploadt<PacketScalar, LoadMode>
225 (m_storage.data() + (Flags & RowMajorBit
226 ? colId + rowId * m_storage.cols()
227 : rowId + colId * m_storage.rows()));
228 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

+ Here is the call graph for this function:

◆ resize() [1/4]

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::resize ( Index  rows,
Index  cols 
)
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:

See also
resize(Index) for vectors, resize(NoChange_t, Index), resize(Index, NoChange_t)
280 {
281 eigen_assert( EIGEN_IMPLIES(RowsAtCompileTime!=Dynamic,rows==RowsAtCompileTime)
282 && EIGEN_IMPLIES(ColsAtCompileTime!=Dynamic,cols==ColsAtCompileTime)
283 && EIGEN_IMPLIES(RowsAtCompileTime==Dynamic && MaxRowsAtCompileTime!=Dynamic,rows<=MaxRowsAtCompileTime)
284 && EIGEN_IMPLIES(ColsAtCompileTime==Dynamic && MaxColsAtCompileTime!=Dynamic,cols<=MaxColsAtCompileTime)
285 && rows>=0 && cols>=0 && "Invalid sizes when resizing a matrix or array.");
287 #ifdef EIGEN_INITIALIZE_COEFFS
289 bool size_changed = size != this->size();
290 m_storage.resize(size, rows, cols);
292 #else
294 #endif
295 }
#define EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED
Definition PlainObjectBase.h:22
EIGEN_DEVICE_FUNC void resize(Index, Index, Index)
Definition DenseStorage.h:214
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:33
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void run(Index, Index)
Definition PlainObjectBase.h:32

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::Dynamic, eigen_assert, EIGEN_IMPLIES, EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED, Eigen::PlainObjectBase< Derived >::m_storage, Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::resize(), Eigen::PlainObjectBase< Derived >::rows(), and Eigen::internal::check_rows_cols_for_overflow< MaxSizeAtCompileTime >::run().

Referenced by Eigen::HessenbergDecomposition< _MatrixType >::HessenbergDecomposition(), Eigen::HessenbergDecomposition< _MatrixType >::HessenbergDecomposition(), MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::MarchingCubes(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), igl::copyleft::cgal::SelfIntersectMesh< Kernel, DerivedV, DerivedF, DerivedVV, DerivedFF, DerivedIF, DerivedJ, DerivedIM >::SelfIntersectMesh(), Eigen::HessenbergDecomposition< _MatrixType >::_compute(), Eigen::PlainObjectBase< Derived >::_init1(), Eigen::PlainObjectBase< Derived >::_init1(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::UmfPackLU< _MatrixType >::_solve_impl(), igl::ambient_occlusion(), Eigen::SparseLU< _MatrixType, _OrderingType >::analyzePattern(), igl::barycentric_to_global(), igl::bbw(), igl::mosek::bbw(), igl::bone_parents(), igl::embree::bone_visible(), igl::embree::bone_visible(), igl::bounding_box(), igl::copyleft::cgal::closest_facet(), igl::colormap(), igl::columnize(), igl::comb_frame_field(), igl::combine(), igl::copyleft::cgal::complex_to_mesh(), igl::components(), Eigen::HessenbergDecomposition< _MatrixType >::compute(), Eigen::Tridiagonalization< _MatrixType >::compute(), igl::compute_frame_field_bisectors(), Eigen::BDCSVD< _MatrixType >::computeSVDofM(), igl::connect_boundary_to_infinity(), igl::connect_boundary_to_infinity(), igl::cotmatrix_entries(), igl::cross(), igl::cylinder(), igl::xml::serialization_xml::deserialize(), igl::serialization::deserialize(), igl::dihedral_angles_intrinsic(), igl::doublearea(), igl::doublearea(), igl::doublearea_quad(), igl::edges_to_path(), Eigen::internal::FullPivHouseholderQRMatrixQReturnType< MatrixType >::evalTo(), igl::exact_geodesic(), igl::copyleft::cgal::extract_cells(), igl::copyleft::cgal::extract_cells(), igl::copyleft::cgal::extract_cells_single_component(), igl::copyleft::cgal::extract_feature(), igl::extract_manifold_patches(), igl::face_areas(), igl::facet_components(), Eigen::IncompleteCholesky< Scalar, _UpLo, _OrderingType >::factorize(), Eigen::DiagonalPreconditioner< _Scalar >::factorize(), Eigen::LeastSquareDiagonalPreconditioner< _Scalar >::factorize(), igl::false_barycentric_subdivision(), igl::fast_winding_number(), igl::fast_winding_number(), igl::find(), igl::find(), igl::find(), igl::matlab::MatlabWorkspace::find(), igl::fit_rotations(), igl::fit_rotations_planar(), igl::copyleft::cork::from_cork_mesh(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), igl::grid(), igl::copyleft::cgal::half_space_box(), igl::harmonic(), igl::histc(), igl::histc(), Eigen::internal::householder_qr_inplace_unblocked(), Eigen::SuperLUBase< _MatrixType, Derived >::initFactorization(), igl::copyleft::cgal::intersect_other_helper(), igl::is_boundary_edge(), igl::is_boundary_edge(), igl::is_edge_manifold(), igl::ismember_rows(), igl::isolines(), igl::knn(), igl::list_to_matrix(), igl::list_to_matrix(), igl::list_to_matrix(), igl::local_basis(), igl::loop(), igl::massmatrix(), igl::mat_max(), igl::mat_min(), igl::matlab_format(), igl::max(), igl::min(), igl::min_quad_with_fixed_solve(), igl::copyleft::cgal::minkowski_sum(), igl::copyleft::cgal::minkowski_sum(), igl::mode(), igl::nchoosek(), igl::octree(), Eigen::PlainObjectBase< Derived >::operator=(), igl::copyleft::cgal::order_facets_around_edge(), igl::orient_outward(), igl::orientable_patches(), igl::copyleft::cgal::outer_edge(), igl::outer_edge(), igl::copyleft::cgal::outer_hull(), igl::copyleft::cgal::outer_hull_legacy(), igl::copyleft::cgal::outer_vertex(), igl::outer_vertex(), igl::partition(), igl::copyleft::cgal::peel_outer_hull_layers(), igl::copyleft::cgal::peel_winding_number_layers(), igl::per_face_normals(), igl::per_face_normals_stable(), igl::copyleft::cgal::point_mesh_squared_distance(), igl::point_simplex_squared_distance(), igl::copyleft::cgal::polyhedron_to_mesh(), igl::principal_curvature(), igl::project_isometrically_to_plane(), igl::project_to_line(), igl::copyleft::cgal::projected_cdt(), igl::copyleft::cgal::propagate_winding_numbers(), igl::random_points_on_mesh(), igl::readBF(), igl::readCSV(), igl::readDMAT(), igl::readMESH(), igl::readMSH(), igl::readNODE(), igl::png::readPNG(), Eigen::MatrixMarketIterator< Scalar >::refX(), igl::copyleft::cgal::remesh_intersections(), igl::remove_duplicates(), igl::remove_unreferenced(), igl::embree::reorient_facets_raycast(), igl::repdiag(), igl::repmat(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resizeLike(), igl::resolve_duplicated_faces(), Eigen::MatrixMarketIterator< Scalar >::rhs(), Eigen::internal::householder_qr_inplace_blocked< MatrixQR, HCoeffs, MatrixQRScalar, InnerStrideIsOne >::run(), igl::AABB< DerivedV, DIM >::serialize(), igl::setdiff(), igl::setunion(), igl::shape_diameter_function(), igl::signed_distance(), igl::signed_distance_pseudonormal(), igl::slice(), igl::slice_into(), igl::slice_into(), igl::slice_tets(), igl::snap_points(), igl::sort_angles(), igl::sort_vectors_ccw(), igl::sort_vectors_ccw(), igl::sort_vectors_ccw(), igl::AABB< DerivedV, DIM >::squared_distance(), igl::AABB< DerivedV, DIM >::squared_distance(), igl::png::texture_from_png(), igl::transpose_blocks(), igl::copyleft::cgal::trim_with_solid(), igl::unique_rows(), igl::unique_simplices(), igl::unproject(), igl::unzip_corners(), igl::opengl::ViewerData::updateGL(), Eigen::internal::upperbidiagonalization_inplace_unblocked(), igl::upsample(), igl::volume(), igl::volume(), igl::winding_number(), and igl::copyleft::cgal::wire_mesh().

+ Here is the call graph for this function:

◆ resize() [2/4]

template<typename Derived >
EIGEN_DEVICE_FUNC void Eigen::PlainObjectBase< Derived >::resize ( Index  rows,
NoChange_t   
)
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:

See also
resize(Index,Index)
349 {
350 resize(rows, cols());
351 }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ resize() [3/4]

template<typename Derived >
EIGEN_DEVICE_FUNC void Eigen::PlainObjectBase< Derived >::resize ( Index  size)
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:

See also
resize(Index,Index), resize(NoChange_t, Index), resize(Index, NoChange_t)
310 {
312 eigen_assert(((SizeAtCompileTime == Dynamic && (MaxSizeAtCompileTime==Dynamic || size<=MaxSizeAtCompileTime)) || SizeAtCompileTime == size) && size>=0);
313 #ifdef EIGEN_INITIALIZE_COEFFS
314 bool size_changed = size != this->size();
315 #endif
316 if(RowsAtCompileTime == 1)
317 m_storage.resize(size, 1, size);
318 else
319 m_storage.resize(size, size, 1);
320 #ifdef EIGEN_INITIALIZE_COEFFS
322 #endif
323 }
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
Definition StaticAssert.h:139

References Eigen::Dynamic, eigen_assert, EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED, EIGEN_STATIC_ASSERT_VECTOR_ONLY, Eigen::PlainObjectBase< Derived >::m_storage, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::resize().

+ Here is the call graph for this function:

◆ resize() [4/4]

template<typename Derived >
EIGEN_DEVICE_FUNC void Eigen::PlainObjectBase< Derived >::resize ( NoChange_t  ,
Index  cols 
)
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:

See also
resize(Index,Index)
335 {
336 resize(rows(), cols);
337 }

References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().

+ Here is the call graph for this function:

◆ resizeLike()

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::resizeLike ( const EigenBase< OtherDerived > &  _other)
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.

363 {
364 const OtherDerived& other = _other.derived();
366 const Index othersize = other.rows()*other.cols();
367 if(RowsAtCompileTime == 1)
368 {
369 eigen_assert(other.rows() == 1 || other.cols() == 1);
370 resize(1, othersize);
371 }
372 else if(ColsAtCompileTime == 1)
373 {
374 eigen_assert(other.rows() == 1 || other.cols() == 1);
375 resize(othersize, 1);
376 }
377 else resize(other.rows(), other.cols());
378 }

References Eigen::EigenBase< Derived >::derived(), eigen_assert, Eigen::PlainObjectBase< Derived >::resize(), and Eigen::internal::check_rows_cols_for_overflow< MaxSizeAtCompileTime >::run().

Referenced by Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::PlainObjectBase< Derived >::_resize_to_match(), igl::copyleft::cgal::assign(), igl::dqs(), igl::hsv_to_rgb(), igl::ismember(), igl::mod(), igl::normalize_row_lengths(), igl::remove_duplicate_vertices(), igl::remove_duplicates(), igl::rgb_to_hsv(), igl::sort(), igl::sort2(), igl::sort3(), igl::sort_new(), and igl::AABB< DerivedV, DIM >::squared_distance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rows()

template<typename Derived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::PlainObjectBase< Derived >::rows ( ) const
inline
151{ return m_storage.rows(); }

References Eigen::PlainObjectBase< Derived >::m_storage, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

Referenced by MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::MarchingCubes(), igl::MeshCutterMini< DerivedV, DerivedF, VFType, DerivedTT, DerivedC >::MeshCutterMini(), igl::copyleft::comiso::MIQ_class< DerivedV, DerivedF, DerivedU >::MIQ_class(), igl::copyleft::comiso::PoissonSolver< DerivedV, DerivedF >::PoissonSolver(), igl::copyleft::comiso::VertexIndexing< DerivedV, DerivedF >::VertexIndexing(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::PlainObjectBase< Derived >::_resize_to_match(), igl::active_set(), MarchingCubes< Derivedvalues, Derivedpoints, Derivedvertices, DerivedF >::add_vertex(), igl::ambient_occlusion(), igl::arap_dof_precomputation(), igl::arap_dof_update(), igl::arap_precomputation(), igl::barycentric_to_global(), igl::bbw(), igl::mosek::bbw(), igl::bfs_orient(), igl::biharmonic_coordinates(), igl::bone_parents(), igl::embree::bone_visible(), igl::MissMatchCalculator< DerivedV, DerivedF, DerivedM >::calculateMissmatch(), igl::MissMatchCalculatorLine< DerivedV, DerivedF, DerivedO >::calculateMissmatchLine(), igl::copyleft::cgal::CSGTree::cast_V(), igl::triangle::cdt(), igl::copyleft::tetgen::cdt(), igl::copyleft::cgal::cell_adjacency(), igl::copyleft::cgal::closest_facet(), igl::copyleft::cgal::closest_facet(), igl::columnize(), igl::CombLine< DerivedV, DerivedF >::comb(), igl::Comb< DerivedV, DerivedF >::comb(), igl::comb_frame_field(), igl::combine(), igl::copyleft::cgal::component_inside_component(), igl::copyleft::cgal::component_inside_component(), igl::compute_frame_field_bisectors(), igl::connect_boundary_to_infinity(), igl::connect_boundary_to_infinity(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::PlainObjectBase< Derived >::conservativeResize(), igl::copyleft::cgal::convex_hull(), igl::cross(), igl::MeshCutter< DerivedV, DerivedF, DerivedM, DerivedO >::cut(), igl::cut_mesh(), igl::copyleft::cgal::points_inside_component_helper::determine_point_vertex_orientation(), igl::dihedral_angles_intrinsic(), igl::dot_row(), igl::doublearea(), igl::dqs(), igl::opengl::ViewerCore::draw_buffer(), igl::opengl2::draw_skeleton_3d(), igl::opengl2::draw_skeleton_vector_graphics(), igl::edge_topology(), igl::euler_characteristic(), igl::copyleft::cgal::points_inside_component_helper::extract_adj_faces(), igl::copyleft::cgal::points_inside_component_helper::extract_adj_vertices(), igl::copyleft::cgal::extract_cells(), igl::copyleft::cgal::extract_cells_single_component(), igl::copyleft::cgal::extract_feature(), igl::false_barycentric_subdivision(), igl::matlab::MatlabWorkspace::find(), igl::find_cross_field_singularities(), igl::fit_rotations(), igl::fit_rotations_planar(), igl::gaussian_curvature(), igl::serialization::getByteSize(), grad_tet(), grad_tri(), igl::group_sum_matrix(), igl::hsv_to_rgb(), igl::in_element(), igl::in_element(), igl::AABB< DerivedV, DIM >::init(), igl::copyleft::cgal::intersect_other_helper(), igl::is_border_vertex(), igl::is_boundary_edge(), igl::is_edge_manifold(), igl::is_symmetric(), igl::ismember(), Eigen::internal::least_square_conjugate_gradient(), igl::lexicographic_triangulation(), igl::loop(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::PlainObjectBase< Derived >::MapAligned(), igl::massmatrix(), igl::matlab_format(), igl::WindingNumberAABB< Point, DerivedV, DerivedF >::max_simple_abs_winding_number(), igl::min_quad_dense_precompute(), igl::min_quad_with_fixed_solve(), igl::copyleft::cgal::minkowski_sum(), igl::copyleft::cgal::minkowski_sum(), igl::matlab::mlgetmatrix(), igl::matlab::mlsetmatrix(), igl::mod(), igl::normal_derivative(), igl::normalize_row_lengths(), igl::copyleft::cgal::order_facets_around_edges(), igl::copyleft::cgal::order_facets_around_edges(), igl::orient_outward(), igl::orientable_patches(), igl::copyleft::cgal::outer_hull_legacy(), igl::copyleft::cgal::outer_vertex(), igl::outer_vertex(), igl::partition(), igl::copyleft::cgal::peel_outer_hull_layers(), igl::per_vertex_attribute_smoothing(), igl::copyleft::cgal::point_mesh_squared_distance(), igl::copyleft::cgal::point_solid_signed_squared_distance(), igl::copyleft::cgal::points_inside_component(), igl::matlab::prepare_lhs_double(), igl::matlab::prepare_lhs_logical(), igl::principal_curvature(), Slic3r::GUI::CameraUtils::project(), igl::project(), igl::project_isometrically_to_plane(), igl::ramer_douglas_peucker(), igl::random_points_on_mesh(), igl::readBF(), igl::readNODE(), Eigen::ComplexSchur< _MatrixType >::reduceToTriangularForm(), igl::copyleft::cgal::relabel_small_immersed_cells(), igl::copyleft::cgal::remesh_intersections(), igl::remove_duplicates(), igl::embree::reorient_facets_raycast(), igl::repdiag(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::resize(), igl::resolve_duplicated_faces(), igl::copyleft::cgal::resolve_intersections(), igl::MeshCutter< DerivedV, DerivedF, DerivedM, DerivedO >::Retract(), igl::rgb_to_hsv(), Eigen::SluMatrixMapHelper< Matrix< Scalar, Rows, Cols, Options, MRows, MCols > >::run(), igl::matlab::MatlabWorkspace::save(), igl::seam_edges(), igl::xml::serialization_xml::serialize(), igl::serialization::serialize(), igl::opengl::ViewerData::set_texture(), igl::shape_diameter_function(), igl::shapeup_identity_projection(), igl::shapeup_precomputation(), igl::shapeup_regular_face_projection(), igl::slice_tets(), igl::slice_tets(), igl::snap_points(), igl::snap_points(), igl::sort_angles(), igl::sparse(), igl::straighten_seams(), igl::copyleft::cgal::subdivide_segments(), igl::copyleft::cgal::submesh_aabb_tree(), Eigen::DenseBase< Derived >::swap(), igl::copyleft::cork::to_cork_mesh(), igl::transpose_blocks(), igl::triangle_triangle_adjacency(), igl::copyleft::cgal::trim_with_solid(), igl::unique_edge_map(), igl::unique_simplices(), igl::upsample(), igl::upsample(), igl::writeBF(), igl::xml::writeDAE(), igl::writeMESH(), igl::writeOFF(), igl::writeOFF(), igl::png::writePNG(), and igl::writeSTL().

+ Here is the call graph for this function:

◆ setConstant() [1/2]

template<typename Derived >
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.

Parameters
rowsthe new number of rows
colsthe new number of columns
valthe value to which all coefficients are set

Example:

Output:

See also
MatrixBase::setConstant(const Scalar&), setConstant(Index,const Scalar&), class CwiseNullaryOp, MatrixBase::Constant(const Scalar&)
361{
362 resize(rows, cols);
363 return setConstant(val);
364}
EIGEN_DEVICE_FUNC Derived & setConstant(Index size, const Scalar &val)
Definition CwiseNullaryOp.h:341

◆ setConstant() [2/2]

template<typename Derived >
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:

See also
MatrixBase::setConstant(const Scalar&), setConstant(Index,Index,const Scalar&), class CwiseNullaryOp, MatrixBase::Constant(const Scalar&)
342{
343 resize(size);
344 return setConstant(val);
345}

Referenced by igl::MissMatchCalculator< DerivedV, DerivedF, DerivedM >::calculateMissmatch(), igl::MissMatchCalculatorLine< DerivedV, DerivedF, DerivedO >::calculateMissmatchLine(), Eigen::RealSchur< _MatrixType >::computeShift(), igl::connect_boundary_to_infinity(), igl::connect_boundary_to_infinity(), igl::MeshCutter< DerivedV, DerivedF, DerivedM, DerivedO >::cut(), igl::dijkstra_compute_paths(), igl::copyleft::cgal::extract_cells_single_component(), igl::extract_manifold_patches(), Eigen::SparseQR< _MatrixType, _OrderingType >::factorize(), Eigen::SparseLU< _MatrixType, _OrderingType >::factorize(), igl::frustum(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::heap_relax_snode(), igl::histc(), igl::is_vertex_manifold(), igl::ismember(), igl::ismember_rows(), igl::max(), igl::min(), igl::copyleft::cgal::minkowski_sum(), Eigen::Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::operator=(), igl::copyleft::cgal::outer_hull_legacy(), igl::per_vertex_normals(), igl::project(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::relax_snode(), Eigen::AlignedBox< _Scalar, _AmbientDim >::setEmpty(), igl::signed_distance(), igl::snap_points(), igl::sort2(), igl::sort3(), igl::AABB< DerivedV, DIM >::squared_distance(), igl::triangle_triangle_adjacency_extractTT(), igl::triangle_triangle_adjacency_extractTTi(), and igl::writeWRL().

+ Here is the caller graph for this function:

◆ setOnes() [1/2]

template<typename Derived >
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.

Parameters
rowsthe new number of rows
colsthe new number of columns

Example:

Output:

See also
MatrixBase::setOnes(), setOnes(Index), class CwiseNullaryOp, MatrixBase::Ones()
660{
661 resize(rows, cols);
662 return setConstant(Scalar(1));
663}

◆ setOnes() [2/2]

template<typename Derived >
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:

See also
MatrixBase::setOnes(), setOnes(Index,Index), class CwiseNullaryOp, MatrixBase::Ones()
642{
643 resize(newSize);
644 return setConstant(Scalar(1));
645}

Referenced by Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run(), and Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run().

+ Here is the caller graph for this function:

◆ setRandom() [1/2]

template<typename Derived >
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

Parameters
rowsthe new number of rows
colsthe new number of columns

Example:

Output:

See also
DenseBase::setRandom(), setRandom(Index), class CwiseNullaryOp, DenseBase::Random()
175{
176 resize(rows, cols);
177 return setRandom();
178}
Derived & setRandom(Index size)
Definition Random.h:151

◆ setRandom() [2/2]

template<typename Derived >
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:

See also
DenseBase::setRandom(), setRandom(Index,Index), class CwiseNullaryOp, DenseBase::Random()
152{
153 resize(newSize);
154 return setRandom();
155}

Referenced by Eigen::MatrixMarketIterator< Scalar >::rhs().

+ Here is the caller graph for this function:

◆ setZero() [1/2]

template<typename Derived >
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.

Parameters
rowsthe new number of rows
colsthe new number of columns

Example:

Output:

See also
DenseBase::setZero(), setZero(Index), class CwiseNullaryOp, DenseBase::Zero()
534{
535 resize(rows, cols);
536 return setConstant(Scalar(0));
537}

◆ setZero() [2/2]

template<typename Derived >
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:

See also
DenseBase::setZero(), setZero(Index,Index), class CwiseNullaryOp, DenseBase::Zero()
516{
517 resize(newSize);
518 return setConstant(Scalar(0));
519}

Referenced by Eigen::PardisoImpl< Derived >::PardisoImpl(), igl::PlanarizerShapeUp< DerivedV, DerivedF >::PlanarizerShapeUp(), igl::PlanarizerShapeUp< DerivedV, DerivedF >::assembleP(), igl::average_onto_vertices(), igl::barycenter(), igl::centroid(), igl::CombLine< DerivedV, DerivedF >::comb(), igl::Comb< DerivedV, DerivedF >::comb(), Eigen::GeneralizedEigenSolver< _MatrixType >::compute(), Eigen::BDCSVD< _MatrixType >::compute(), Eigen::BDCSVD< _MatrixType >::computeSingVecs(), igl::cut_mesh(), Eigen::SparseQR< _MatrixType, _OrderingType >::factorize(), Eigen::SparseLU< _MatrixType, _OrderingType >::factorize(), Eigen::LeastSquareDiagonalPreconditioner< _Scalar >::factorize(), igl::fast_winding_number(), igl::fast_winding_number(), igl::find_cross_field_singularities(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::heap_relax_snode(), igl::min_quad_dense_precompute(), Eigen::internal::tribb_kernel< LhsScalar, RhsScalar, Index, mr, nr, ConjLhs, ConjRhs, UpLo >::operator()(), Eigen::Translation< _Scalar, _Dim >::operator*(), Eigen::UniformScaling< _Scalar >::operator*(), Eigen::Translation< _Scalar, _Dim >::operator*(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::operator=(), igl::partition(), igl::per_corner_normals(), igl::per_edge_normals(), igl::per_vertex_normals(), igl::copyleft::cgal::point_areas(), igl::quad_planarity(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::relax_snode(), igl::embree::reorient_facets_raycast(), Eigen::internal::permutation_matrix_product< ExpressionType, Side, Transposed, SparseShape >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, Version >::run(), igl::seam_edges(), and Eigen::internal::MappedSuperNodalMatrix< _Scalar, _StorageIndex >::solveInPlace().

+ Here is the caller graph for this function:

◆ swap() [1/2]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC void Eigen::PlainObjectBase< Derived >::swap ( DenseBase< OtherDerived > &  other)
inline
887 {
888 enum { SwapPointers = internal::is_same<Derived, OtherDerived>::value && Base::SizeAtCompileTime==Dynamic };
889 internal::matrix_swap_impl<Derived, OtherDerived, bool(SwapPointers)>::run(this->derived(), other.derived());
890 }
friend struct internal::matrix_swap_impl
Definition PlainObjectBase.h:875
@ value
Definition Meta.h:63

References Eigen::Dynamic.

Referenced by Eigen::IterativeSolverBase< Derived >::_solve_impl(), Eigen::BDCSVD< _MatrixType >::computeSVDofM(), Slic3r::sla::DefaultSupportTree::interconnect(), and Slic3r::pinch_contours_insert_phony_outer_intersections().

+ Here is the caller graph for this function:

◆ swap() [2/2]

template<typename Derived >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC void Eigen::PlainObjectBase< Derived >::swap ( DenseBase< OtherDerived > const other)
inline
898 { Base::swap(other.derived()); }

◆ writePacket() [1/2]

template<typename Derived >
template<int StoreMode>
EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::writePacket ( Index  index,
const PacketScalar val 
)
inline
250 {
251 internal::pstoret<Scalar, PacketScalar, StoreMode>(m_storage.data() + index, val);
252 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.

+ Here is the call graph for this function:

◆ writePacket() [2/2]

template<typename Derived >
template<int StoreMode>
EIGEN_STRONG_INLINE void Eigen::PlainObjectBase< Derived >::writePacket ( Index  rowId,
Index  colId,
const PacketScalar val 
)
inline
240 {
241 internal::pstoret<Scalar, PacketScalar, StoreMode>
242 (m_storage.data() + (Flags & RowMajorBit
243 ? colId + rowId * m_storage.cols()
244 : rowId + colId * m_storage.rows()), val);
245 }

References Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::cols(), Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::DenseStorage< T, Size, _Rows, _Cols, _Options >::rows().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ Eigen::Map

template<typename Derived >
template<typename PlainObjectType , int MapOptions, typename StrideType >
friend class Eigen::Map
friend

◆ Eigen::Map< const Derived, Unaligned >

template<typename Derived >
friend class Eigen::Map< const Derived, Unaligned >
friend

◆ Eigen::Map< Derived, Unaligned >

template<typename Derived >
friend class Eigen::Map< Derived, Unaligned >
friend

◆ internal::matrix_swap_impl

template<typename Derived >
template<typename MatrixTypeA , typename MatrixTypeB , bool SwapPointers>
friend struct internal::matrix_swap_impl
friend

Member Data Documentation

◆ m_storage


The documentation for this class was generated from the following files: