| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/ / |
|
|/ / |
|
|\ \
| | |
| | | |
BUG: Fixes `ValueError` in `np.kron`
|
| | |
| | |
| | |
| | | |
Input such as matrix will cause a `ValueError` due to dim restrictions
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Smoke tests to ensure `np.kron` works.
* Shape tests to check if `np.kron` computes the right shape for
different edge cases of input arrays
|
| | |
| | |
| | |
| | |
| | |
| | | |
* `np.kron` uses `np.concatenate` which fails when shape is 0 along an
axis
* Refactor shape normalising portion.
|
|\ \ \
| |/ /
|/| | |
MAINT: Split `numpy.typing` into a public and private component
|
| | |
| | |
| | |
| | | |
i.e. `numpy.typing` and `numpy._typing`
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- improper urls
- a few use of single bakcticks where many are expected
- Proper numpydoc format
[ci skip]
[skip azp]
[skip circle]
|
| | |
|
|\ \
| | |
| | | |
MAINT: extend delete single value optimization
|
| | | |
|
| |\ \ |
|
| | | |
| | | |
| | | | |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Allow arrays of shape (1,) for delete's obj parameter to utilize the
optimization for a single value. See #16685.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When the delimiter is None and we are splitting on whitespace,
a final empty field is always ignored to match the behaviour
of pythons split: `" 1 ".split()`.
Closes gh-21052
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Having the `::` on new line can be ambiguous for RST parsers,
as `:` is a valid character for header underlines. And as underlines do
not have to be as long as the title for some rst parser this appears to
be a title.
Workaround is to have either a blank line, or put the `::` at the end of
previous one.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
ENH: Move `loadtxt` to C for much better speed
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- Floats with underscores
- Floats + hex floats.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
nrows gt chunksize.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Includes comments param, which is handled on the Python side.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Adds some tests for the behavior of control characters, e.g. comments, delimiter and quotechar, when they have the same value. At this stage, these tests are more to frame the discussion about what the behavior should be, not to test what it currently is. I personally think raising an exception is correct for most of these situations, though it's worth noting that np.loadtxt currently doesn't for most of these corner cases (and seems to randomly assign precedence to delimiter over comments or vice versa depending on the values).
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The `str` values for those weird values used for longdouble are
truncated by PyPy's complex `str` output. Which seems fine probably
since PyPy's `repr` does the right thing and will not truncate.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Longdouble is a source of problems here especially (mainly due to
it sometimes using double in the background, or maybe just buggy
implementations). Together with strings that correctly parsed
do not roundtrip (if printed using less precision), things just do
not work out... This fixes it, and is simpler/clearer anyway.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
PyPy has a small bug with error formatting, so these cause it to
crash. Simply skip the tests on old PyPy versions for now.
(Matti fixed the issue long ago, just waiting for a new PyPy release :))
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I had a lingering feeling I should double check this, turns out
that feeling was right ;).
(Fixes up the tokenizer doc a bit.)
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also fix style a bit to silence linter (hopefully), removes some
black style, but I am not too opinionated about that :)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also adds two basic new tests around files/strings containing
the \0 character (prooving that we handle that gracefully).
Also adds tests for:
* the `_` thousands delimiter (should fail, but doesn't for float128
right now)
* Failure modes when the number of rows changes (negative specifically)
Many of these tests came originally from Warren Weckesser and others
were added by Ross Barnowsky:
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Skiplines is just the more clear names since "rows" make a lot of
sense for output rows (which implies that a line is not empty for
example)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
And remove one silly leftover struct member that was unused
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also slightly cleans up the empty-line handling: previously
we sometimes just had some extra empty-lines that just effectively
never mattered
|