def test_tril_indices():
    il1 = _tril_indices(4)
    il2 = _tril_indices(4, -1)

    a = np.array([[1, 2, 3, 4],
                  [5, 6, 7, 8],
                  [9, 10, 11, 12],
                  [13, 14, 15, 16]])

    assert_array_equal(a[il1],
                       np.array([1, 5, 6, 9, 10, 11, 13, 14, 15, 16]))

    assert_array_equal(a[il2], np.array([5, 9, 10, 13, 14, 15]))
Return a list of policy type description string.
dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_fixes.py/test_tril_indices--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/loadbalancer/drivers/elb.py/ElasticLBDriver.ex_list_balancer_policy_types