7 return sing_vals(sing_vals.
size()-1) / sing_vals(0);
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()
EIGEN_CONSTEXPR Index size() const EIGEN_NOEXCEPT
static const IdentityReturnType Identity()
The matrix class, also used for vectors and row-vectors.
A matrix or vector expression mapping an existing expression.
float inv_cond(const Eigen::Ref< const Eigen::MatrixXf > &a)