8000 Rewrite of the library by Nucs · Pull Request #336 · SciSharp/NumSharp · GitHub
[go: up one dir, main page]

Skip to content

Rewrite of the library #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 355 commits into from
Aug 6, 2019
Merged

Rewrite of the library #336

merged 355 commits into from
Aug 6, 2019

Conversation

Nucs
Copy link
Member
@Nucs Nucs commented Aug 6, 2019

Most of the library (>95%) has been rewritten within over 350 commits in course of 2 months.
Bold key features:

  • Full n-d, slice, broadcasting and axis support in all reimplemented methods (e.g. np.sum, np.concatenate)
  • Broadcasting n-d shapes against each other.
  • NDArray Slicing and nested slicing (nd["-1, ::2"]["1::3, :, 0"])
  • Full and precise (to numpy) type resolving and conversion (upcasting, downcasting and all other cases)
  • Use of unmanaged memory and unsafe code in favor of performance.
  • NumSharp no longer perform copies except for cases when numpy does. Compared to previous version, indexing an n-d array (e.g. nd[0,1] when shape is (3,3,3,3)) would return a copy when now it returns a reference (alias).

https://www.nuget.org/packages/NumSharp/0.11.0-alpha2

In the following week I'll publish articles about the changes and the backend of NumSharp.
Thanks to @henon for collaborating with me on slicing and broadcasting and to @Oceania2018 for the full support.

Nucs and others added 30 commits July 24, 2019 00:24
- Revamped np.random.shuffle
- Changed np.random.permutation to use np.random.shuffle
- Added support for NDArray.ToString() when Shape is sliced.
- Added support for Cast-copy which casts src and writes to dst.
- Shape.Clone performs deep clone by default.
…ast, Revamped MakeGeneric

- Revamped np.ravel
- removed IStorage.AsArray
- Added UnmanagedStorage.Cast
- Revamped MakeGeneric and added changes to NDArray<T>
- Made int->Shape to explicit cast.
@Nucs Nucs added this to the v0.11.0 Byte Storage milestone Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0