Matrix manipulation with VectorZ
Code: "BasicMatrixUsage.java". Programming language: Java
DMelt Version 2.3. Last modified: 11/26/1972. License: Pro
https://datamelt.org/code/cache/BasicMatrixUsage_4367.java
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
import mikera.matrixx.AMatrix;
import mikera.matrixx.Matrix33;
import mikera.matrixx.Matrixx;
public class BasicMatrixUsage {
public static void main(String[] args) {
Matrix33 m=new Matrix33();
Matrixx.fillRandomValues(m);
System.out.println(m);
System.out.println(m.getTranspose());
System.out.println();
AMatrix m2=Matrixx.createRandomSquareMatrix(2);
System.out.println(m2);
System.out.println(m2.getTranspose());
m2.transposeInPlace();
System.out.println(m2);
}
}
You see the box below because you did not login.