Assume I have a matrix A.What do I have to type to get the transposed matrix of A? (lets say B)
(I have imported Apache Commons Math in my project and I want to do it using these libraries)
My code is:
double[][] A = new double[2][2];
A[0][0] = 1.5;
A[0][1] = -2.0;
A[1][0] = 7.3;
A[1][1] = -13.5;
Then,what?...
(I have found this link, but I don't know what exactly to do:
I have tried :
double[][] a = new double[2][2];
a = RealMatrix.transpose();
Also,
double[][] a = new double[2][2];
a = A.transpose();
And how can I transpose an array a in the same way?