Java Array Multiply multiplyAndSum(double[] r1, double[] r2)

Here you can find the source of multiplyAndSum(double[] r1, double[] r2)

Description

multiply And Sum

License

Open Source License

Declaration

public static double multiplyAndSum(double[] r1, double[] r2) 

Method Source Code

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

public class Main {
    public static double multiplyAndSum(double[] r1, double[] r2) {
        double ret = 0;
        for (int i = 0; i < r1.length; i++) {
            ret += r1[i] * r2[i];//from w  w  w  . j  a  va  2  s  .c o  m
        }
        return ret;
    }
}

Related

  1. multiply(float[] v1, float[] v2)
  2. multiply(long[] x, long[] y, long[] z)
  3. multiply(long[] x, long[] y, long[] z)
  4. multiply(long[] x, long[] y, long[] z)
  5. multiply(String[] strings, String placeholder, String[] replacements)
  6. multiplyAndSum(final double[] d, final double scale)
  7. multiplyArray(float[] array, float num)
  8. multiplyByScalar(double scalar, double[] vector)
  9. multiplyBytes(byte[] in, int count, int mul)