Code Monkey home page Code Monkey logo

Comments (4)

epaillas avatar epaillas commented on June 19, 2024 1

Thanks a lot for the prompt reply - this indeed solved the issue, and I'm glad to know it was just a silly mistake from my side. You're also correct about updating counts[j], as I would be underestimating the pair counts otherwise.

from celllistmap.jl.

lmiq avatar lmiq commented on June 19, 2024

Here:

(x, y, i, j, d2, output) -> count_pairs!(i, DD),

output and DD (which name doesn't matter)

must be the same variable. This is just a function definition that for the input variables on the left returns the result of the function on the right.

On the right a variable that is not on the left only appears if it is some data that has to be used but is not provided by the standard interface (like masses, for example)

from celllistmap.jl.

lmiq avatar lmiq commented on June 19, 2024

(otherwise you are updating the DD array, which is not threaded, and you have concurrency problems)

from celllistmap.jl.

lmiq avatar lmiq commented on June 19, 2024

Also note that within the count_pairs function you may want to update both count[i] and count[j], because the function only runs once per pair. But this is not related to threading.

from celllistmap.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.