fvec_push method

void fvec_push(
  1. Pointer<fvec_t> in1,
  2. double new_elem
)

push a new element to the end of a vector, erasing the first element and sliding all others

\param in vector to push to \param new_elem new_element to add at the end of the vector

In numpy words, this is equivalent to: in = np.concatenate([in, new_elem])1:

Implementation

void fvec_push(
  ffi.Pointer<fvec_t> in1,
  double new_elem,
) {
  return _fvec_push(
    in1,
    new_elem,
  );
}