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

[lang] Fix matrix type inference and remove _MatrixEntriesInitializer #6928

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

strongoier
Copy link
Contributor

Issue: #5819

Brief Summary

Before this PR, matrix type inference directly takes the type of the first element, which is problematic. This PR fixes the inference by calculating the common type of all elements and removes the redundant _MatrixEntriesInitializer.

@strongoier strongoier added the full-ci Run complete set of CI tests label Dec 20, 2022
@netlify
Copy link

netlify bot commented Dec 20, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 6b16222
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63a139c96e05050009488255
😎 Deploy Preview https://deploy-preview-6928--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@strongoier strongoier merged commit d085075 into taichi-dev:master Dec 20, 2022
@strongoier strongoier deleted the fix-mat-infer branch December 20, 2022 08:18
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…taichi-dev#6928)

Issue: taichi-dev#5819

### Brief Summary

Before this PR, matrix type inference directly takes the type of the
first element, which is problematic. This PR fixes the inference by
calculating the common type of all elements and removes the redundant
`_MatrixEntriesInitializer`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Run complete set of CI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants