mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #54 - really fix const correctness except in Sparse
This commit is contained in:
@@ -176,7 +176,8 @@ class sparse_diagonal_product_inner_iterator_selector
|
||||
public:
|
||||
inline sparse_diagonal_product_inner_iterator_selector(
|
||||
const SparseDiagonalProductType& expr, Index outer)
|
||||
: Base(expr.lhs().innerVector(outer) .cwiseProduct(expr.rhs().diagonal().transpose()), 0)
|
||||
: Base(expr.lhs().innerVector(outer) .cwiseProduct(expr.rhs().const_cast_derived().diagonal().transpose()), 0)
|
||||
// the const_cast_derived above is to get it to compile. once Sparse is const correct, that shouldn't be needed anymore.
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user