### Question:
LinearAlgebraUtils { public static void wshift_inplace(DoubleMatrix inVector, int n) throws IllegalArgumentException { if (n >= inVector.length) { System.err.println("wshift: shift larger than matrix not implemented."); throw new IllegalArgumentException("wshift: shift larger than matrix not implemented."); } if (!inVector.isVector()) { System.err.println("wshift: only vectors supported!"); throw new IllegalArgumentException("wshift: only vectors supported!"); } if (n == 0) return; if (n < 0) n += inVector.length; DoubleMatrix Res = new DoubleMatrix(inVector.rows, inVector.columns); System.arraycopy(inVector.data, n, Res.data, 0, inVector.length - n); System.arraycopy(inVector.data, 0, Res.data, inVector.length - n, n); inVector.copy(Res); }  static double[] solve22(double[][] A, double[] y); static double[] solve33(double[][] A, double[] rhs); static DoubleMatrix absMatrix(DoubleMatrix inMatrix); static double[][] absMatrix(double[][] inMatrix); static DoubleMatrix matrixPower(DoubleMatrix data, double scalar); static double[][] matrixPower(double[][] inMatrix, double scalar); static void invertChol_inplace(double[][] inMatrix); static double[][] invertChol(double[][] inMatrix); static void invertChol_inplace(DoubleMatrix inMatrix); static DoubleMatrix invertChol(DoubleMatrix inMatrix); static ComplexDoubleMatrix dotmult(ComplexDoubleMatrix A, ComplexDoubleMatrix B); static void dotmult_inplace(ComplexDoubleMatrix A, ComplexDoubleMatrix B); static void fliplr_inplace(DoubleMatrix A); static DoubleMatrix matTxmat(DoubleMatrix matrix1, DoubleMatrix matrix2); static ComplexDoubleMatrix matTxmat(ComplexDoubleMatrix matrix1, ComplexDoubleMatrix matrix2); static void wshift_inplace(DoubleMatrix inVector, int n); static DoubleMatrix wshift(DoubleMatrix inMatrix, int n); static void setdata(DoubleMatrix outMatrix, Window outWin, DoubleMatrix inMatrix, Window inWin); static void setdata(ComplexDoubleMatrix outMatrix, Window outWin, ComplexDoubleMatrix inMatrix, Window inWin); static void setdata(ComplexDoubleMatrix outMatrix, ComplexDoubleMatrix inMatrix, Window inWin); static void setdata(DoubleMatrix outMatrix, DoubleMatrix inMatrix, Window inWin); static void chol_inplace(double[][] inMatrix); static void chol_inplace(DoubleMatrix inMatrix); static void invert_inplace(double[][] inMatrix); static double[][] invert(double[][] inMatrix); static void invert_inplace(DoubleMatrix inMatrix); static DoubleMatrix invert(DoubleMatrix inMatrix); static void arrangeCholesky_inplace(DoubleMatrix inMatrix); static void arrangeCholesky_inplace(double[][] inArray);  }### Answer:
@Test public void testWshift_inplace_JBLAS() throws Exception { DoubleMatrix A_15_SHIFT_ACTUAL = A_15.dup(); LinearAlgebraUtils.wshift_inplace(A_15_SHIFT_ACTUAL, 3); Assert.assertEquals(A_15_SHIFT_ACTUAL, A_15_SHIFT_EXPECTED); }