Can anyone tell me about JAMA MATRIX Package how setMatrix
work? Please don't suggest me to see the documentation. I search documentation several time but don't get any example how it work. I have code where I want to set a submatrix with desired position using JAMA MATRIX package.
Matrix A= new Matrix(new double[][]{{2.0,3.0,5.0},{1.0,0.0,3.0},{0.0,1.0,1.0}});
A.print(9,6);
Matrix A1= new Matrix(new double[][]{{1.0,2.0,2.0}});
int []A2=new int[]{2};
int []A3=new int[]{2};
A.setMatrix(A2, A3, A1);
A.print(9,6);
I want to add A1
in second row and second column. But fail to add.The two outputs are same. No difference between them.