automatically generated by wrap function result = dim(obj) % usage: obj.dim() error('need to compile dim.cpp'); end