Creates a matrix of Doubles with nRows and nCols containing the supplied value
Creates a matrix of doubles with nRows and nCols containing values from the supplied x