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

2 years ago
  1. package mmtable
  2. import (
  3. "reflect"
  4. )
  5. func elemTypeType(el ElemType, shape [3]uint8) reflect.Type {
  6. dType := nativeElemType[el]
  7. for _, dim := range shape {
  8. if dim == 0 {
  9. break
  10. }
  11. dType = reflect.ArrayOf(int(dim), dType)
  12. }
  13. return dType
  14. }