Ipaper.par_mapslices
— Functionpar_mapslices(f, A::AbstractArray{<:Real,N}, args...; dims=N, kw...)
Arguments
dims
: the dimension apply f
@seealso mapslices
Example
using Ipaper
+@time map(f, 1:10)
diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json
index 19b3804..aeb12dc 100644
--- a/dev/.documenter-siteinfo.json
+++ b/dev/.documenter-siteinfo.json
@@ -1 +1 @@
-{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-03T09:31:34","documenter_version":"1.7.0"}}
\ No newline at end of file
+{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-03T09:41:02","documenter_version":"1.7.0"}}
\ No newline at end of file
diff --git a/dev/Parallel/index.html b/dev/Parallel/index.html
index 43a8a96..3fc6e20 100644
--- a/dev/Parallel/index.html
+++ b/dev/Parallel/index.html
@@ -6,7 +6,7 @@
# get_clusters()
@time par_map(f, 1:10)
-@time map(f, 1:10)source Arguments @seealso Example Arguments @seealso Example TODO: par_mapslices is low efficiency TODO: par_mapslices is low efficiency ExampleIpaper.par_mapslices
— Functionpar_mapslices(f, A::AbstractArray{<:Real,N}, args...; dims=N, kw...)
dims
: the dimension apply fmapslices
using Ipaper
+@time map(f, 1:10)
Ipaper.par_mapslices
— Functionpar_mapslices(f, A::AbstractArray{<:Real,N}, args...; dims=N, kw...)
dims
: the dimension apply fmapslices
using Ipaper
using Distributions
A = rand(100, 100, 30, 4)
@@ -15,6 +15,6 @@
par_mapslices(mean, A)
# @time r = mapslices(slope_mk, A; dims=3);
-# @time r_par = par_mapslices(slope_mk, A; dims=3); # 5X faster
Ipaper.isCurrentWorker
— FunctionisCurrentWorker() -> Bool
+# @time r_par = par_mapslices(slope_mk, A; dims=3); # 5X faster
Ipaper.isCurrentWorker
— FunctionisCurrentWorker() -> Bool
isCurrentWorker(i) -> Any
-
!isCurrentWorker(i) && continue
Settings
This document was generated with Documenter.jl version 1.7.0 on Thursday 3 October 2024. Using Julia version 1.10.5.