Пример #1
0
        /// <summary>複素数1項演算</summary>
        internal static Tensor ComplexUnaryArithmetric(Tensor x, Operators.ComplexUnaryArithmetric.ComplexUnaryArithmetric arithmetric)
        {
            Function function = new Functions.ComplexArithmetric.ComplexUnaryArithmetric(arithmetric);

            Shape y_shape = function.OutputShapes(x.Shape)[0];

            Tensor y = new Tensor(y_shape);

            function.Execute(new Tensor[] { x }, new Tensor[] { y });

            return(y);
        }
Пример #2
0
        /// <summary>複素数1項演算</summary>
        internal static VariableNode ComplexUnaryArithmetric(VariableNode x, Operators.ComplexUnaryArithmetric.ComplexUnaryArithmetric arithmetric)
        {
            Function function = new Functions.ComplexArithmetric.ComplexUnaryArithmetric(arithmetric);

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