/** * 1 if less than or equal to 0 otherwise (at each element) * * @param first * @param ndArray * @return */ public static INDArray lessThanOrEqual(INDArray first, INDArray ndArray) { return lessThanOrEqual(first, ndArray, true); }
INDArray adjustedCentral = and(not(central),lessThanOrEqual(abs(hAdjusted),minDist)); hAdjusted.put(adjustedCentral,minDist.get(adjustedCentral)); oneSided.put(adjustedCentral,Nd4j.scalar(0.0));
/** * 1 if less than or equal to 0 otherwise (at each element) * * @param first * @param ndArray * @return */ public static INDArray lessThanOrEqual(INDArray first, INDArray ndArray) { return lessThanOrEqual(first, ndArray, Nd4j.copyOnOps); }