@Override public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) { output.setComplexNumber(0, x.getRealDouble()); return output; }
@Override public RealType<?> compute(ComplexType<?> input, RealType<?> output) { output.setReal(input.getRealDouble()); return output; }
@Override public C compute(T input1, V input2, C output) { output.setReal(input1.getRealDouble()); output.setImaginary(input2.getRealDouble()); return output; }
@Override public RealType<?> compute(ComplexType<?> input, RealType<?> output) { output.setReal(input.getImaginaryDouble()); return output; }
public RealAdapterFunction(Function<INPUT,C> complexFunc, C cType, R rType) { this.rType = rType.createVariable(); this.cType = cType.createVariable(); this.complexFunc = complexFunc; }
@Override public ARGBType duplicateTypeOnSameNativeImg() { return new ARGBType( img ); }
@Override public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) { output.setComplexNumber(0, x.getRealDouble()); return output; }
@Override public RealType<?> compute(ComplexType<?> input, RealType<?> output) { output.setReal(input.getRealDouble()); return output; }
@Override public C compute(T input1, V input2, C output) { output.setReal(input1.getRealDouble()); output.setImaginary(input2.getRealDouble()); return output; }
@Override public RealType<?> compute(ComplexType<?> input, RealType<?> output) { output.setReal(input.getImaginaryDouble()); return output; }
public RealAdapterFunction(Function<INPUT,C> complexFunc, C cType, R rType) { this.rType = rType.createVariable(); this.cType = cType.createVariable(); this.complexFunc = complexFunc; }
@Override public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) { output.setComplexNumber(x.getRealDouble(), 0); return output; }
public ImaginaryAdapterFunction(Function<INPUT,C> complexFunc, C cType, R rType) { this.rType = rType.createVariable(); this.cType = cType.createVariable(); this.complexFunc = complexFunc; }
@Override public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) { output.setComplexNumber(x.getRealDouble(), 0); return output; }
public ImaginaryAdapterFunction(Function<INPUT,C> complexFunc, C cType, R rType) { this.rType = rType.createVariable(); this.cType = cType.createVariable(); this.complexFunc = complexFunc; }