public static Matrix getMatrix(int rows, int cols, DataType dataType) {
        Matrix matrix = null;
        switch (dataType) {
            case INTEGER:
                matrix = new MatrixInteger(rows, cols);
                break;
            case DOUBLE:
                matrix = new MatrixDouble(rows, cols);
                break;
            case ARRAY:
                matrix = new MatrixArray(rows, cols);
                break;
        }

        return matrix;
    }