Giter VIP home page Giter VIP logo

Comments (5)

Kunde21 avatar Kunde21 commented on August 15, 2024

It could be removed or added to internal/asm in vectorized form like this to add some speed.

from floats.

kortschak avatar kortschak commented on August 15, 2024

@Kunde21 would you put together a PR for that with benchmarks?

from floats.

Kunde21 avatar Kunde21 commented on August 15, 2024

I've been using some of these functions for vectorization practice. I've got these lying around in different scratch files:
CumSum, CumProd, Div, Mul, Sum, Scale, AddConst, Distance(L=1), Distance(L=+Inf)

Some can be pulled from numgo with minor adjustments to remove the ndarray broadcasting inherant to that library. I'll dig them up and pull them all into a PR with benchmarks (~3x speedup is the usual). Should I send a PR for both floats and asm with implementations and calls?

I'm going to work on Equal, EqualApprox, Same, HasNaN, Max, Min, and Span in my free time.

from floats.

kortschak avatar kortschak commented on August 15, 2024

I think the path here is to first send a post to gonum-dev indicating the intention and then given people are happy with it (I can see no real reason not to be) then send a PR to internal/asm and then here using the asm code - no assembler in floats directly.

from floats.

btracey avatar btracey commented on August 15, 2024

It's probably not so terrible to have, especially since it's used in other places. I'm closing this. I think future additions should be subject to the "does it treat the data as a whole"

from floats.

Related Issues (7)

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.