示例#1
0
        /// <summary>3次元ベクトルZ成分</summary>
        public static Tensor TrivectorZ(Tensor x)
        {
            Function function = new Functions.Trivector.TrivectorZ();

            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>3次元ベクトルZ成分</summary>
        public static VariableNode TrivectorZ(VariableNode x)
        {
            Function function = new Functions.Trivector.TrivectorZ();

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