Go to the source code of this file.
◆ inv_cond()
Definition at line 4 of file function_taking_ref.cpp.
7 return sing_vals(sing_vals.
size()-1) / sing_vals(0);
EIGEN_CONSTEXPR Index size() const EIGEN_NOEXCEPT
The matrix class, also used for vectors and row-vectors.
◆ main()
Definition at line 10 of file function_taking_ref.cpp.
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";
static const RandomReturnType Random()
static const IdentityReturnType Identity()
float inv_cond(const Eigen::Ref< const Eigen::MatrixXf > &a)