def shape_to_strides(shape):
    """ Constructs strides from shape (for objects with no special strides). """
    strides = []
    curstride = 1
    for s in reversed(shape):
        strides.append(curstride)
        curstride *= s
    return list(reversed(strides))