mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix compilation.
The Matrix is required to be mutable but it also needs to be a reference and temporaries do not bind to non-const references - thus we need a hack and cast away the constness.
This commit is contained in:
@@ -426,7 +426,6 @@ struct matrix_function_compute<MatrixType, 1>
|
||||
static void run(const MatrixType& A, AtomicType& atomic, ResultType &result)
|
||||
{
|
||||
typedef internal::traits<MatrixType> Traits;
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
typedef typename MatrixType::Index Index;
|
||||
|
||||
// compute Schur decomposition of A
|
||||
|
||||
Reference in New Issue
Block a user