Thank you for your answer.
Do you mean the sentence you replied eighteen hours ago is the solution or good method to solve my problem?
Do you mean the sentence you replied eighteen hours ago is the solution?
Here is example code about Eigen::Matrix with comma initialization Eigen::MatrixXd kk; kk.resize(1,3); kk << 1, 2, 3; More technical details about comma initialization can be found in the references below. Link : https://eigen.tuxfamily.org/dox/group__TutorialAdvancedInitialization.html The Cppcheck reports " CWE: 398 Found suspicious operator ',' " at third line in above code. I think, "<<" and "," are not overloaded operator, just Comma Initialization in Eigen::Matrix Could anyone give me some...
Here is example code about Eigen::Matrix with comma initialization Eigen::MatrixXd kk; kk.resize(1,3); kk << 1, 2, 3; More technical details about comma initialization can be found in the references below. Link : https://eigen.tuxfamily.org/dox/group__TutorialAdvancedInitialization.html The Cppcheck reports " CWE: 398 Found suspicious operator ',' " at third line in above code. I think, "<<" and "," are not overloaded operator, just Comma Initialization in Eigen::Matrix Could anyone give me some...
In my code, when initializing or assigning a value to the Eigen::Matrix using "<<", I get an error as below. Found suspicious operator ',' Please, Tell me how to solve this.
#include <iostream> #include <Eigen/Dense> int main() { Eigen::Matrix3f m; m << 1, 2, 3, 4, 5, 6; } The example code above was taken from the site below. https://eigen.tuxfamily.org/dox/group__TutorialMatrixClass.html
#include <iostream> #include <Eigen/Dense> int main() { Matrix3f m; m << 1, 2, 3, 4, 5, 6; } The example code above was taken from the site below. https://eigen.tuxfamily.org/dox/group__TutorialMatrixClass.html