com.linkedin.dagli.math.vector.VectorElementFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of math-vector Show documentation
Show all versions of math-vector Show documentation
DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages
package com.linkedin.dagli.math.vector;
/**
* Consumes a vector element as two primitive arguments, used in contexts where creating a {@link VectorElement} object
* would be an unnecessary and avoidable computational expense.
*/
@FunctionalInterface
public interface VectorElementFunction {
/**
* Do something with a vector element
*
* @param index the index of the element
* @param value the value of the element
*/
T apply(long index, double value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy