@Deprecated
    public static ComplexMatrix multyply2x2(ComplexMatrix a, ComplexMatrix b) {
        try {
            return new ComplexMatrix(new Complex[][]{
                    {
                            a.getElem(0, 0).times(b.getElem(0, 0))
                                    .add(a.getElem(0, 1).times(b.getElem(1, 0))),
                            a.getElem(0, 0).times(b.getElem(0, 1))
                                    .add(a.getElem(0, 1).times(b.getElem(1, 1)))},
                    {
                            a.getElem(1, 0).times(b.getElem(0, 0))
                                    .add(a.getElem(1, 1).times(b.getElem(1, 0))),
                            a.getElem(1, 0).times(b.getElem(0, 1))
                                    .add(a.getElem(1, 1).times(b.getElem(1, 1)))}});
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }