Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
float 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
10
int main()
11
{
Callers
1
main
Function · 0.85
Calls
2
jacobiSvd
Method · 0.80
size
Method · 0.45
Tested by
no test coverage detected