Skip to content

Commit

Permalink
Correct doc string for treduce
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace authored Jan 31, 2024
1 parent 788d38e commit e10d066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OhMyThreads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ function treducemap end
schedule::Symbol =:dynamic,
outputtype::Type = Any)
Like `tmapreduce` except the order of the `f` and `op` arguments are switched. Perform a reduction over `A`,
applying a single-argument function `f` to each element, and then combining them with the two-argument
A multithreaded function like `Base.reduce`. Perform a reduction over `A` using the two-argument
function `op`. `op` **must** be an [associative](https://en.wikipedia.org/wiki/Associative_property) function,
in the sense that `op(a, op(b, c)) ≈ op(op(a, b), c)`. If `op` is not (approximately) associative, you will
get undefined results.
Expand Down

0 comments on commit e10d066

Please sign in to comment.