Template Function lupnt::Arange

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’s arange.

Used throughout example/scenario setup code (e.g. ex_integration.cc, ex_n_body_dynamics.cc) to build the time-span vector tspan/times driving 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 start up to (excluding) stop