Beispiel #1
0
        /// <summary>3次元ベクトル純Z成分</summary>
        public static Tensor TrivectorPureZ(Tensor X)
        {
            Function function = new Functions.Trivector.TrivectorPureZ();

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

            Tensor y = new Tensor(y_shape);

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

            return(y);
        }
Beispiel #2
0
        /// <summary>3次元ベクトル純Z成分</summary>
        public static VariableNode TrivectorPureZ(VariableNode X)
        {
            Function function = new Functions.Trivector.TrivectorPureZ();

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