Resizes a vector to a given size. Existing data is truncated if desired size is smaller than current size. Otherwise, the empty spaces are filled with zero.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dvector_t), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | new_size | |||
integer, | intent(out), | optional | :: | ierr |