mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace Eigen type metaprogramming with corresponding std types and make use of alias templates
This commit is contained in:
committed by
Antonio Sánchez
parent
514f90c9ff
commit
421cbf0866
@@ -154,10 +154,10 @@ void KroneckerProductSparse<Lhs,Rhs>::evalTo(Dest& dst) const
|
||||
|
||||
// 1 - evaluate the operands if needed:
|
||||
typedef typename internal::nested_eval<Lhs,Dynamic>::type Lhs1;
|
||||
typedef typename internal::remove_all<Lhs1>::type Lhs1Cleaned;
|
||||
typedef internal::remove_all_t<Lhs1> Lhs1Cleaned;
|
||||
const Lhs1 lhs1(m_A);
|
||||
typedef typename internal::nested_eval<Rhs,Dynamic>::type Rhs1;
|
||||
typedef typename internal::remove_all<Rhs1>::type Rhs1Cleaned;
|
||||
typedef internal::remove_all_t<Rhs1> Rhs1Cleaned;
|
||||
const Rhs1 rhs1(m_B);
|
||||
|
||||
// 2 - construct respective iterators
|
||||
@@ -203,8 +203,8 @@ namespace internal {
|
||||
template<typename Lhs_, typename Rhs_>
|
||||
struct traits<KroneckerProduct<Lhs_,Rhs_> >
|
||||
{
|
||||
typedef typename remove_all<Lhs_>::type Lhs;
|
||||
typedef typename remove_all<Rhs_>::type Rhs;
|
||||
typedef remove_all_t<Lhs_> Lhs;
|
||||
typedef remove_all_t<Rhs_> Rhs;
|
||||
typedef typename ScalarBinaryOpTraits<typename Lhs::Scalar, typename Rhs::Scalar>::ReturnType Scalar;
|
||||
typedef typename promote_index_type<typename Lhs::StorageIndex, typename Rhs::StorageIndex>::type StorageIndex;
|
||||
|
||||
@@ -222,8 +222,8 @@ template<typename Lhs_, typename Rhs_>
|
||||
struct traits<KroneckerProductSparse<Lhs_,Rhs_> >
|
||||
{
|
||||
typedef MatrixXpr XprKind;
|
||||
typedef typename remove_all<Lhs_>::type Lhs;
|
||||
typedef typename remove_all<Rhs_>::type Rhs;
|
||||
typedef remove_all_t<Lhs_> Lhs;
|
||||
typedef remove_all_t<Rhs_> Rhs;
|
||||
typedef typename ScalarBinaryOpTraits<typename Lhs::Scalar, typename Rhs::Scalar>::ReturnType Scalar;
|
||||
typedef typename cwise_promote_storage_type<typename traits<Lhs>::StorageKind, typename traits<Rhs>::StorageKind, scalar_product_op<typename Lhs::Scalar, typename Rhs::Scalar> >::ret StorageKind;
|
||||
typedef typename promote_index_type<typename Lhs::StorageIndex, typename Rhs::StorageIndex>::type StorageIndex;
|
||||
|
||||
Reference in New Issue
Block a user