Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplication/arithmetic operators with matrices are not inferred correctly #109

Open
GoNZooo opened this issue Jan 3, 2025 · 0 comments

Comments

@GoNZooo
Copy link
Contributor

GoNZooo commented Jan 3, 2025

When we multiply matrices with things we lose inference:

m1, m2: matrix[4, 4]f32
v1, v2: [4]f32
v3 := v1 * v2 // v3: [4]f32
v4 := 6 * v1 // v4: [4]f32
v5 := v1 * m1 // v5: UNKNOWN
v6 := m1 * v1 // v6: UNKNOWN
m3 := m1 * m2 // m3: <undefined>
m4 := 2 * m1 // m4: `UNKNOWN`

Vector values seem to generally keep type information, but when a matrix type is involved in a multiplication (I would expect most arithmetic) type inference is lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant