MCPcopy Create free account
hub / github.com/pybind/pybind11 / create

Method create

include/pybind11/numpy.h:2095–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2093 using Type = array_t<Return>;
2094
2095 static Type create(broadcast_trivial trivial, const std::vector<ssize_t> &shape) {
2096 if (trivial == broadcast_trivial::f_trivial) {
2097 return array_t<Return, array::f_style>(shape);
2098 }
2099 return array_t<Return>(shape);
2100 }
2101
2102 static Return *mutable_data(Type &array) { return array.mutable_data(); }
2103

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected