Save the shape as `cdef Py_ssize_t rows, cols` separately and access those variables.