* support broadcast_mul/div(csr, 1Ddense) = csr
* address code reviews and support broadcast_mul/div(csr, 2Ddense) = csr
* add test for both 1D and 2D dense case
* address code review and fix test error
* address code review and fix test error
* added proper overrides for basic arithmetic functions for sparse tensors.
* fix broadcast dimension
* address code reviews
* Random shuffle implementation
This operator randomly shuffles an NDArray along the first axis. The order of the elements in each subarray does not change. For exmaple, if an NDArray `x` is shuffled, the order of the subarrays `x[i]` randomly changes but the order of the elements in each `x[i]` does not change. It is modeled on `numpy.random.shuffle`.
In cpu, the shuffling of an 1D array is delegated to `__gnu_parallel::random_shuffle`, which utilizes openmp, for clang on linux and gcc on any OS and delegated to `std::shuffle` for other platforms. For an multidimensional array, the usual Fisher-Yates shuffling is implemented.
In gpu, it shuffles the array of indices representing the subarrays and then rearrange the elements of the data array according to the shuffled index array. To shuffle the index array, a random key is generated for each index and then the indices are sorted by the keys. The sorting is delegated to mshadow's `SortByKey` which again delegates the call to thrust's `sort_by_key`.
* Refactoring to avoid a preprocessing problem in Windows build
* Cosmetic changes
* Typo
* Adding const keyword at several places
* Fix the bug that integer arrays are not allowed
* Revise the comments to explain the unit test
* Add a check for correct array shape
* Revised unit test with larger arrays
* Replace the custom hash with 'str'
* Fix a bug due to the integer arithmetic in python2
* Revise comments for the unit test
* Fix the invalid fix in the commit f240714c
* Update random.md
* Update random.md
* TVM bridge support.
Support wrap TVM compiled function as a NDArray function.
* Testcases and CI to include TVM as dependency
* address review comments
* Add more comments, change to constexpr
* change to log warn
* update comment on the type code
* added function for loading content of nd_array files
* changed function name and added check for NULL
* removed no lint
* fixed whitespace
* corrected the casting
* added python wrapper for buffer loading
* added unit tests for loading from buffer
* whitespace fixes
* fix for python 3
* fixed test for py3
* python 3 problems
* fixed test
* switched to using temp files
* better use of temp files
* hopefully fixed permission issue
* removed specified directory
* hopefully this will work with windows
* fixed indentation
* check in to relaunch tests
Python 3 windows failed for no obvious reason, deleted some whitespace to relaunch
* switched to using temporary directory class
* removed unneeded imports
* moved imports to 1 location
* draft
* move to contrib
* rename op
* CR comments
* Update contrib.py
* Update contrib.py
* Update random.py
* update example in the doc
* update example in symbol doc
* CR comments
* update op name
* update op name
* update op name in test
* update test
* Update contrib.py
* Fix nnr = 0 crash for sparse dot
* Change comment
* Add sparse dot zero output unit test
* Fix test case
* Fix bug of square_sum
* Remove code
* Fix square_sum test case
* Fix broadcast min/max unit test failure
* Fix test
* Fix doc for __getitem__
* Add step to ndarrays slice
* Support broadcasting indices
* Enhance advanced indexing
* Fix
* Support mix of basic and advanced indices
* Add unit test
* Change name
* Add comment
* Fix pylint
* Add one more test case
* Address comments
* Add __setitem__ support
* Fix bug and add unit test for __setitem__
* Add docstring
* Fix bug
* Fix bug
* Fix gpu compile
* Add value assignment type support for array-like objects
* Fix test cases
* Rewrite _slice_assign and _slice_assign_scalar using kernel launch and support step
* Replace _gather_nd for basic indexing with _slice_assign and _slice_assign_scalar
* Clean up and bug fix
* Fix lint and bug fix
* Add autograd unit test for getitem and fix a bug
* Fix indent and docstring
* Add asscipy support and coo format support
* Comment misalignment change
* Add documentation for Sparse NDarray
* Change comment
* Adding comments and support for dtype
* Modifying tests
* Add spsp None check
* Fix lint
* negative index support for sparse slice
* fix lint
* getitem(int) for csr ndarray, support a[-1]
* remove unneccessary argument
* unittest and doc update
* fix rowsparsepull usage in the example
* update csr_matrix interface
* update rowsparse tutorials
* update csr/rsp constructor code&doc
* doc & bug fixes
* fix empty
* bug fix for desnity=0
* fix lint
* add more unit tests
* reduce test run time
* update infer shape test
* add one more test case with list
* Add Infer storage for sparse slice operator
* Remove unused files
* Indentation fix and add gpu test for fallback
* Change sum builtin to py_sum
* Add sum_axis(csr,axis=0)=dense and sum(csr,axis=1)=dense operator
* Documentation changes for sparse
* Add fallback unittest for keepdims and exclude
* PR review based changes
:
* Fix CHECK_NE
* Change in_stype to int
* Using const int instead of int
* Initialize mid with the start