def get_matrix_stride(mat):
    """Get the stride between lines of a C matrix"""
    itemsize = mat.itemsize
    stride = mat.strides[0] // itemsize
    assert mat.strides == (stride * itemsize, itemsize)
    return stride