/** * 1 if greater than or equal to 0 otherwise (at each element) * * @param first * @param ndArray * @return */ public static INDArray greaterThanOrEqual(INDArray first, INDArray ndArray) { return greaterThanOrEqual(first, ndArray, true); }
INDArray upperBound2 = upperBound.sub(x); INDArray central = and(greaterThanOrEqual(lowerDist,hTotal),greaterThanOrEqual(upperBound2,hTotal)); INDArray forward = and(greaterThanOrEqual(upperBound,lowerDist),not(central)); hAdjusted.put(forward,min(h.get(forward),upperBound2.get(forward).mul(0.5).divi(numSteps))); oneSided.put(forward,Nd4j.scalar(1.0));
/** * 1 if greater than or equal to 0 otherwise (at each element) * * @param first * @param ndArray * @return */ public static INDArray greaterThanOrEqual(INDArray first, INDArray ndArray) { return greaterThanOrEqual(first, ndArray, Nd4j.copyOnOps); }