doc里的代码似乎存在问题?

我在运行文档里的代码
’‘’
import taichi as ti
ti.init(arch=ti.cpu)

vec4d = ti.types.vector(4, ti.f64) # a 64-bit floating-point 4D vector type

v = vec4d(1, 2, 3, 4) # Create a vector instance, here v = [1.0 2.0 3.0 4.0]

@ti.func
def length(w: vec4d): # vec4d as type hint
return w.norm()

@ti.kernel
def test():
print(length(v))

test()
‘’‘
时会报错“Argument w of type <taichi.lang.matrix.VectorType object at 0x000001EFC754BDF0> is expected to be a Matrix, but got <class ‘taichi.lang.matrix.Vector’>.”
大佬们能帮我看看是怎么回事吗?

我这里也能复现,看起来确实是新的版本出现了不兼容。我们看一下。