![JAR search and dependency download from the Maven repository](/logo.png)
mikera.vectorz.ops.Add Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
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