Java Array Multiply multiply(double factor, double[] vector)

Here you can find the source of multiply(double factor, double[] vector)

Description

multiply

License

Open Source License

Declaration

public static double[] multiply(double factor, double[] vector) 

Method Source Code

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

public class Main {
    public static double[] multiply(double factor, double[] vector) {
        double[] result = new double[vector.length];
        for (int i = 0; i < vector.length; i++) {
            result[i] = vector[i] * factor;
        }/*from   ww  w  .  j av a 2s .c o  m*/
        return result;
    }
}

Related

  1. mult(double[][] A, double[][] B)
  2. mult(float[] nums, float n)
  3. mult(float[] nums, float n)
  4. multiply(byte[] a, byte b)
  5. multiply(double[] a, double m)
  6. multiply(double[] a, double v)
  7. multiply(double[] a, double[] b)
  8. multiply(double[] a, double[] b)