test_class.declarator: N = 10
test_class.modifier: static final
test_class.original_string: static final int N = 10, R=20;
test_class.type: int
test_class.var_name: N
test_class.declarator: M = Matrix.square(N)
test_class.modifier: static final
test_class.original_string: static final Matrix M = Matrix.square(N), S=new Matrix(N, R), T=new Matrix(R,N);
test_class.type: Matrix
test_class.var_name: M
test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/maths/matrices/ElementaryTransformationsTest.java
test_class.identifier: ElementaryTransformationsTest
test_case.body: @Test
      public void testGivens() {
          Matrix M1 = M.clone(), M2 = M.clone();
          ElementaryTransformations.fastGivensTriangularize(M1.subMatrix());
          ElementaryTransformations.givensTriangularize(M2.subMatrix());
          assertTrue(M1.minus(M2).nrm2() < 1e-9);
          Matrix S1 = S.clone(), S2 = S.clone();
          ElementaryTransformations.fastGivensTriangularize(S1.subMatrix());
          ElementaryTransformations.givensTriangularize(S2.subMatrix());
          assertTrue(S1.minus(S2).nrm2() < 1e-9);
          Matrix T1 = T.clone(), T2 = T.clone();
          ElementaryTransformations.fastGivensTriangularize(T1.subMatrix());
          ElementaryTransformations.givensTriangularize(T2.subMatrix());
          assertTrue(T1.minus(T2).nrm2() < 1e-9);
      }
test_case.class_method_signature: ElementaryTransformationsTest.testGivens()
test_case.full_signature: @Test public void testGivens()
test_case.identifier: testGivens
test_case.invocations: clone clone fastGivensTriangularize subMatrix givensTriangularize subMatrix assertTrue nrm2 minus clone clone fastGivensTriangularize subMatrix givensTriangularize subMatrix assertTrue nrm2 minus clone clone fastGivensTriangularize subMatrix givensTriangularize subMatrix assertTrue nrm2 minus
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGivens()
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/maths/matrices/ElementaryTransformations.java
focal_class.identifier: ElementaryTransformations
focal_class.class_method_signature: ElementaryTransformations.transform(IVectorTransformation transformation, DataBlockIterator vectors)
focal_class.full_signature: public static void transform(IVectorTransformation transformation, DataBlockIterator vectors)
focal_class.identifier: transform
focal_class.modifiers: public static
focal_class.parameters: (IVectorTransformation transformation, DataBlockIterator vectors)
focal_class.return: void
focal_class.signature: void transform(IVectorTransformation transformation, DataBlockIterator vectors)
focal_class.class_method_signature: ElementaryTransformations.rowHouseholder(SubMatrix m)
focal_class.full_signature: public static void rowHouseholder(SubMatrix m)
focal_class.identifier: rowHouseholder
focal_class.modifiers: public static
focal_class.parameters: (SubMatrix m)
focal_class.return: void
focal_class.signature: void rowHouseholder(SubMatrix m)
focal_class.class_method_signature: ElementaryTransformations.givensTriangularize(final SubMatrix X)
focal_class.full_signature: public static boolean givensTriangularize(final SubMatrix X)
focal_class.identifier: givensTriangularize
focal_class.modifiers: public static
focal_class.parameters: (final SubMatrix X)
focal_class.return: boolean
focal_class.signature: boolean givensTriangularize(final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.fastRowGivens(final SubMatrix X)
focal_class.full_signature: public static boolean fastRowGivens(final SubMatrix X)
focal_class.identifier: fastRowGivens
focal_class.modifiers: public static
focal_class.parameters: (final SubMatrix X)
focal_class.return: boolean
focal_class.signature: boolean fastRowGivens(final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.rowHouseholder(final DataBlock row, final SubMatrix X)
focal_class.full_signature: public static void rowHouseholder(final DataBlock row, final SubMatrix X)
focal_class.identifier: rowHouseholder
focal_class.modifiers: public static
focal_class.parameters: (final DataBlock row, final SubMatrix X)
focal_class.return: void
focal_class.signature: void rowHouseholder(final DataBlock row, final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.fastRowGivens(final DataBlock row, final SubMatrix X)
focal_class.full_signature: public static boolean fastRowGivens(final DataBlock row, final SubMatrix X)
focal_class.identifier: fastRowGivens
focal_class.modifiers: public static
focal_class.parameters: (final DataBlock row, final SubMatrix X)
focal_class.return: boolean
focal_class.signature: boolean fastRowGivens(final DataBlock row, final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.fastGivensTriangularize(final SubMatrix X)
focal_class.full_signature: public static boolean fastGivensTriangularize(final SubMatrix X)
focal_class.identifier: fastGivensTriangularize
focal_class.modifiers: public static
focal_class.parameters: (final SubMatrix X)
focal_class.return: boolean
focal_class.signature: boolean fastGivensTriangularize(final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.householderTriangularize(final SubMatrix X)
focal_class.full_signature: public static boolean householderTriangularize(final SubMatrix X)
focal_class.identifier: householderTriangularize
focal_class.modifiers: public static
focal_class.parameters: (final SubMatrix X)
focal_class.return: boolean
focal_class.signature: boolean householderTriangularize(final SubMatrix X)
focal_class.class_method_signature: ElementaryTransformations.rowGivens(SubMatrix m)
focal_class.full_signature: public static void rowGivens(SubMatrix m)
focal_class.identifier: rowGivens
focal_class.modifiers: public static
focal_class.parameters: (SubMatrix m)
focal_class.return: void
focal_class.signature: void rowGivens(SubMatrix m)
focal_class.class_method_signature: ElementaryTransformations.columnHouseholder(SubMatrix m)
focal_class.full_signature: public static void columnHouseholder(SubMatrix m)
focal_class.identifier: columnHouseholder
focal_class.modifiers: public static
focal_class.parameters: (SubMatrix m)
focal_class.return: void
focal_class.signature: void columnHouseholder(SubMatrix m)
focal_class.class_method_signature: ElementaryTransformations.householder(DataBlockIterator vectors)
focal_class.full_signature: private static void householder(DataBlockIterator vectors)
focal_class.identifier: householder
focal_class.modifiers: private static
focal_class.parameters: (DataBlockIterator vectors)
focal_class.return: void
focal_class.signature: void householder(DataBlockIterator vectors)
focal_class.class_method_signature: ElementaryTransformations.extendedGivensTriangularize(Matrix X, DataBlock W, Matrix L, DataBlock V)
focal_class.full_signature: public static boolean extendedGivensTriangularize(Matrix X, DataBlock W, Matrix L, DataBlock V)
focal_class.identifier: extendedGivensTriangularize
focal_class.modifiers: public static
focal_class.parameters: (Matrix X, DataBlock W, Matrix L, DataBlock V)
focal_class.return: boolean
focal_class.signature: boolean extendedGivensTriangularize(Matrix X, DataBlock W, Matrix L, DataBlock V)
focal_class.class_method_signature: ElementaryTransformations.givens(DataBlockIterator vectors, int n)
focal_class.full_signature: private static void givens(DataBlockIterator vectors, int n)
focal_class.identifier: givens
focal_class.modifiers: private static
focal_class.parameters: (DataBlockIterator vectors, int n)
focal_class.return: void
focal_class.signature: void givens(DataBlockIterator vectors, int n)
focal_class.class_method_signature: ElementaryTransformations.hypotenuse(double x, double y)
focal_class.full_signature: public static double hypotenuse(double x, double y)
focal_class.identifier: hypotenuse
focal_class.modifiers: public static
focal_class.parameters: (double x, double y)
focal_class.return: double
focal_class.signature: double hypotenuse(double x, double y)
focal_method.body: private static void givens(DataBlockIterator vectors, int n) {
          DataBlock cur = vectors.getData();
          for (int i = 1; i < n; ++i) {
              vectors.begin();
              if (cur.get(i) != 0) {
                  GivensRotation rotation = new GivensRotation(cur, i);
                  while (vectors.next()) {
                      rotation.transform(cur);
                  }
              }
          }
      }
focal_method.class_method_signature: ElementaryTransformations.givens(DataBlockIterator vectors, int n)
focal_method.full_signature: private static void givens(DataBlockIterator vectors, int n)
focal_method.identifier: givens
focal_method.invocations: getData begin get next transform
focal_method.modifiers: private static
focal_method.parameters: (DataBlockIterator vectors, int n)
focal_method.return: void
focal_method.signature: void givens(DataBlockIterator vectors, int n)