Skip to content

dask.array.linalg.tsqr incorrectly reported shapes #3583

Closed

Description

@convexset
a = np.random.random((3, 5))
data = da.from_array(a, chunks=5)
q, r = da.linalg.tsqr(data)
q.shape, r.shape

we get...

((3, 5), (5, 5))

wherein the shape of q is wrong. It should be a (3, 3).

But q.compute() correctly yields a 3x3 matrix but of course q.T.dot(q).shape will yield (5,5) which will cause tests to fail (if such tests were there).

I'm presently mucking around tsqr. So perhaps I might tidy up the tests there.

Activity

  1. changed the title [-]dask.array.linalg.tsqr minor bug[/-] [+]dask.array.linalg.tsqr incorrectly reported shapes[/+] on Jun 9, 2018
  2. convexset commented on Jun 9, 2018

    @convexset
    ContributorAuthor

    Fix in: #3575

  3. mrocklin commented on Jun 10, 2018

    @mrocklin
    Member
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