fvec_sum method

double fvec_sum(
  1. Pointer<fvec_t> v
)

compute the sum of all elements of a vector

\param v vector to compute the sum of

\return the sum of v

Implementation

double fvec_sum(
  ffi.Pointer<fvec_t> v,
) {
  return _fvec_sum(
    v,
  );
}