Here you can find the source of multiply(double[][] dest, double[][] a, double[][] b)
public static void multiply(double[][] dest, double[][] a, double[][] b)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static void multiply(double[][] dest, double[][] a, double[][] b) { for (int i = 0; i < dest.length; i++) { for (int j = 0; j < dest[i].length; j++) { dest[i][j] = a[i][j] * b[i][j]; }/* www.j a v a 2s.c o m*/ } } public static void multiply(double[][] dest, double[][] a, double b) { for (int i = 0; i < dest.length; i++) { for (int j = 0; j < dest[i].length; j++) { dest[i][j] = a[i][j] * b; } } } public static void multiply(double[][] dest, double[] a, double b) { for (int i = 0; i < dest.length; i++) { for (int j = 0; j < dest[i].length; j++) { dest[i][j] = a[i * dest.length + j] * b; } } } }