Skip to content

MAINT: Use np.ix_ to extract submatrix - #389

Merged
mmcky merged 1 commit into
masterfrom
submatrix
Feb 6, 2018
Merged

mmcky merged 1 commit into
masterfrom
submatrix

Conversation

@oyamad

@oyamad oyamad commented Feb 4, 2018

Copy link
Copy Markdown
Member

Replace matrix[indices, :][:, indices] with matrix[np.ix_(indices, indices)].

I happened to find this fact.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.001%) to 94.91% when pulling d1d48f8 on submatrix into 2aa53f7 on master.

@oyamad oyamad added the ready label Feb 4, 2018
@mmcky

mmcky commented Feb 4, 2018

Copy link
Copy Markdown
Contributor

@mmcky
mmcky merged commit 49ad385 into master Feb 6, 2018
@mmcky
mmcky deleted the submatrix branch February 6, 2018 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants