Memory mapped column oriented tables for Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
251 B

package mmtable
import (
"reflect"
)
func elemTypeType(el ElemType, shape [3]uint8) reflect.Type {
dType := nativeElemType[el]
for _, dim := range shape {
if dim == 0 {
break
}
dType = reflect.ArrayOf(int(dim), dType)
}
return dType
}