Java Array Sum sumOverVector(float[] a)

Here you can find the source of sumOverVector(float[] a)

Description

sum Over Vector

License

Open Source License

Declaration

public static int sumOverVector(float[] a) 

Method Source Code

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

public class Main {
    public static int sumOverVector(float[] a) {
        int sum = 0;
        for (int i = 0; i < a.length; i++)
            sum += a[i];/*from w w w. j a  va 2 s.c o  m*/
        return sum;
    }
}

Related

  1. sumOfArray(double[] array)
  2. sumOfArray(final double[] array)
  3. sumOfMeanDifferencesOnePoint(double[] vector)
  4. sumOfMinimum(double[] a, double[] b)
  5. sumOfProducts(double[]... nums)
  6. sumProd(double[] v1, double[] v2, int i_, int n_)
  7. sumRightShifts(int num, int... shifts)
  8. sumSquared(double[] a)
  9. sumToDouble(float[] array)