Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct doc string for treduce #19

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading