Template Function opensn::Range

Function Documentation

template<typename T, typename D = int>
std::vector<T> opensn::Range(T start, T end, D delta = 1)

Returns a range of number according to the logic of the parameters.

Parameters:
  • start – First number in the sequence.

  • end – Termination criteria. If the delta is positive then the sequence will terminate if i>=end, otherwise if the delta is negative the sequence will terminate if i<=end

  • delta – Cannot be 0. Default 1. Can be negative.