MCPcopy Create free account
hub / github.com/avaxman/Directional / main

Function main

external/eigen/doc/examples/function_taking_ref.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10int main()
11{
12 Eigen::MatrixXf m = Eigen::MatrixXf::Random(4, 4);
13 std::cout << "matrix m:\n" << m << "\n\n";
14 std::cout << "inv_cond(m): " << inv_cond(m) << "\n";
15 std::cout << "inv_cond(m(1:3,1:3)): " << inv_cond(m.topLeftCorner(3,3)) << "\n";
16 std::cout << "inv_cond(m+I): " << inv_cond(m+Eigen::MatrixXf::Identity(4, 4)) << "\n";
17}

Callers

nothing calls this directly

Calls 1

inv_condFunction · 0.85

Tested by

no test coverage detected