NumPower / numpower

PHP extension for efficient scientific computing and array manipulation with GPU support
https://numpower.org
Other
192 stars 4 forks source link

New methods and features for 0.6.0 #64

Closed henrique-borba closed 4 months ago

henrique-borba commented 4 months ago

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.