Stable place to commit

This commit is contained in:
Joseph Redmon
2015-02-04 12:41:20 -08:00
parent 0f1a31648c
commit bfffadc755
9 changed files with 72 additions and 22 deletions

View File

@ -262,6 +262,16 @@ void translate_array(float *a, int n, float s)
}
}
float mag_array(float *a, int n)
{
int i;
float sum = 0;
for(i = 0; i < n; ++i){
sum += a[i]*a[i];
}
return sqrt(sum);
}
void scale_array(float *a, int n, float s)
{
int i;