JuliaPhysics / JuliaPhysics/Unitful.jl
Way to ustrip an array efficiently
- Dominant language
- Julia
- Stars
- 675
- Forks
- 124
- Avg merge
- 3h 38m
- Merged PRs (30d)
- 1
Description
Looks like there is no single way to "ustrip all values in an array, as efficiently as possible".
- `ustrip(x)`: efficient for `Array` (reinterprets), not efficient for `range` (materializes); also, deprecated
- `ustrip.(x)`: efficient for `range` of `Quantities` (keeps a range), not efficient for `range` of regular numbers or for `Array` (materializes/copies)
Would be great to have such a way!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the `ustrip(x)` and `ustrip.(x)` entry points for `Array`, `range`, `Quantities`, and regular numbers. Define a single approach that avoids unnecessary materialization or copying while preserving efficient ranges, then verify the behavior across those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100