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