//------------------------------------------------------------------------- /// <summary> /// Wraps a matrix. /// </summary> /// <param name="x"> an OG 2-D matrix of doubles </param> /// <returns> a Commons matrix </returns> public static RealMatrix wrap(DoubleMatrix x) { ArgChecker.notNull(x, "x"); return(new Array2DRowRealMatrix(x.toArrayUnsafe())); }