basic operators added as well as some basic functions#29
Merged
wadetb merged 6 commits intowadetb:masterfrom Jul 20, 2020
Kramer84:master
Merged
basic operators added as well as some basic functions#29wadetb merged 6 commits intowadetb:masterfrom Kramer84:master
wadetb merged 6 commits intowadetb:masterfrom
Kramer84:master
Conversation
Owner
|
Thanks for these changes, glad to hear the project was helpful. |
Owner
|
Can you restore the docs directory that was deleted, and also run |
Contributor
Author
|
The docs are restored and the tinyndarray tests passed. The tests for the tinynumpy script also pass, but only when numpy is not installed, but I suppose this is expected behavior. |
Owner
|
Excellent, thank you! |
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello, I have done some updates on your code.
Added some basic mathematical operators (normal and in place) for:
Added two basic functions to ndarray:
to convert the ndarray into a comprehensive list
to return a list of keys, where the value of the ndarray match an other given value
Modified the init() method so it accepts also lists as a shape.
Added the nan object (to be able to use np.nan).
Added the reshape function (not only as an method of the ndarray class)
The code is not entirely tested but should work.
I needed these functions in my project and had to work only with a basic python install using the standard library.
Thanks for the having made this project!