fvec_weight method
apply weight to vector
If the weight vector is longer than s, only the first elements are used. If the weight vector is shorter than s, the last elements of s are not weighted.
\param s vector to weight \param weight weighting coefficients
Implementation
void fvec_weight(
ffi.Pointer<fvec_t> s,
ffi.Pointer<fvec_t> weight,
) {
return _fvec_weight(
s,
weight,
);
}