Giter VIP home page Giter VIP logo

Comments (3)

tomstewart89 avatar tomstewart89 commented on August 20, 2024

Hey @bobthefairycat , thanks for the information! I guess in my update to 4.0.0 I missed the unary operator-, I'll push a change for that in a moment.

As for the implicit casting from float to double that you pointed out, the cause is as you discovered on #64. It wasn't explicitly intended to disable these implicit casts in 4.0.0 but at the same time they're kind of notorious for being bug prone so I think it might be for the best that it's flagged as an error.

FWIW you can also use the Cast<T> to convert a Matrix it into a different datatype for example:

double y = 1.0;
Matrix<2,1, double> tmp = z_hat.Cast<double>() - y;

from basiclinearalgebra.

tomstewart89 avatar tomstewart89 commented on August 20, 2024

Ok, I reinstated the operator- with version 4.1. Let me know if you have any more trouble!

from basiclinearalgebra.

bobthefairycat avatar bobthefairycat commented on August 20, 2024

I appreciate the effort to fix the bug! To be "safe", I packaged out the project with instructions to use 3.7.0 (use case is educational in a very limited setting, so unlikely that the oversights allowed will be problematic).

Thanks again!

from basiclinearalgebra.

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.