MCPcopy Create free account
hub / github.com/davisking/dlib / max

Function max

dlib/svm/sparse_vector.h:825–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823
824 template <typename T>
825 typename T::value_type::second_type max (
826 const T& a
827 )
828 {
829 typedef typename T::value_type::second_type type;
830
831 type temp = 0;
832 for (typename T::const_iterator i = a.begin(); i != a.end(); ++i)
833 {
834 if (temp < i->second)
835 temp = i->second;
836 }
837 return temp;
838 }
839
840// ----------------------------------------------------------------------------------------
841

Callers 15

max_index_plus_oneFunction · 0.70
separation_oracleMethod · 0.70
trainMethod · 0.70
load_implMethod · 0.70
pick_initial_centersFunction · 0.70
predict_assignmentsMethod · 0.70
separation_oracleMethod · 0.70
do_trainMethod · 0.70
do_trainMethod · 0.70
invertFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected