Skip to content
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

FEAT: Matrix invert function #608

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Conversation

cemoody
Copy link
Contributor

@cemoody cemoody commented Nov 7, 2015

Implemented a batch matrix inversion function. Addresses part of #575, but that still needs to support a determinant function

@cemoody cemoody force-pushed the moody/matrixops branch 2 times, most recently from 765c76a to 360b2a1 Compare November 7, 2015 21:51
import six
import numpy.linalg

import cupy
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this line. Chainer must not directly import the cupy. Use the chainer.cuda.cupy.
For example,
https://github.com/pfnet/chainer/blob/83800a77b9118fa4d7e98b03056a95f488e96a51/chainer/functions/array/select_item.py#L49

@okuta okuta added the cat:feature Implementation that introduces new interfaces. label Nov 8, 2015
@cemoody cemoody force-pushed the moody/matrixops branch 11 times, most recently from 04d043b to a7bf8b3 Compare November 8, 2015 16:46
@cemoody
Copy link
Contributor Author

cemoody commented Nov 8, 2015

OK, thanks for reviewing @okuta. I fixed the failing tests and changed cupy -> chainer.cuda.cupy.

@cemoody cemoody force-pushed the moody/matrixops branch 3 times, most recently from bb1e38e to d59de3c Compare November 10, 2015 01:01
@cemoody cemoody mentioned this pull request Nov 10, 2015
@unnonouno unnonouno added this to the v1.6.0 milestone Dec 2, 2015
@okuta okuta self-assigned this Jan 5, 2016
@okuta
Copy link
Member

okuta commented Jan 5, 2016

@cemoody Do you have time to work on this PR? Since it requires some knowledge to resolve conflicts, we will help you to fix the code.

I am sorry to make you hurry, but we will work on sending you PR if no response is returned until the end of this week (1/8).

@cemoody
Copy link
Contributor Author

cemoody commented Jan 8, 2016

@okuta Yes, please do send a PR. As you recognized, it's difficult for me to resolve the conflicts.

If you send a PR, I'll be happy to review! Many thanks :)

@okuta
Copy link
Member

okuta commented Jan 16, 2016

I'm sorry it takes a long time to fix.
Please merge the following PR.
cemoody#2

Fix matrixops for cupy v1.5
@okuta okuta merged commit 698f4e8 into chainer:master Jan 19, 2016
@okuta
Copy link
Member

okuta commented Jan 19, 2016

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:feature Implementation that introduces new interfaces.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants