### Question:
OuterProductSymFloatMatrix extends AbstractMatrix implements OuterProductSymMatrix { public void set(int pos, double val) { data[pos] = (float) val; } OuterProductSymFloatMatrix(float [] data);  OuterProductSymFloatMatrix(int size); int numRows(); int numCols(); double get(int row, int col); void set(int pos, double val); void set(int row, int col, double val); void scale(double a); void setAll(double a); MatrixCursor cursor(); void add(Matrix B); void add(double a, Matrix B); double elementSum(); double elementMultiplySum(Matrix m); double elementMultiplySum(OuterProductSymFloatMatrix m); void CG(Vector x, Vector y); void QR(Vector x, Vector y); Vector rowSums(); Vector columnSums(); void rowSums(double[] result); void columnSums(double[] result); void setToMaxTranspose(); void multAdd(double alpha, Vector x, Vector y); void mult(Vector x, Vector y); Matrix subMatrix(int[] rows, int[] cols); void add(int i, int j, double alpha); void transMult(double[] x, double[] y); void compact(); void multAdd(double alpha, double[] x, double[] y); void mult(double[] x, double[] y); void multAdd(double[] x, double[] y); SymMatrix subMatrix(int[] rowcols); void setDiag(double alpha); void dotDivOuterProd(Vector x); void addOuterProd(double[] x); double sumDotMultOuterProd(double[] x);  }### Answer:
@Test(expected=MatricksException.class) public void testSet() { int size = 10; OuterProductSymMatrix m = new OuterProductSymFloatMatrix(size); m.set(1, 5d); assertEquals(25d, m.get(1,1), 0d); assertEquals(0d, m.get(0,0), 0d); m.set(0, 0, 1d); }