/// <summary>1項演算</summary>
        internal static Tensor UnaryArithmetric(Tensor x, Operators.UnaryArithmetric.UnaryArithmetric unary_operator)
        {
            Function function = new Functions.UnaryArithmetric.UnaryArithmetric(unary_operator);

            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 UnaryArithmetric(Operators.UnaryArithmetric.UnaryArithmetric unary_operator)
     : base(inputs: 1, outputs: 1, allow_resubstitution: true)
 {
     this.unary_operator = unary_operator;
 }
        /// <summary>1項演算</summary>
        internal static VariableNode UnaryArithmetric(VariableNode x, Operators.UnaryArithmetric.UnaryArithmetric unary_operator)
        {
            Function function = new Functions.UnaryArithmetric.UnaryArithmetric(unary_operator);

            return(Apply(function, x)[0]);
        }