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

Function convert_dsizes_to_vector

include/pybind11/eigen/tensor.h:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146template <typename T, int size>
147std::vector<T> convert_dsizes_to_vector(const Eigen::DSizes<T, size> &arr) {
148 std::vector<T> result(size);
149
150 for (size_t i = 0; i < size; i++) {
151 result[i] = arr[i];
152 }
153
154 return result;
155}
156
157template <typename T, int size>
158Eigen::DSizes<T, size> get_shape_for_array(const array &arr) {

Callers 2

cast_implFunction · 0.85
cast_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected