Java Number Power pow(double[][] x, int p)

Here you can find the source of pow(double[][] x, int p)

Description

pow

License

Open Source License

Declaration

public static double[][] pow(double[][] x, int p) 

Method Source Code

//package com.java2s;
/*//from  w w  w. java2  s .  c om
 * ------------------------------------------------------------------------ Copyright 2016 by Aaron
 * Hart Email: Aaron.Hart@gmail.com
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the
 * GNU General Public License, Version 3, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program; if
 * not, see <http://www.gnu.org/licenses>.
 * ---------------------------------------------------------------------
 *
 * Created on December 14, 2016 by Aaron Hart
 */

public class Main {
    public static double[][] pow(double[][] x, int p) {
        for (int i = 0; i < x.length; i++) {
            for (int j = 0; j < x[0].length; j++) {
                x[i][j] = Math.pow(x[i][j], p);
            }
        }
        return x;
    }
}

Related

  1. pow(double x, double y)
  2. pow(double x, double y)
  3. pow(double x, double y)
  4. pow(double x, int n)
  5. pow(double[] array, double exp)
  6. pow(final double[] values, final double exp)
  7. pow(final float a, final float b)
  8. pow(final int a, final int b)
  9. pow(final int a, final int b)