Git Product home page Git Product logo

Comments (3)

moble avatar moble commented on July 29, 2024

Keeping the array as integers would require creating all new quaternion_int datatypes. And I can think of absolutely no good reason to do so. (Mathematica<<Quaternions, I'm looking at you!) But it is trivial to automatically convert an array input to this function. This does require copying when the input is an int array, but it can't be avoided because that's just not how statically typed languages like C work β€”Β and of course, standard python, numpy, and this module are C under the covers.

from quaternion.

calocedrus avatar calocedrus commented on July 29, 2024

though as_quat_array isn't a math function, is there a reason for requiring exclusively floats?
How about accepting int as well?

Keeping the array as integers would require creating all new quaternion_int datatypes

Though my title may have suggested otherwise, I didn't mean to have a quaternion_int dtype, what I was actually suggesting is expressed in your commit "cast to float when converting ...".

Mathematica<<Quaternions, I'm looking at you!

I'm not sure what you mean here, I'm not using Mathematica and never have.

from quaternion.

calocedrus avatar calocedrus commented on July 29, 2024

PS: I salute your prompt replies and dedication to your quaternion module.

from quaternion.

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.