This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1511 - compilation fails for BDCSVD on intel compilers
Summary: compilation fails for BDCSVD on intel compilers
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: SVD (show other bugs)
Version: 3.5 (future version)
Hardware: x86 - 64-bit Linux
: Normal Compilation Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-05 17:35 UTC by eugvas
Modified: 2019-12-04 17:25 UTC (History)
2 users (show)



Attachments

Description eugvas 2018-02-05 17:35:58 UTC
the following test file fails to compile using Intel compiler (v.13 or v.15):

-- test.cpp --

#include <Eigen/SVD>
void test(const Eigen::MatrixXd& M) {
    Eigen::BDCSVD<Eigen::MatrixXd> svd(M);
}
int main() {}

-- end --

the following error is displayed:

Eigen/src/Jacobi/Jacobi.h(467): error: expression must have a constant value
      Vectorizable>::run(x,incrx,y,incry,size,c,s);
      ^
          detected during:
            instantiation of "void Eigen::MatrixBase<Derived>::applyOnTheLeft(Eigen::Index={ptrdiff_t={long}}, Eigen::Index={ptrdiff_t={long}}, const Eigen::JacobiRotation<OtherScalar> &) [with Derived=Eigen::Matrix<double, 2, 2, 0, 2, 2>, OtherScalar=double]" at line 46 of "Eigen/src/misc/RealSvd2x2.h"
            instantiation of "void Eigen::internal::real_2x2_jacobi_svd(const MatrixType &, Index, Index, Eigen::JacobiRotation<RealScalar> *, Eigen::JacobiRotation<RealScalar> *) [with MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, RealScalar=double, Index=Eigen::Index={ptrdiff_t={long}}]" at line 722 of "Eigen/src/SVD/JacobiSVD.h"
            instantiation of "Eigen::JacobiSVD<_MatrixType, QRPreconditioner> &Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::compute(const Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::MatrixType &, unsigned int) [with _MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, QRPreconditioner=2]" at line 548 of "Eigen/src/SVD/JacobiSVD.h"
            instantiation of "Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::JacobiSVD(const Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::MatrixType &, unsigned int) [with _MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, QRPreconditioner=2]" at line 257 of "Eigen/src/SVD/BDCSVD.h"
            instantiation of "Eigen::BDCSVD<_MatrixType> &Eigen::BDCSVD<_MatrixType>::compute(const Eigen::BDCSVD<_MatrixType>::MatrixType &, unsigned int) [with _MatrixType=Eigen::MatrixXd]" at line 142 of "Eigen/src/SVD/BDCSVD.h"
            instantiation of "Eigen::BDCSVD<_MatrixType>::BDCSVD(const Eigen::BDCSVD<_MatrixType>::MatrixType &, unsigned int) [with _MatrixType=Eigen::MatrixXd]" at line 3 of "test.cpp"
Comment 1 eugvas 2018-02-05 17:37:23 UTC
forgot to mention that this occurs for the current code snapshot from github; compilation runs fine with version 3.3.4
Comment 2 Nobody 2019-12-04 17:25:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1511.

Note You need to log in before you can comment on or make changes to this bug.