12 #ifndef EIGEN_ASSIGN_H 13 #define EIGEN_ASSIGN_H 17 template<
typename Derived>
18 template<
typename OtherDerived>
23 SameType = internal::is_same<typename Derived::Scalar,typename OtherDerived::Scalar>::value
26 EIGEN_STATIC_ASSERT_LVALUE(Derived)
27 EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(Derived,OtherDerived)
28 EIGEN_STATIC_ASSERT(SameType,YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY)
30 eigen_assert(rows() == other.rows() && cols() == other.cols());
31 internal::call_assignment_no_alias(derived(),other.derived());
36 template<typename Derived>
37 template<typename OtherDerived>
41 internal::call_assignment(derived(), other.derived());
45 template<
typename Derived>
49 internal::call_assignment(derived(), other.derived());
53 template<
typename Derived>
57 internal::call_assignment(derived(), other.derived());
61 template<
typename Derived>
62 template <
typename OtherDerived>
66 internal::call_assignment(derived(), other.derived());
70 template<
typename Derived>
71 template <
typename OtherDerived>
75 internal::call_assignment(derived(), other.
derived());
79 template<
typename Derived>
80 template<
typename OtherDerived>
84 other.derived().evalTo(derived());
90 #endif // EIGEN_ASSIGN_H Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:41
Common base class for all classes T such that MatrixBase has an operator=(T) and a constructor Matrix...
Definition: EigenBase.h:28
Definition: ReturnByValue.h:50
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const DenseBase< OtherDerived > &other)
Copies other into *this.
Definition: Assign.h:39
Definition: BandTriangularSolver.h:13
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const MatrixBase &other)
Special case of the template operator=, in order to prevent the compiler from generating a default op...
Definition: Assign.h:55
EIGEN_DEVICE_FUNC Derived & derived()
Definition: EigenBase.h:44
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)
\ínternal Copies other into *this without evaluating other.