Here you can find the source of squareEntries(double[][] m)
public static void squareEntries(double[][] m)
//package com.java2s; //License from project: Open Source License public class Main { public static void squareEntries(double[][] m) { for (int i = 0; i < m.length; i++) for (int j = 0; j < m[i].length; j++) m[i][j] *= m[i][j];/*from w ww .j av a2 s . c o m*/ } }