Giter Club home page Giter Club logo

Comments (3)

parsiad avatar parsiad commented on June 15, 2024

The two should be comparable in performance (see https://github.com/parsiad/mlinterp/blob/master/mlinterp/mlinterp.hpp#L94-L122), but I have not checked. It would be interesting to look at the assembly and/or benchmark, if you are up to it.

from mlinterp.

ghansham avatar ghansham commented on June 15, 2024

If I will test it, will let you know. Not very sure. Only point was about doing contiguous memory access for large arrays so that swaping doesn't affect performance. The good part is you have kept it configurable. And one more point are the interp methods MT safe?

from mlinterp.

parsiad avatar parsiad commented on June 15, 2024

Consider the following example:

interp(
	nd, ni,        // Number of points
	zd, zi,        // Output axis (z)
	xd, xi, yd, yi // Input axes (x and y)
);

The only buffer that is written to is zi. The other buffers (in this case, zd, xd, xi, yd, yi) are read-only and can be shared among threads.

from mlinterp.

Related Issues (2)

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.