Registered Member
|
I want to get the diagonal part of a sparse matrix as follows:
but a compiler error occurs: error: conversion from ‘const Eigen::DiagonalWrapper<const Eigen::Diagonal<const Eigen::SparseMatrix<std::complex<double> >, 0> >’ to non-scalar type ‘Eigen::Diagonal<Eigen::SparseMatrix<std::complex<double> >, 0>’ So how to fix it? |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]