-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndarray: make _minus type stable (#345)
* ndarray: make _minus type stable The current importer `_import_ndarray_functions` provide `_minus(x, y; out = x)` and its return value is rely on keyword argument `out`. But Julia cannot (or hard to) do type inference on keyword argument at the moment, so this commit propose a new method `_minus!(x, y)` which modified the first argument, instead of provide a keyword argument. The new method can make type stable. fix #341 * add test cases
- Loading branch information
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters