Giter Site home page Giter Site logo

Comments (6)

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

I think it's a good idea. However I'm quite busy right now with gtk so, if you want it quickly, you'll have to do it yourself. Otherwise, I'll try to take a took in one or two week.

from rust-gsl.

golddranks avatar golddranks commented on May 29, 2024

I can try and look into it. However, I just realised that that specialised versions of the functions aren't (of course) going to work without the trait specialisation support which is slowly coming along, but still quite far off. Dang! Well, I'll try and think about this.

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

I was thinking to create a Float type alias (like you proposed) on f32 or f64, depending of the option. However, replacing all f32 will take a while (there are... a lot ^^).

from rust-gsl.

iduartgomez avatar iduartgomez commented on May 29, 2024

Somehow related to this, I was working with matrix operations and unfortunately the linear algebra ops use the double precision matrix while the BLAS ops use the float matrix.

I get this is a limitation or design with GSL itself but I wonder if there is someway to get around it doing some magic in rust with custom #[repr(C)] structs casting between f64 and f32 types to avoid unnecessary copying.

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

I don't have much time to work on this crate lately unfortunately... My primary focus for the moment is to make the binding to the 2.0 version. But if you have an idea on how to do this, I'd gladly accept a PR.

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

There are now MatrixF32 and MatrixF64 types as well as equivalent for other types. I can't make the GSL functions generic over them unfortunately though. So I think everything that could be done was already done.

from rust-gsl.

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.