/// <summary>複素純実数</summary> public static Tensor ComplexPureReal(Tensor real) { Function function = new Functions.Complex.ComplexPureReal(); Shape y_shape = function.OutputShapes(real.Shape)[0]; Tensor y = new Tensor(y_shape); function.Execute(new Tensor[] { real }, new Tensor[] { y }); return(y); }
/// <summary>複素純実数</summary> public static VariableNode ComplexPureReal(VariableNode real) { Function function = new Functions.Complex.ComplexPureReal(); return(Apply(function, real)[0]); }