Matice vynasob(double skalar){
        Matice B=new Matice(matice.length,matice[0].length);
        for (int i = 0; i < matice.length; i++) {
            for (int j = 0; j < matice[0].length; j++) {
                B.matice[i][j]=skalar*matice[i][j];
            }
        }
        return B;
    }