Return a new view with all of the dimensions of length 1 removed
| 1264 | |
| 1265 | /// Return a new view with all of the dimensions of length 1 removed |
| 1266 | array squeeze() { |
| 1267 | auto &api = detail::npy_api::get(); |
| 1268 | return reinterpret_steal<array>(api.PyArray_Squeeze_(m_ptr)); |
| 1269 | } |
| 1270 | |
| 1271 | /// Resize array to given shape |
| 1272 | /// If refcheck is true and more that one reference exist to this array |