header only version does not need to compute sizes from _def.r