According to the standard, asarray must support nested sequences of Python scalars. However, test_matrix_transpose ultimately calls asarray on a list of lists of arrays:
|
def _test_matrix_transpose(namespace, x): |
|
matrix_transpose = namespace.matrix_transpose |
|
res = matrix_transpose(x) |
|
true_val = lambda a: _array_module.asarray([[a[i, j] for i in |
|
range(a.shape[0])] for j in |
|
range(a.shape[1])], |
|
dtype=a.dtype) |
Crossref gh-142.
According to the standard,
asarraymust support nested sequences of Python scalars. However,test_matrix_transposeultimately callsasarrayon a list of lists of arrays:array-api-tests/array_api_tests/test_linalg.py
Lines 516 to 522 in 434a419
Crossref gh-142.