}
RDouble x = Convert.coerceToDoubleError(xArg, ast).materialize();
if (!x.isTemporary()) {
x = RDoubleFactory.copy(x);
}
int[] dims = x.dimensions();
if (dims == null || dims.length != 2) {
int size = x.size();
int[] ndims = new int[] {size, 1};
x = (RDouble) x.setDimensions(ndims); // note: x can be a scalar
dims = ndims;