コード例 #1
0
        /// <summary>複素虚部</summary>
        public static Tensor ComplexImag(Tensor x)
        {
            Function function = new Functions.Complex.ComplexImag();

            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>複素虚部</summary>
        public static VariableNode ComplexImag(VariableNode x)
        {
            Function function = new Functions.Complex.ComplexImag();

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