Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc] Add doc about struct arguments (#7959)
Issue: # ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at adf95e4</samp> This pull request improves the documentation of `ti.kernel` and `ti.func` by using the new `ti.types` module and showing how to work with structs and matrices. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at adf95e4</samp> * Update the argument and return value types of kernels and functions to use the `ti.types` module ([link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL96-R98), [link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL138-R158), [link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL279-R298), [link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL287-R306), [link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL300-R319)) * Add an example of passing a struct with a matrix to a kernel by value in `docs/lang/articles/kernels/kernel_function.md` ([link](https://github.com/taichi-dev/taichi/pull/7959/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cR112-R130)) --------- Co-authored-by: Zhao Liang <mathzhaoliang@gmail.com>
- Loading branch information