gitee.com/quant1x/num@v0.3.2/zeros.go (about) 1 package num 2 3 // Zeros Return a new array of given shape and type, filled with zeros. 4 // 5 // args[0] dtype 基础数据类型 6 func Zeros[T BaseType](shape int) []T { 7 var t T 8 return Repeat(t, shape) 9 }