Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
571
float 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
581
void scale_array(float *a, int n, float s)
582
{
Callers
5
test_resize
Function · 0.85
forward_region_layer
Function · 0.85
forward_detection_layer
Function · 0.85
cuda_mag_array
Function · 0.85
reconstruct_picture
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_resize
Function · 0.68