Vowpal Wabbit
Functions
primitives.cc File Reference
#include "primitives.h"
#include <intrin.h>
#include <array>
#include <bitset>

Go to the source code of this file.

Functions

float sum_of_squares (float *begin, float *end)
 

Function Documentation

◆ sum_of_squares()

float sum_of_squares ( float *  begin,
float *  end 
)

Definition at line 25 of file primitives.cc.

26 {
27  float sum = 0;
28 
29  for (; begin != end; begin++) sum += *begin * *begin;
30 
31  return sum;
32 }