18#ifndef __math_condition_number_h__
19#define __math_condition_number_h__
21#pragma GCC diagnostic push
22#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24#pragma GCC diagnostic pop
34 assert (data.rows() && data.cols());
35 auto v = Eigen::JacobiSVD<M> (data).singularValues();
36 return v[0] / v[v.size()-1];
default_type condition_number(const M &data)
double default_type
the default type used throughout MRtrix