Go to the source code of this file.
◆ main()
Definition at line 4 of file Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp.
15 std::cout <<
"v.squaredNorm() = " <<
v.squaredNorm() << std::endl;
16 std::cout <<
"v.norm() = " <<
v.norm() << std::endl;
17 std::cout <<
"v.lpNorm<1>() = " <<
v.lpNorm<1>() << std::endl;
18 std::cout <<
"v.lpNorm<Infinity>() = " <<
v.lpNorm<
Eigen::Infinity>() << std::endl;
20 std::cout << std::endl;
21 std::cout <<
"m.squaredNorm() = " <<
m.squaredNorm() << std::endl;
22 std::cout <<
"m.norm() = " <<
m.norm() << std::endl;
23 std::cout <<
"m.lpNorm<1>() = " <<
m.lpNorm<1>() << std::endl;
24 std::cout <<
"m.lpNorm<Infinity>() = " <<
m.lpNorm<
Eigen::Infinity>() << std::endl;
Array< int, Dynamic, 1 > v
The matrix class, also used for vectors and row-vectors.