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

com.linkedin.dagli.math.vector.VectorElementFunction Maven / Gradle / Ivy

Go to download

DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages

There is a newer version: 15.0.0-beta9
Show newest version
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