Skip to content

svdInPlace: Flip the inequality on the dims restriction #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 20, 2018

Conversation

mark-poscablo
Copy link
Contributor

Following up on #2282, svdInPlace did have its inequality on the input array dims restriction flipped. It asserted before that the input's dim0 <= dim1, but I flipped it to >=, which is what it should've been (see the issue for my explanation of why this should be the case). I addded some tests to verify this and I also noted this down in the docs for future users of this function.

umar456
umar456 previously approved these changes Oct 30, 2018
svdInPlaceTest<TypeParam>(500, 300);
}

// dim0 < dim1 case not supported for now
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An expect throw/error would be a better test but this is fine.

@9prady9
Copy link
Member

9prady9 commented Oct 31, 2018

@mark-poscablo empty tests are failing everywhere, can you please look into those.

@umar456 umar456 merged commit 2c6b5c0 into arrayfire:master Nov 20, 2018
9prady9 pushed a commit to 9prady9/arrayfire that referenced this pull request Mar 27, 2019
* Remove dims restriction from svdInPlace
* Restore dims assertion, but flipped the direction of the inequality. Updated docs.

(cherry picked from commit 2c6b5c0)
umar456 pushed a commit that referenced this pull request Apr 17, 2019
* Remove dims restriction from svdInPlace
* Restore dims assertion, but flipped the direction of the inequality. Updated docs.

(cherry picked from commit 2c6b5c0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants