Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[zmath] Is there any way to use i32/i64 as the type for vectors/matrices?#644

Unanswered
heysokam asked this question inQ&A
Discussion options

I have a custom fixed point type that relies on signed integers operations for its behavior

I was wondering if I could use zmath to power its linear algebra operations, but I didn't see anyI32x4 fundamental type in the library

Are int types not supported, or did I just miss their code on my search?
If not supported, are they desirable or are they against the design of the library for some reason?

You must be logged in to vote

Replies: 2 comments

Comment options

Hi. zmath was written specifically with floating point operations in mind. However, I can't think of a particular reason not to consider generalizing to integers. What do you think@michal-z ?

You must be logged in to vote
0 replies
Comment options

While we're on the topic, could f64 also be supported? Especially given the fact that zphysics is capable of running on f64, the interop between them would be nicer if zmath could be made more generic.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@heysokam@a-day-old-bagel@hazeycode

[8]ページ先頭

©2009-2025 Movatter.jp