public MatchCondition(INDArray x, double eps, Condition condition) { super(x); this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
public FirstIndex(INDArray x, @NonNull Condition condition, double eps) { super(x); this.condition = condition; this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
public LastIndex(INDArray x, @NonNull Condition condition, double eps) { super(x,null,null,x.length()); this.condition = condition; this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
public MatchConditionTransform(INDArray x, INDArray z, double eps, @NonNull Condition condition) { super(x, null, z, z.lengthLong()); this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
/** * With this constructor, op will check each Y element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise * * Pseudocode: * z[i] = condition(y[i]) ? y[i] : x[i]; * * @param x * @param y * @param z * @param condition */ public CompareAndSet(INDArray x, INDArray y, INDArray z, Condition condition) { super(x, y, z, x.lengthLong()); this.compare = condition.getValue(); this.set = 0; this.eps = condition.epsThreshold(); this.mode = condition.condtionNum(); init(x, y, z, x.lengthLong()); }
/** * With this constructor, op will check each X element against given Condition, and if condition met, element will be replaced with Set value * * Pseudocode: * z[i] = condition(x[i]) ? set : x[i]; * * @param x * @param set * @param condition */ public CompareAndSet(INDArray x, INDArray z, double set, Condition condition) { super(x, null, z, x.lengthLong()); this.compare = condition.getValue(); this.set = set; this.eps = condition.epsThreshold(); this.mode = condition.condtionNum(); init(x, null, z, x.lengthLong()); }
/** * With this constructor, op will check each X element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise * * Pseudocode: * z[i] = condition(x[i]) ? y[i] : x[i]; * * @param x * @param y * @param z * @param condition */ public CompareAndReplace(INDArray x, INDArray y, INDArray z, Condition condition) { super(x, y, z, x.lengthLong()); this.compare = condition.getValue(); this.set = 0; this.mode = condition.condtionNum(); this.eps = condition.epsThreshold(); init(x, y, z, x.lengthLong()); }
public LastIndex(INDArray x, @NonNull Condition condition, double eps) { super(x); this.condition = condition; this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
public FirstIndex(INDArray x, @NonNull Condition condition, double eps) { super(x); this.condition = condition; this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
public MatchCondition(INDArray x, double eps, Condition condition) { super(x); this.compare = condition.getValue(); this.mode = condition.condtionNum(); this.eps = eps; this.extraArgs = new Object[] {compare, eps, (double) mode}; }
/** * With this constructor, op will check each X element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise * * Pseudocode: * z[i] = condition(x[i]) ? y[i] : x[i]; * * @param x * @param y * @param z * @param condition */ public CompareAndReplace(INDArray x, INDArray y, INDArray z, Condition condition) { super(x, y, z, x.lengthLong()); this.compare = condition.getValue(); this.set = 0; this.mode = condition.condtionNum(); init(x, y, z, x.lengthLong()); }
/** * With this constructor, op will check each Y element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise * * Pseudocode: * z[i] = condition(y[i]) ? y[i] : x[i]; * * @param x * @param y * @param z * @param condition */ public CompareAndSet(INDArray x, INDArray y, INDArray z, Condition condition) { super(x, y, z, x.lengthLong()); this.compare = condition.getValue(); this.set = 0; this.mode = condition.condtionNum(); init(x, y, z, x.lengthLong()); }
/** * With this constructor, op will check each X element against given Condition, and if condition met, element will be replaced with Set value * * Pseudocode: * z[i] = condition(x[i]) ? set : x[i]; * * @param x * @param set * @param condition */ public CompareAndSet(INDArray x, INDArray z, double set, Condition condition) { super(x, null, z, x.lengthLong()); this.compare = condition.getValue(); this.set = set; this.mode = condition.condtionNum(); init(x, null, z, x.lengthLong()); }