10 #ifndef EIGEN_PRODUCT_H
11 #define EIGEN_PRODUCT_H
15 template<
typename Lhs,
typename Rhs,
int Option,
typename StorageKind>
class ProductImpl;
19 template<
typename Lhs,
typename Rhs,
int Option>
31 typename RhsTraits::StorageKind,
37 RowsAtCompileTime = LhsTraits::RowsAtCompileTime,
38 ColsAtCompileTime = RhsTraits::ColsAtCompileTime,
39 MaxRowsAtCompileTime = LhsTraits::MaxRowsAtCompileTime,
40 MaxColsAtCompileTime = RhsTraits::MaxColsAtCompileTime,
47 : (MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1) ? 0
70 template<
typename _Lhs,
typename _Rhs,
int Option>
72 typename internal::product_promote_storage_type<typename internal::traits<_Lhs>::StorageKind,
73 typename internal::traits<_Rhs>::StorageKind,
74 internal::product_type<_Lhs,_Rhs>::ret>::ret>
97 &&
"invalid matrix product"
98 &&
"if you wanted a coeff-wise or a dot product use the respective explicit functions");
119 template<typename Lhs, typename Rhs, int Option, int ProductTag = internal::product_type<Lhs,Rhs>::ret>
125 template<
typename Lhs,
typename Rhs,
int Option>
144 template<
typename Lhs,
typename Rhs,
int Option,
typename StorageKind>
151 template<
typename Lhs,
typename Rhs,
int Option>
163 IsOneByOne = (RowsAtCompileTime == 1 || RowsAtCompileTime ==
Dynamic) &&
164 (ColsAtCompileTime == 1 || ColsAtCompileTime ==
Dynamic),
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i)
This is the const version of col().
Definition: BlockMethods.h:1097
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE RowXpr row(Index i)
This is the const version of row(). */.
Definition: BlockMethods.h:1118
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1264
#define EIGEN_NOEXCEPT
Definition: Macros.h:1418
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1283
#define eigen_assert(x)
Definition: Macros.h:1037
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
#define EIGEN_SIZE_MIN_PREFER_FIXED(a, b)
Definition: Macros.h:1302
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar coeff(Index i) const
Definition: Product.h:178
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar coeff(Index row, Index col) const
Definition: Product.h:170
internal::dense_product_base< Lhs, Rhs, Option > Base
Definition: Product.h:159
Product< Lhs, Rhs, Option > Derived
Definition: Product.h:155
Definition: Product.h:146
internal::generic_xpr_base< Product< Lhs, Rhs, Option >, MatrixXpr, StorageKind >::type Base
Definition: Product.h:148
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:75
internal::remove_all< RhsNested >::type RhsNestedCleaned
Definition: Product.h:91
internal::remove_all< LhsNested >::type LhsNestedCleaned
Definition: Product.h:90
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: Product.h:104
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const LhsNestedCleaned & lhs() const
Definition: Product.h:107
_Lhs Lhs
Definition: Product.h:78
RhsNested m_rhs
Definition: Product.h:114
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: Product.h:102
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const RhsNestedCleaned & rhs() const
Definition: Product.h:109
_Rhs Rhs
Definition: Product.h:79
ProductImpl< Lhs, Rhs, Option, typename internal::product_promote_storage_type< typename internal::traits< Lhs >::StorageKind, typename internal::traits< Rhs >::StorageKind, internal::product_type< Lhs, Rhs >::ret >::ret >::Base Base
Definition: Product.h:85
LhsNested m_lhs
Definition: Product.h:113
Product< Lhs, Rhs, Option > ProductXpr
Definition: Product.h:129
internal::dense_xpr_base< ProductXpr >::type Base
Definition: Product.h:130
Base::Scalar Scalar
Definition: Product.h:133
Definition: Product.h:122
const unsigned int NoPreferredStorageOrderBit
Definition: Constants.h:178
const unsigned int RowMajorBit
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
@ LazyProduct
Definition: Constants.h:500
@ InnerProduct
Definition: Constants.h:500
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Dynamic
Definition: Constants.h:22
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Flags
Special flags for archives.
Definition: cereal.hpp:185
Definition: document.h:416
Definition: Constants.h:507
Definition: Constants.h:522
Determines whether the given binary operation of two numeric types is allowed and what the scalar ret...
Definition: XprHelper.h:806
Definition: XprHelper.h:484
Definition: CoreEvaluators.h:91
Definition: XprHelper.h:501
Definition: GeneralProduct.h:52
T type
Definition: Meta.h:126
MatrixXpr XprKind
Definition: Product.h:27
traits< LhsCleaned > LhsTraits
Definition: Product.h:24
traits< RhsCleaned > RhsTraits
Definition: Product.h:25
product_promote_storage_type< typename LhsTraits::StorageKind, typename RhsTraits::StorageKind, internal::product_type< Lhs, Rhs >::ret >::ret StorageKind
Definition: Product.h:32
remove_all< Lhs >::type LhsCleaned
Definition: Product.h:22
remove_all< Rhs >::type RhsCleaned
Definition: Product.h:23
ScalarBinaryOpTraits< typename traits< LhsCleaned >::Scalar, typename traits< RhsCleaned >::Scalar >::ReturnType Scalar
Definition: Product.h:29
promote_index_type< typename LhsTraits::StorageIndex, typename RhsTraits::StorageIndex >::type StorageIndex
Definition: Product.h:34
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233