Template Function lupnt::Arange¶
Defined in File math_utils.h
Function Documentation¶
-
template<typename T>
VectorX<T> lupnt::Arange(T start, T stop, T step = 1)¶ 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 – First value
stop – Exclusive upper bound
step – Increment (default 1)
- Returns:
Vector of values from
startup to (excluding)stop