MCPcopy Create free account
hub / github.com/davisking/dlib / squeeze

Method squeeze

dlib/external/pybind11/include/pybind11/numpy.h:1044–1047  ·  view source on GitHub ↗

Return a new view with all of the dimensions of length 1 removed

Source from the content-addressed store, hash-verified

1042
1043 /// Return a new view with all of the dimensions of length 1 removed
1044 array squeeze() {
1045 auto &api = detail::npy_api::get();
1046 return reinterpret_steal<array>(api.PyArray_Squeeze_(m_ptr));
1047 }
1048
1049 /// Resize array to given shape
1050 /// If refcheck is true and more that one reference exist to this array

Callers 2

py_get_histogramFunction · 0.80
loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected