Repository navigation
ENH: Allow const idx to be found - #5680
Conversation
8547bbf to
baf7862
Compare
Codecov Report
@@ Coverage Diff @@
## master #5680 +/- ##
==========================================
+ Coverage 82.17% 82.18% +<.01%
==========================================
Files 593 593
Lines 93671 93678 +7
Branches 10354 10352 -2
==========================================
+ Hits 76978 76985 +7
- Misses 14295 14296 +1
+ Partials 2398 2397 -1
Continue to review full report at Codecov.
|
Check const_idx when when has_const is set to True Add test to ensure that f is computed when hasconst
baf7862 to
957cea9
Compare
|
This removes the short-circuiting to avoid checking for where the constant is. |
|
A file search does not find any usage of hasconst outside of the related unit tests. |
|
It is imo a minor cost in the usual case of a columns of 1s. It should skip
the implicit const check is has const is 1 too, and I'll update that since
we can't find the const column anyway.
…On Sat, May 11, 2019, 13:28 Josef Perktold ***@***.***> wrote:
A file search does not find any usage of hasconst outside of the related
unit tests.
I'm pretty sure I used it somewhere, maybe a notebook or PR, as
computational shortcut. (saves two matrix_rank computation in implicit
constant case, but only one ptp in the explicit constant case.)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5680 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKTSRILEIP47F74B5F7N7LPU23WRANCNFSM4HMATNUA>
.
|
Check const_idx when has_const is set to True
NumPy's guide.