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

Function inv_cond

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

Source from the content-addressed store, hash-verified

2#include <Eigen/SVD>
3
4float inv_cond(const Eigen::Ref<const Eigen::MatrixXf>& a)
5{
6 const Eigen::VectorXf sing_vals = a.jacobiSvd().singularValues();
7 return sing_vals(sing_vals.size()-1) / sing_vals(0);
8}
9
10int main()
11{

Callers 1

mainFunction · 0.85

Calls 2

jacobiSvdMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected