

package org.la4j.vector.functor;

/**
 * A vector predicate that tests vector's elements.
 */
public interface VectorPredicate {

    /**
     * Tests vector's element.
     * 
     * @param i the element's index
     * @param value the element's value
     *
     * @return whether the element meets this predicate
     */
    boolean test(int i, double value);
}
