question: public void powEquals ( double exp ) { for ( int i = 0 ; i < A . length ; i ++ ) for ( int j = 0 ; j < A [ i ] . length ; j ++ ) A [ i ] [ j ] = Math . pow ( A [ i ] [ j ] , exp ) ; }
target:  X.powEquals() calculates the power of each element of the matrix. The result is stored in this matrix object again.