Eigen 3.4.90
doc
snippets
MatrixBase_asDiagonal.cpp
Go to the documentation of this file.
1
cout <<
Matrix3i
(
Vector3i
(2,5,6).asDiagonal()) << endl;
Eigen::Vector3i
Matrix< int, 3, 1 > Vector3i
3×1 vector of type int.
Definition:
Matrix.h:500
Eigen::Matrix3i
Matrix< int, 3, 3 > Matrix3i
3×3 matrix of type int.
Definition:
Matrix.h:500