21 template <
typename SCALAR>
52 for (
size_t i = 0;
i < arg.size();
i++)
53 this->push_back(arg[
i]);
TimeArray(const SCALAR &dt, const size_t &N, const SCALAR &t0=0.0)
evenly spaced constructor
Definition: TimeArray.h:33
TimeArray(size_t n, const SCALAR &value=SCALAR())
resize constructor
Definition: TimeArray.h:44
TRAJECTORY_T linspace(const typename TRAJECTORY_T::value_type &a, const typename TRAJECTORY_T::value_type &b, const size_t N)
replicates the well-known linspace command from MATLAB in C++
Definition: linspace.h:23
CppAD::AD< CppAD::cg::CG< double > > SCALAR
constexpr size_t n
Definition: MatrixInversionTest.cpp:14
TimeArray()
default constructor
Definition: TimeArray.h:26
An array in time.
Definition: TimeArray.h:22
An array of scalar data types.
Definition: ScalarArray.h:18
TimeArray(const TimeArray &other)
copy constructor
Definition: TimeArray.h:47
TimeArray(const std::vector< SCALAR > &arg)
std::vector constructor
Definition: TimeArray.h:50