aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore/SparsePermutation.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-07-31 13:35:49 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-07-31 13:35:49 +0200
commitbae2e3327b27a21e5024e235255f403cfe1be2c5 (patch)
treeeb4062df08f8321a0dda35eb5492f075c3df642e /Eigen/src/SparseCore/SparsePermutation.h
parentcd0ff253ec906f0b4604ec084df3d7e7cc6811d1 (diff)
Call product_generic_impl by default, and remove lot of boilerplate code
Diffstat (limited to 'Eigen/src/SparseCore/SparsePermutation.h')
-rw-r--r--Eigen/src/SparseCore/SparsePermutation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparsePermutation.h b/Eigen/src/SparseCore/SparsePermutation.h
index ebfefab98..a888ae9e1 100644
--- a/Eigen/src/SparseCore/SparsePermutation.h
+++ b/Eigen/src/SparseCore/SparsePermutation.h
@@ -196,6 +196,10 @@ struct generic_product_impl<Lhs, Transpose<Rhs>, SparseShape, PermutationShape,
}
};
+// TODO, the following two overloads are only needed to define the right temporary type through
+// typename traits<permut_sparsematrix_product_retval<Rhs,Lhs,OnTheRight,false> >::ReturnType
+// while it should be correctly handled by traits<Product<> >::PlainObject
+
template<typename Lhs, typename Rhs, int ProductTag>
struct product_evaluator<Product<Lhs, Rhs, DefaultProduct>, ProductTag, PermutationShape, SparseShape, typename traits<Lhs>::Scalar, typename traits<Rhs>::Scalar>
: public evaluator<typename traits<permut_sparsematrix_product_retval<Lhs,Rhs,OnTheRight,false> >::ReturnType>::type