Skip to content

WIP Added unary ops#14

Draft
stemann wants to merge 23 commits intomasterfrom
feature/unary_ops
Draft

WIP Added unary ops#14
stemann wants to merge 23 commits intomasterfrom
feature/unary_ops

Conversation

@stemann
Copy link
Owner

@stemann stemann commented Mar 22, 2025

No description provided.

@codecov
Copy link

codecov bot commented Mar 22, 2025

Codecov Report

❌ Patch coverage is 88.26531% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.72%. Comparing base (848c81a) to head (05cfba2).

Files with missing lines Patch % Lines
src/ops.jl 66.66% 19 Missing ⚠️
src/number_types.jl 92.85% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #14       +/-   ##
===========================================
+ Coverage   24.52%   38.72%   +14.19%     
===========================================
  Files           8       11        +3     
  Lines        1211     1379      +168     
===========================================
+ Hits          297      534      +237     
+ Misses        914      845       -69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stemann stemann force-pushed the feature/unary_ops branch 3 times, most recently from 19ceee5 to c681ce0 Compare March 27, 2025 08:02
@stemann stemann force-pushed the feature/unary_ops branch 5 times, most recently from 38e36c8 to 0e4de95 Compare April 6, 2025 11:56
@stemann stemann force-pushed the feature/unary_ops branch from 8d4ee5b to 985b215 Compare April 15, 2025 08:33
element_types = MLX.supported_number_types(MLX.DeviceTypeGPU) # TODO Excluding Float64

array_sizes = [
# (), # TODO: Excluded broadcasting over 0-dimensional Array: Yields scalar result
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadcasting over a zero-dimensional array returns a scalar and not a zero-dimensional array in current Julia: JuliaLang/julia#28866

@stemann stemann force-pushed the feature/unary_ops branch 3 times, most recently from 41d3de5 to d0b3311 Compare May 4, 2025 09:16
@stemann stemann force-pushed the feature/unary_ops branch 2 times, most recently from c08af56 to 28ee04b Compare August 9, 2025 10:05
@stemann stemann force-pushed the feature/unary_ops branch from d2e62ce to 1e46f09 Compare August 16, 2025 15:17
Also:
* Added necessary eval of MLX array data in Base.unsafe_convert(::Type{Ptr{T}}, array::MLXArray{T, N})
* Implemented Base.similar for MLXArray.
* Added supported_number_types(::DeviceType = DeviceTypeCPU)
@stemann stemann force-pushed the feature/unary_ops branch from 1e46f09 to 7c062b3 Compare August 18, 2025 08:49
* Added handling of broadcast over empty tuple.
* Added constructors for UndefInitializer.
* Added handling of JuliaLang/julia#28866 - dropping 0-dim arrays to scalars.
* Workaround for sign on CPU for unsigned
* Using Julia 1.10 compatible `ceil`, `floor`, and `round`: `ceil(T, x)` -> `T(ceil(x))`
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.

1 participant