| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / / / /
| | | | |
| | | | |
| | | | | |
outer_steps array should be size 4 since op_count can be either 2 or 4
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Fix array_equal and array_equiv issue
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
array_equal() and array_equiv() don't work for string arrays and record arrays. This is because those methods use numpy.equals ufunc for comparison, and there are no equal ufuncs registered for strings and record arrays. Replace numpy.equals with '==' array operation, which handles strings and record arrays.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fancy Indexing enhancements and bug fixes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
With the slight modification of the MapIter API to allow newaxis
in fancy indexes, the MapIterObject consec field is already the
axis to transpose to, and with a leading newaxis, even if
iteraxes[0] is 0, consec may not be 0.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is a first version of fancy indexing tests by mimicing the
behavoir in python. Note that error messages are not tested.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is more important when allowing newaxis, but already before
lead to successful indexing when it should not be suspected.
Also some maintenance.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This commit allows the use of None when also using fancy indexing.
To achieve this mit->consec is used to note the denote the
transposition axis (which means that if its consecutive but at the
start, mit->consec==0, and no transposition is necessary).
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Due to subspace creation for fancy indexing selecting the 0s
element on every fancy dimension, this failed if the dimension
was empty. Propagating check_index to disable the unnecessary
check in this case.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix 0-d array special case from reductions.
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This channels scalars through the usual reduction machinery and
modifies it slightly to correctly support scalar reductions of
identity-less ufuncs.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: Remove unnecessary 0-d special case.
|
| | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | | |
This special case was made unnecessary by changes to the nditer.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Broadcast arrays fix
|
| | | | | | |
|
| | |_|/ /
| |/| | |
| | | | |
| | | | | |
broadcast_arrays() does not handle struct and custom dtypes correctly. Dtype of returned broadcasted arrays is always '|V8'. Fix broadcast_arrays() so that dtype of returned arrays is correct dtype for user defined dtypes.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Allow ufunc operand flags to be set
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
default operand flags set by the nditer object. For example, after
calling PyUFunc_FromFuncAndData() to create a ufunc object, the first
operand can be set to be read/write like so:
ufunc->op_flags[0] = NPY_ITER_READWRITE
Setting flags for output operands is not supported at this time and
will raise an exception.
This change also allows the global nditer flags to be set, so after
setting the read/write flag, the reduce ok flag could be set like so:
ufunc->iter_flags = NPY_ITER_REDUCE_OK
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Setuptools tends to set +x to the installed test scripts, which makes
numpy.test() to not run any tests. Having --exe always enabled is not
problematic because only files matching 'test_*.py' are looked into.
|
| | | | |
|
| |_|/
|/| | |
|
|/ /
| |
| |
| |
| |
| | |
Audit numpy/lib/arraypad.py for pep8 and pep257 compliance.
Also fix a few minor docstring corrections converting ] into ) or
vice versa.
|
|\ \
| | |
| | | |
get_shared_lib_extension(): strip debug extension from so ext
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
the configuration variables are not a reliable mean to get the shared
library extension. darwin, windows and debug linux are wrong in these
variables.
SHLIB_SUFFIX is also wrong as of python 3.3.1
closes #3057
|
|\ \ \
| | | |
| | | | |
DOC: Change example to demonstrate function
|
| | | |
| | | |
| | | | |
"a * 0.5" example might as well be new_func(a) directly, it doesn't demonstrate the purpose of apply_along_axis().
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix clang build issue
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
A version check for Python >= 2.6 is no longer needed as versions < 2.6
are no longer supported.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some error returns were returning nothing rather than NULL.
Closes #3300.
|
|\ \ \ \
| | | | |
| | | | | |
bugfix in build_ext: check that ext has an attribute before trying to us it
|
| | | | | |
|