Here you can find the source of max(final float[] a, final float[] b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
final static public void max(final float[] a, final float[] b)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w. j a va 2 s. c o m*/ * Writes max(a,b) into a * * @param a * @param b */ final static public void max(final float[] a, final float[] b) { for (int i = 0; i < a.length; ++i) if (b[i] > a[i]) a[i] = b[i]; } /** * Writes max(a,b) into a * * @param a * @param b */ final static public void max(final double[] a, final double[] b) { for (int i = 0; i < a.length; ++i) if (b[i] > a[i]) a[i] = b[i]; } }