/** * Applies this filter for specified tensors and scale factors. * @param d tensors. * @param c constant scale factor for tensors. * @param s array of scale factors for tensors. * @param x input array. * @param y output array. */ public void apply( Tensors3 d, float c, float[][][] s, float[][][] x, float[][][] y) { Operator3 a = new A3(_ldk,d,c,s); scopy(x,y); if (_pc) { Operator3 m = new M3(d,c,s,x); solve(a,m,x,y); } else { solve(a,x,y); } }
/** * Applies this filter for specified tensors and scale factors. * @param d tensors. * @param c constant scale factor for tensors. * @param s array of scale factors for tensors. * @param x input array. * @param y output array. */ public void apply( Tensors2 d, float c, float[][] s, float[][] x, float[][] y) { Operator2 a = new A2(_ldk,d,c,s); scopy(x,y); if (_pc) { Operator2 m = new M2(d,c,s,x); solve(a,m,x,y); } else { solve(a,x,y); } }