working genetics prototype

This commit is contained in:
2025-12-19 21:41:58 +08:00
parent afc9904651
commit 105515277f
6 changed files with 270 additions and 4 deletions

9
internal/util/slice.go Normal file
View File

@@ -0,0 +1,9 @@
package util
func Slice2Float32[T int | float64](s []T) (sf []float32) {
sf = make([]float32, len(s))
for i := range s {
sf[i] = float32(s[i])
}
return
}