-
Notifications
You must be signed in to change notification settings - Fork 4
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
New methods and features for 0.6.0 #64
Merged
Merged
Conversation
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
feat: NDArray::transpose permutation
This was
linked to
issues
Jul 16, 2024
henrique-borba
added a commit
that referenced
this pull request
Sep 30, 2024
…oses #57 (#65) * CPU Benchmark files for initializers Added benchmark files for CPU initializers using phpBench * New methods and features for 0.6.0 (#64) * feat: squeeze manipulation routine with axis support * feat: NDArray::full implementation * feat: NDArray::fill release * feat: argmin and argmax with axis support * feat: NDArray::positive implementation * feat: NDArray::reciprocal implementation * feat: NDArray::reciprocal stubs * feat: NDArray::reciprocal stubs * feat: NDArray::swapaxes implementation feat: NDArray::transpose permutation * feat: NDArray::swapaxes and new transpose stubs * feat: NDArray::argmin and argmax keepdims option * feat: NDArray::rollaxis implementation * feat: NDArray::moveaxis implementation * fix: improvements to the slicing mechanism * feat: ndarray slicing stubs * fix: fixed slicing shape when arrays contain values * feat: hstack, vstack and dstack implementation * feat: column_stack implementation * feat: column_stack PHP stubs * feat: NDArray::concatenate implementation * feat: NDArray::append implementation * feat: NDArray::append stubs * docs: update README.md * fix: NDArray::append memory leak when using PHP arrays as arguments. * fix: new routines GPU implementation * Added Param Providers + Added parameter providers for readability and coding best practices - removed repetitive code * Added default phpbench file + Added default PHPBench configuration file * Update composer.json * Update initializers.c Fixed comment for NDArray ones * Fixed setUp for benchmarking Refactored function names for clarity, and fixed phpBench setup method * Added benchmarks for the linear algebra methods Added benchmarks for Linear Algebra methods with the exception of functions Cond, Inv, and Qr * Added benchmarks for sum and products methods Added benchmarks for sum and products methods * Added benchmarks for the arithmetic methods Added benchmarks for the arithmetic methods - removed initial testArray values * Added default values for aggregate benchmarking Added default Revs and iteration values for more accurate runtime time estimates. * Added Benchmarks for QR decomp, Condi, and Inverse - remove extra comments on Cholesky benchmark file - removed extra param comment in linalg file + Benchmark for QR decomposition function + Benchmark for Inverse function + Benchmark for Cond function * Added annotations and ignore configure~ file + Updated .gitignore to ignore generated configure file + Added MIT license under composer file * Added Group annotations Added Group annotations to all benchmarks. * Update readability of ArrayInitializerBench Updated Array Initializer Benchmark to utilize zeros Initializer for setup instead of hard coded arrays * Temp files in .gitignore Removed temp files from .gitignore --------- Co-authored-by: Henrique Borba <[email protected]>
11 tasks
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.
This is an update package that implements new methods and new features to existing methods for the 0.6.0 update.
Updated: NDArray::transpose
Transpose now allows the user to specify permutation axes.
Updated: NDArray::squeeze
Now support axis parameter
New: NDArray::full
Creates a new array initialized with a user-specified value.
New: NDArray->fill
Fills an existing array with the user-specified value.
New: NDArray::positive
Returns a copy of the NDArray with all positive values.
New: NDArray::reciprocal
Returns the reciprocal of the matrix, element-wise.
New: NDArray::swapaxes
Interchange array axes.
New: NDArray::argmin
Return the indices of the minimum values over a specified axis.
New:: NDArray::argmax
Return the indices of the maximimum values over a specified axis.
New:: NDArray::rollaxis
Roll the specified axis backwards, until it lies in a given position.
New:: NDArray::moveaxis
Move axes of an array to new positions.
New:: NDArray::hstack
Stack arrays in sequence horizontally (column wise).
New:: NDArray::vstack
Stack arrays in sequence vertically (row wise).
New:: NDArray::dstack
Stack arrays in sequence depth wise (along third axis).
New:: NDArray::column_stack
Stack 1-D arrays as columns into a 2-D array.
New:: NDArray::concatenate
Join a sequence of arrays along an existing axis.
New:: NDArray::append
Append values to the end of an array.