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

Function length

dlib/svm/sparse_vector.h:397–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396 template <typename T>
397 typename T::value_type::second_type length (
398 const T& a
399 )
400 {
401 return std::sqrt(length_squared(a));
402 }
403
404// ------------------------------------------------------------------------------------
405

Callers 15

operator()Method · 0.70
normalize_inplaceFunction · 0.70
angular_clusterFunction · 0.50
chinese_clusterFunction · 0.50
align_pointsFunction · 0.50
bottom_up_clusteringFunction · 0.50
bind_vectorFunction · 0.50
interocular_distanceFunction · 0.50

Calls 2

length_squaredFunction · 0.70
sqrtFunction · 0.50

Tested by 15

run_testFunction · 0.40
test_rlsFunction · 0.40
validateMethod · 0.40
test_affine3dFunction · 0.40
test_lineFunction · 0.40