Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/QR-decomposition/Java/qr-decomposition-2.java
Normal file
16
Task/QR-decomposition/Java/qr-decomposition-2.java
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import cern.colt.matrix.impl.DenseDoubleMatrix2D;
|
||||
import cern.colt.matrix.linalg.QRDecomposition;
|
||||
|
||||
public class Decompose {
|
||||
public static void main(String[] args) {
|
||||
var a = new DenseDoubleMatrix2D(new double[][] {
|
||||
{12, -51, 4},
|
||||
{ 6, 167, -68},
|
||||
{-4, 24, -41}
|
||||
});
|
||||
var qr = new QRDecomposition(a);
|
||||
System.out.println(qr.getQ());
|
||||
System.out.println();
|
||||
System.out.println(qr.getR());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue