예제 #1
0
 public Matrix22(double a11, double a12, double a21, double a22) {
   this();
   matrix.add(0, 0, a11);
   matrix.add(0, 1, a12);
   matrix.add(1, 0, a21);
   matrix.add(1, 1, a22);
 }
예제 #2
0
 public double getTrace() {
   return matrix.getTrace().getReal();
 }
예제 #3
0
 public double getDeterminant() {
   return matrix.getDeterminant().getReal();
 }
예제 #4
0
 public double get22() {
   return matrix.get(1, 1);
 }
예제 #5
0
 public double get21() {
   return matrix.get(1, 0);
 }
예제 #6
0
 public double get12() {
   return matrix.get(0, 1);
 }
예제 #7
0
 public double get11() {
   return matrix.get(0, 0);
 }