public static MatrixFunction asDivFunction(final double arg) {
        return new MatrixFunction() {
            @Override
            public double evaluate(int i, int j, double value) {
                return value / arg;
            }
        };
    }
public static MatrixFunction asDivFunction ( final double arg ) { return new MatrixFunction ( ) { @ Override public double evaluate ( int i , int j , double value ) { return value / arg ; } } ; }
Creates a div function that divides it's argument by given {@code value}.

@param arg a divisor value

@return a closure that does {@code _ / _}