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