Template Function lupnt::Arange¶
Defined in File math_utils.cc
Function Documentation¶
-
template<typename T>
VectorX<T> lupnt::Arange(T start, T stop, T step)¶ Create a range of values.
Generate a vector of evenly-spaced values
[start, start+step, ..., < stop), analogous to NumPy’sarange.Used throughout example/scenario setup code (e.g.
ex_integration.cc,ex_n_body_dynamics.cc) to build the time-span vectortspan/timesdriving a propagation loop.- Parameters:
start – Start value
stop – Stop value
step – Step value
start – First value
stop – Exclusive upper bound
step – Increment (default 1)
- Returns:
Vector of values
- Returns:
Vector of values from
startup to (excluding)stop