Skip to content

test_linalg.test_matrix_transpose() calls asarray on nested sequence of arrays #461

Description

@mdhaber

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions