fvec_alpha_normalise method

void fvec_alpha_normalise(
  1. Pointer<fvec_t> v,
  2. double p
)

alpha normalisation

This function divides all elements of a vector by the p-norm as computed by fvec_alpha_norm().

\param v vector to compute norm from \param p order of the computed norm

Implementation

void fvec_alpha_normalise(
  ffi.Pointer<fvec_t> v,
  double p,
) {
  return _fvec_alpha_normalise(
    v,
    p,
  );
}