From aa1ec6eb79c38604f17171361aad136cc65b04f7 Mon Sep 17 00:00:00 2001 From: Proton Date: Tue, 18 Jun 2024 10:21:29 +0800 Subject: [PATCH] Update docs/lang/articles/math/math_module.md --- docs/lang/articles/math/math_module.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/lang/articles/math/math_module.md b/docs/lang/articles/math/math_module.md index 320bb0c2ace65..e70e5e5ea367d 100644 --- a/docs/lang/articles/math/math_module.md +++ b/docs/lang/articles/math/math_module.md @@ -114,6 +114,7 @@ u = v.rraa # vec4(1, 1, 2, 2) - `ti.types.vector` is a function that accepts an integer and a primitive type and returns a vector type. For example: `vec5f = ti.types.vector(5, float)`. `vec5f` can then be used to instantiate 5D vectors or annotate data types of function arguments and struct members: ```python vec5f = ti.types.vector(5, float) + @ti.kernel def test(v: vec5f): print(v.xyz)