Creates a vector containing a sequence of values starting at the initial point and going to the terminal point.
Arguments
- length_out
An long unsigned int
that denotes the number of points to use.
Value
A vector
of length length_out
that contains integer values in \([0, length_out - 1]\).
Examples
# Call with the following data:
seq_len_cpp(2)
#> [,1]
#> [1,] 0
#> [2,] 1
seq_len_cpp(4)
#> [,1]
#> [1,] 0
#> [2,] 1
#> [3,] 2
#> [4,] 3