test_class.declarator: regularSquareMatrix
test_class.modifier: private static
test_class.original_string: private static SquareMatrix regularSquareMatrix;
test_class.type: SquareMatrix
test_class.var_name: regularSquareMatrix
test_class.declarator: determinantMatrix
test_class.modifier: private static
test_class.original_string: private static SquareMatrix determinantMatrix;
test_class.type: SquareMatrix
test_class.var_name: determinantMatrix
test_class.file: singa-mathematics/src/test/java/bio/singa/mathematics/matrices/SquareMatrixTest.java
test_class.identifier: SquareMatrixTest
test_case.body: @Test
      void testDeterminantCalculation() {
          double actual = determinantMatrix.determinant();
          assertEquals(120.0, actual);
      }
test_case.class_method_signature: SquareMatrixTest.testDeterminantCalculation()
test_case.full_signature: @Test void testDeterminantCalculation()
test_case.identifier: testDeterminantCalculation
test_case.invocations: determinant assertEquals
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDeterminantCalculation()
focal_class.declarator: serialVersionUID = -8834271370988935890L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -8834271370988935890L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: singa-mathematics/src/main/java/bio/singa/mathematics/matrices/SquareMatrix.java
focal_class.identifier: SquareMatrix
focal_class.class_method_signature: SquareMatrix.SquareMatrix(double[][] values)
focal_class.full_signature: public  SquareMatrix(double[][] values)
focal_class.identifier: SquareMatrix
focal_class.modifiers: public
focal_class.parameters: (double[][] values)
focal_class.signature:  SquareMatrix(double[][] values)
focal_class.class_method_signature: SquareMatrix.SquareMatrix(double[][] values, boolean isSymmetric)
focal_class.full_signature: protected  SquareMatrix(double[][] values, boolean isSymmetric)
focal_class.identifier: SquareMatrix
focal_class.modifiers: protected
focal_class.parameters: (double[][] values, boolean isSymmetric)
focal_class.signature:  SquareMatrix(double[][] values, boolean isSymmetric)
focal_class.class_method_signature: SquareMatrix.SquareMatrix(double[][] values, int rowDimension, int columnDimension)
focal_class.full_signature:   SquareMatrix(double[][] values, int rowDimension, int columnDimension)
focal_class.identifier: SquareMatrix
focal_class.parameters: (double[][] values, int rowDimension, int columnDimension)
focal_class.signature:  SquareMatrix(double[][] values, int rowDimension, int columnDimension)
focal_class.class_method_signature: SquareMatrix.isSquare(double[][] potentialValues)
focal_class.full_signature: public static boolean isSquare(double[][] potentialValues)
focal_class.identifier: isSquare
focal_class.modifiers: public static
focal_class.parameters: (double[][] potentialValues)
focal_class.return: boolean
focal_class.signature: boolean isSquare(double[][] potentialValues)
focal_class.class_method_signature: SquareMatrix.isSquare(Matrix matrix)
focal_class.full_signature: public static boolean isSquare(Matrix matrix)
focal_class.identifier: isSquare
focal_class.modifiers: public static
focal_class.parameters: (Matrix matrix)
focal_class.return: boolean
focal_class.signature: boolean isSquare(Matrix matrix)
focal_class.class_method_signature: SquareMatrix.determinant(double[][] matrix, int order)
focal_class.full_signature: private static double determinant(double[][] matrix, int order)
focal_class.identifier: determinant
focal_class.modifiers: private static
focal_class.parameters: (double[][] matrix, int order)
focal_class.return: double
focal_class.signature: double determinant(double[][] matrix, int order)
focal_class.class_method_signature: SquareMatrix.getMainDiagonal()
focal_class.full_signature: public Vector getMainDiagonal()
focal_class.identifier: getMainDiagonal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Vector
focal_class.signature: Vector getMainDiagonal()
focal_class.class_method_signature: SquareMatrix.trace()
focal_class.full_signature: public double trace()
focal_class.identifier: trace
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double trace()
focal_class.class_method_signature: SquareMatrix.determinant()
focal_class.full_signature: public double determinant()
focal_class.identifier: determinant
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double determinant()
focal_class.superclass: extends RegularMatrix
focal_method.body: private static double determinant(double[][] matrix, int order) {
          double determinant = 0;
          int sign = 1;
          int p;
          int q;
  
          if (order == 1) {
              return matrix[0][0];
          }
  
          double reducedMatrix[][] = new double[order - 1][order - 1];
          for (int x = 0; x < order; x++) {
              p = 0;
              q = 0;
              for (int i = 1; i < order; i++) {
                  for (int j = 0; j < order; j++) {
                      if (j != x) {
                          reducedMatrix[p][q++] = matrix[i][j];
                          if (q % (order - 1) == 0) {
                              p++;
                              q = 0;
                          }
                      }
                  }
              }
              determinant = determinant + matrix[0][x] * determinant(reducedMatrix, order - 1) * sign;
              sign = -sign;
          }
  
          return determinant;
      }
focal_method.class_method_signature: SquareMatrix.determinant(double[][] matrix, int order)
focal_method.full_signature: private static double determinant(double[][] matrix, int order)
focal_method.identifier: determinant
focal_method.invocations: determinant
focal_method.modifiers: private static
focal_method.parameters: (double[][] matrix, int order)
focal_method.return: double
focal_method.signature: double determinant(double[][] matrix, int order)