public class MatVecOp extends Object
Constructor and Description |
---|
MatVecOp() |
public static double sumSquaredDiff(Vector vec1, Vector vec2)
public static void apply(DenseMatrix x, DenseMatrix y, java.util.function.Function<Double,Double> func)
public static void apply(DenseMatrix x1, DenseMatrix x2, DenseMatrix y, java.util.function.BiFunction<Double,Double,Double> func)
public static void apply(DenseVector x, DenseVector y, java.util.function.Function<Double,Double> func)
public static void apply(DenseVector x1, DenseVector x2, DenseVector y, java.util.function.BiFunction<Double,Double,Double> func)
public static SparseVector apply(SparseVector x1, SparseVector x2, java.util.function.BiFunction<Double,Double,Double> func)
SparseVector
by element wise operation between two SparseVector
s. y = func(x1, x2).public static double applySum(DenseVector x1, DenseVector x2, java.util.function.BiFunction<Double,Double,Double> func)
public static double applySum(SparseVector x1, SparseVector x2, java.util.function.BiFunction<Double,Double,Double> func)
public static double applySum(DenseVector x1, SparseVector x2, java.util.function.BiFunction<Double,Double,Double> func)
public static double applySum(SparseVector x1, DenseVector x2, java.util.function.BiFunction<Double,Double,Double> func)
public static double applySum(DenseMatrix x1, DenseMatrix x2, java.util.function.BiFunction<Double,Double,Double> func)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.