fmat_weight method

void fmat_weight(
  1. Pointer<fmat_t> s,
  2. Pointer<fmat_t> weight
)

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 fmat_weight(
  ffi.Pointer<fmat_t> s,
  ffi.Pointer<fmat_t> weight,
) {
  return _fmat_weight(
    s,
    weight,
  );
}