Skip to content

Commit 61e165d

Browse files
committed
Update README.md
1 parent b0c75c8 commit 61e165d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -503,12 +503,11 @@ There exist objects or packages with functionalities similar to those provided b
503503
- the element type of a mapped array is inferred and cannot be specified as for a lazy map
504504
which is type-stable with respect to its `eltype`.
505505

506-
* `lazymap(T, A)` is the analogue of `of_eltype(T, A)` and `as_eltype(T, A)` respectively
507-
using [`MappedArrays`](https://github.com/JuliaArrays/MappedArrays.jl) and
508-
[`TypeUtils`](https://github.com/emmt/TypeUtils.jl).
506+
* `as_eltype(T, A)`, a shortcut for `lazymap(T, identity, A)`, is the analogue of
507+
`of_eltype(T, A)` in [`MappedArrays`](https://github.com/JuliaArrays/MappedArrays.jl).
509508

510-
* `LazyMaps` does not implement lazily mapping multiple arrays, a possibility offered by
511-
`MappedArrays`, but this may be emulated by combining `LazyMaps` and
509+
* `TypeUtils.LazyMaps` does not implement lazily mapping multiple arrays, a possibility
510+
offered by `MappedArrays`, but this may be emulated by combining `TypeUtils.LazyMaps` and
512511
[`ZippedArrays`](https://github.com/emmt/ZippedArrays.jl).
513512

514513
* `BroadcastArray(f, A)` and `BroadcastArray{T}(f, A)` using
@@ -517,12 +516,12 @@ There exist objects or packages with functionalities similar to those provided b
517516
lazy maps are writable if inverse function is known or specified and can be used over
518517
other collections than arrays.
519518

520-
As shown by [benchmark tests](./test/benchmarks.jl) for `LazyMaps` and these different
521-
packages, evaluating `B[i]` for an object `B` lazily representing `f.(A)` is as fast as
522-
calling `f(A[i])`. Also any of these objects can be used with no allocations and, except
523-
`BroadcastArray`, no construction overheads compared to `f(A[i])`. A `BroadcastArray` using
524-
[`LazyArrays`](https://github.com/JuliaArrays/LazyArrays.jl) is as fast as `mapreduce` for
525-
reductions (like a `sum`) of the broadcast array which provides some speedup for large
519+
As shown by [benchmark tests](./test/benchmarks.jl) for `TypeUtils.LazyMaps` and these
520+
different packages, evaluating `B[i]` for an object `B` lazily representing `f.(A)` is as
521+
fast as calling `f(A[i])`. Also any of these objects can be used with no allocations and,
522+
except `BroadcastArray`, no construction overheads compared to `f(A[i])`. A `BroadcastArray`
523+
using [`LazyArrays`](https://github.com/JuliaArrays/LazyArrays.jl) is as fast as `mapreduce`
524+
for reductions (like a `sum`) of the broadcast array which provides some speedup for large
526525
arrays.
527526

528527
Direct dependencies:

0 commit comments

Comments
 (0)