Matice transponovana(){
        Matice a=new Matice(this.matice[0].length,this.matice.length);
        for (int i = 0; i < matice.length; i++) {
            for (int j = 0; j < matice[0].length; j++) {
                a.matice[j][i]=this.matice[i][j];
            }
        }
        return a;
    }