Skip to content

Conversation

@henrique-borba
Copy link
Member

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Broadcast improvements

The commits below basically implements broadcasting for NDArray_Greater, NDArray_LessEqual, NDArray_Equal and NDArray_Maximum. It also upgrades the NDArray_Broadcast function to support more variations.

feat: NDArray_IsBroadcastable and NDArray_Broadcast now properly hand…
feat: NDArray_Greater broadcast.
feat: NDArray_LessEqual and NDArray_GreaterEqual broadcast.
fix: NDArray_Maximum not using broadcasted variables.

Bug fixes

NDArray methods were ignoring the object type and was causing segmentation fault when a incompatible object was passed as an argument. This checks if the input object is actually an NDArray (just reusing the GDImage object checking)
fix: ZVAL_TO_NDARRAY not checking class name. Causing segmentation fa…
Slicing was broken because of signature mismatch
fix: zpp mismatch arginfo in NDArray_Slice

New methods

Binominal random initializer
feat: Implemented binominal random initializer.
NDArray::expand_dims to expand the shape of an array.
feat: NDArray::expand_dims implementation.

@henrique-borba henrique-borba added bug Something isn't working enhancement New feature or request labels Sep 1, 2023
@henrique-borba henrique-borba added this to the 1.0 milestone Sep 1, 2023
@henrique-borba henrique-borba self-assigned this Sep 1, 2023
@henrique-borba henrique-borba merged commit 6510671 into main Sep 1, 2023
@henrique-borba henrique-borba deleted the feat/update_package_1 branch September 1, 2023 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

2 participants