Java Array Multiply multiply(double[] a, double[] b)

Here you can find the source of multiply(double[] a, double[] b)

Description

multiply

License

Open Source License

Declaration

static double[] multiply(double[] a, double[] b) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

public class Main {
    static double[] multiply(double[] a, double[] b) {
        final double[] res = Arrays.copyOf(a, a.length);
        for (int i = 0; i < res.length; ++i) {
            res[i] *= b[i];//from   ww  w  .ja v  a 2 s .  c o m
        }
        return res;
    }
}

Related

  1. multiply(byte[] a, byte b)
  2. multiply(double factor, double[] vector)
  3. multiply(double[] a, double m)
  4. multiply(double[] a, double v)
  5. multiply(double[] a, double[] b)
  6. multiply(double[] a, double[] b)
  7. multiply(double[] array, double multiplier)
  8. multiply(double[] multiplicand, double[] factor, double multiplicandAdjustment, double factorAdjustment)
  9. multiply(double[] source, double num)