Code Monkey home page Code Monkey logo

Comments (3)

jacobwilliams avatar jacobwilliams commented on May 31, 2024 2

I think ideally, we want all the procedures in the library to work for all the integer/real/logical kinds that are available on the compiler. We don't want to force a user to have to recompile it for different kinds, and there are many use cases where the same application needs to use multiple kinds of real variables. Example: if a compiler adds real16, we shouldn't have to change any code, just recompile and it works.

Since this is basically impossible with standard Fortran, it's going to require some kind of external templating tool, e.g. jin2for.

from stdlib.

certik avatar certik commented on May 31, 2024

I typically prefer dp instead of wp (https://www.fortran90.org/src/best-practices.html#floating-point-numbers). Yes, for user code, writing it once is the way to go. For library code like stdlib, I think it's better to provide implementations for all precisions I think, so that users can simply call functions from stdlib without having to modify any file in stdlib to match their precision.

from stdlib.

milancurcic avatar milancurcic commented on May 31, 2024

A simpler variant of this has been implemented using standard kind parameters in stdlib_kinds.

@rweed if you think specific parts of it should be improved, let's tackle it in a new specific issue.

from stdlib.

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.