/// <summary>複素純虚数</summary> public static Tensor ComplexPureImag(Tensor real) { Function function = new Functions.Complex.ComplexPureImag(); 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 ComplexPureImag(VariableNode real) { Function function = new Functions.Complex.ComplexPureImag(); return(Apply(function, real)[0]); }