Infer carray or ctable