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

[bug] MatrixType bug fix: Fix error with nested StructType and MatrixType #6689

Merged
merged 5 commits into from
Nov 24, 2022

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Nov 21, 2022

Issue: #5819

Brief Summary

  1. Modified Matrix::fill() to broadcast val into VectorType if ndim == 1, and to MatrixType if ndim == 2
  2. Modified Struct::fill() to apply matrix_op.fill() in case of Expr with TensorType

@netlify
Copy link

netlify bot commented Nov 21, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 704b5fc
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/637dd643c1b8ed000975d3b8
😎 Deploy Preview https://deploy-preview-6689--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.

python/taichi/lang/struct.py Outdated Show resolved Hide resolved
python/taichi/lang/struct.py Outdated Show resolved Hide resolved
taichi/transforms/lower_ast.cpp Outdated Show resolved Hide resolved
taichi/transforms/lower_ast.cpp Outdated Show resolved Hide resolved
@jim19930609
Copy link
Contributor Author

/Rebase

@jim19930609
Copy link
Contributor Author

/rebase

@jim19930609 jim19930609 merged commit e8f9816 into taichi-dev:master Nov 24, 2022
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…Type (taichi-dev#6689)

Issue: taichi-dev#5819

### Brief Summary
1. Modified `Matrix::fill()` to broadcast `val` into VectorType if `ndim
== 1`, and to MatrixType if `ndim == 2`
2. Modified `Struct::fill()` to apply `matrix_op.fill()` in case of
`Expr` with TensorType
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

Successfully merging this pull request may close these issues.

2 participants