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

Method compute

include/pybind11/pytypes.h:2019–2028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017#endif
2018
2019 bool
2020 compute(size_t length, size_t *start, size_t *stop, size_t *step, size_t *slicelength) const {
2021 return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
2022 (ssize_t) length,
2023 (ssize_t *) start,
2024 (ssize_t *) stop,
2025 (ssize_t *) step,
2026 (ssize_t *) slicelength)
2027 == 0;
2028 }
2029 bool compute(
2030 ssize_t length, ssize_t *start, ssize_t *stop, ssize_t *step, ssize_t *slicelength) const {
2031 return PySlice_GetIndicesEx(

Callers 2

TEST_SUBMODULEFunction · 0.80
vector_modifiersFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_SUBMODULEFunction · 0.64