class ElementaryTransformations {

    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);
                }
            }
        }
    }

}