42 auto o = std::make_shared<data::List>(p);
43 for (
const auto& el : elements)
54 for(
const auto& [key,
value] : elements)
56 o->addElement(key,
value);
63 auto o = std::make_shared<data::NDArray>(p);
65 o->setType(typeAsString);
66 int size = shape.empty() ? 0 : std::accumulate(std::begin(shape), std::end(shape), 1, std::multiplies<int>());
67 o->setData(
static_cast<unsigned int>(size),
data);
73 auto o = std::make_shared<data::Int>(p);
80 auto o = std::make_shared<data::Long>(p);
87 auto o = std::make_shared<data::Float>(p);
94 auto o = std::make_shared<data::Double>(p);
101 auto o = std::make_shared<data::String>(p);
108 auto o = std::make_shared<data::Bool>(p);