如何解决特征值,无法比较相同类型的矩阵
我收到以下编译器错误:
../Src/Engine/MasterEngine/Geometry/MatrixMesh.hpp:153:31: error: no match for ‘operator==’ (operand types are ‘SBM’ {aka ‘Eigen::SparseVector<bool,int>’} and ‘SBM’ {aka ‘Eigen::SparseVector<bool,int>’})
153 | SBM(closure_vertices) == vertices &&
对于此代码:
bool IsComplex(
const Eigen::SparseMatrix<bool>& edge_matrix,const Eigen::SparseMatrix<bool>& face_matrix,const std::array<Eigen::SparseVector<bool>,3>& simplices)
{
SBM& vertices = simplices[0];
SBM& edges = simplices[1];
SBM& faces = simplices[2];
const auto[closure_vertices,closure_edges,closure_faces] =
Closure(edge_matrix,face_matrix,{vertices,edges,faces});
return
SBM(closure_vertices) == vertices &&
SBM(closure_edges) == edges &&
SBM(closure_faces) == faces;
}
我不明白,类型是相同的。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。