Git Product home page Git Product logo

proposals's People

Contributors

johelegp avatar

Watchers

 avatar  avatar  avatar

proposals's Issues

Constraining the return type of `square_magnitude`

5.3 (3) states:

In code, it would look like a trailing requires scalar_number<decltype(x * x)>. That doesn’t
scale to mixed expressions with more operations.

It could also be nicer with:

scalar_number auto square_magnitude() { return x * x + y * y; }

right?

Maybe the concepts library should exist on its own?

I think there are many benefits to making the concepts library a separate product from mp-units:

  1. You use a standard_case for concepts, which is inconsistent with the mp-units practices 😜
  2. It is your independent hard work, so having this in a separate repository would increase your visibility
  3. It would be easier for other libraries (safe numerics, linear algebra, ...) to reuse those concepts and provide feedback if it is not embedded as a part of mp-units.

The above of course assumes that the library would be available in the Complier Explorer (single header libraries don't need any special support) and Conan.

Consider renaming `vector_scalar`

vector_scalar is a really confusing name especially with 5.2.(4) in mind. Maybe vector_space_scalar or scalar_for_vector_space could be better names? Also, in case a rename of vector_space to linear_space is requested, this refactoring makes the final type read better as well.

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.