6 template <
typename Derived1,
typename Derived2>
10 dst.template triangularView<Upper>() = src.template triangularView<Upper>();
15 MatrixXi
m1 = MatrixXi::Ones(5,5);
16 MatrixXi
m2 = MatrixXi::Random(4,4);
17 std::cout <<
"m2 before copy:" << std::endl;
18 std::cout << m2 << std::endl << std::endl;
20 std::cout <<
"m2 after copy:" << std::endl;
21 std::cout << m2 << std::endl << std::endl;
Namespace containing all symbols from the Eigen library.
void copyUpperTriangularPart(MatrixBase< Derived1 > &dst, const MatrixBase< Derived2 > &src)
Base class for all dense matrices, vectors, and expressions.