All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mikera.vectorz.ops.Add Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
package mikera.vectorz.ops;

import mikera.vectorz.AVector;
import mikera.vectorz.Op2;

/**
 * Binary operator for `max` function
 * 
 * @author Mike
 *
 */
public final class Add extends Op2 {

	@Override
	public double apply(double x, double y) {
		return x+y;
	}
	
	@Override
	public void applyTo(double[] data, int start, int length, AVector b) {
		b.checkLength(length);
		for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy