Reset a vector by filling it with an element

reset_vec(v, value = 0)

Arguments

v

vector to fill with zeros

value

to insert

Value

reset vector in place