No compile-time error for A.row(1).dot(x) for sparse matrix A
Submitted by Kolja Brix
Assigned to Nobody
Link to original bugzilla bug (#743)
Version: 3.2
Description
Created attachment 421
Code demonstrating bug for dot product with row of a sparse matrix.
Dear Eigen developers,
for the test code, a compile time error is expected, while the runtime error
a.out: eigen/Eigen/src/Core/util/XprHelper.h:53: Eigen::internal::variable_if_dynamic<T, Value>::variable_if_dynamic(T) [with T = int; int Value = 1]: Assertion `v == T(Value)' failed.
is triggered.
Moreover, what is the situation if A has row major storage?
--
Best wishes!
Kolja
Attachment 421, "Code demonstrating bug for dot product with row of a sparse matrix.":
EigenSparseBug.cpp
Edited by Eigen Bugzilla