21 for (
const auto &arg : args)
23 vec.push_back(arg.cast<T>());
This file has a definition of utils::pyargs_to_vec.
void pyargs_to_vec(const py::args &args, Vec< T > &vec)
Convert a py::args (a variable number arguments) object to a Vec object.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Namespace for utility functions.