From 34d5b0d29581418cd36e14ff3fb27fa674f20561 Mon Sep 17 00:00:00 2001 From: Fabian Gans Date: Fri, 18 Oct 2024 10:52:13 +0200 Subject: [PATCH] Fix mapreduce dispatch (#191) --- src/mapreduce.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapreduce.jl b/src/mapreduce.jl index 245983e..6f2b12d 100644 --- a/src/mapreduce.jl +++ b/src/mapreduce.jl @@ -4,7 +4,7 @@ macro implement_mapreduce(t) t = esc(t) quote - function Base._mapreduce(f, op, v::$t) + function Base._mapreduce(f, op, ::IndexCartesian, v::$t) mapreduce(op, eachchunk(v)) do cI a = v[to_ranges(cI)...] mapreduce(f, op, a)