MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / mag_array

Function mag_array

yolo_detector/darknet_opt/src/utils.c:571–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571float mag_array(float *a, int n)
572{
573 int i;
574 float sum = 0;
575 for(i = 0; i < n; ++i){
576 sum += a[i]*a[i];
577 }
578 return sqrt(sum);
579}
580
581void scale_array(float *a, int n, float s)
582{

Callers 5

test_resizeFunction · 0.85
forward_region_layerFunction · 0.85
forward_detection_layerFunction · 0.85
cuda_mag_arrayFunction · 0.85
reconstruct_pictureFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_resizeFunction · 0.68